Authentication
All our endpoints are secured and requests must be authenticated by passing your merchant public key or Bearer token in the request header.
Api Key (Public key)
After your account has been approved, you can find your public key on the dashboard (screenshot below). Ensure to include this in all request headers as value for x-auth-token where it's required.
Dashboard → Settings → Generate API Keys → Merchant public key

Bearer Token
The token generated here should be used as a value of the Authorization header (Bearer token) for api requests where it is required.
POST -
{{env_url}}/auth/account/v2/login
Request body
Name
Type
Description
username*
String
Your account email
password*
String
account password
Response
{
"message": "success",
"error": null,
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.KMUFsIDTnFmyG3nMiGM6H9FNFUROf3wh7SmqJp-QV30"
}
}{
"message": "Invalid email or password.",
"error": "wrong login details",
"data": null
}Last updated
