Authentication

To use this API you'll need to sign up on Glade.

Create an account on Glade, use either this link to sign up on Sandbox (sandbox link) or this link to sign up on production.

This API is only available for business users on Glade. Hence, you need to create a business account to get your API credentials. The business credentials are merchant ID (mid) and a merchant key (key).

After signing up on production, you'll need to submit compliance and wait for approval to be able to use the API.

Getting Credentials

Follow these steps to get your credentials

  • To get your credentials switch to your business account
  • Go to Settings
  • Click on the API & Webhooks (see screenshot)
    You'll see the Merchant ID (mid) and Merchant Key (key)
11711171

Using Credentials

The merchant ID (mid) and Merchant Key (key) are used for authentication when making calls to the API.

Requests can be by attaching the mid and key in the headers while making the request.
Here is a sample request that you can make to test your authentication credentials

The Response

curl -X GET 'https://api-sandbox.glade.ng/merchant/' \
  --header 'Content-Type: application/json' \
  --header 'mid: GP_9695a6071e26433f929b490d7128ecbb' \
  --header 'key: b0e25a0647ed4276a42fcab6e1897103'

The Response

{
  status: 200,
  message: "Merchant details",
  data: {
    "name": "John Doe",
    "email": "[email protected]",
    "status": "active"
  }
}

📘

Sandbox Authentication

When using the sandbox, you can use these test credentials to test the API without needing to sign up.

mid: GP_9695a6071e26433f929b490d7128ecbb

key: b0e25a0647ed4276a42fcab6e1897103