access_token as Authorization: Bearer <access_token> on every other call. Cache it and refresh it about a minute before expires_in runs out instead of requesting one per call. Your merchant identity comes from the token, so you never send it in a body or query string.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Invalid request | clientId or clientSecret missing or empty. |
| 24 | 400 | Too many failed attempts. Please try again later | ClientId locked for 15 minutes after 5 failures. |
| 21 | 400 | Unable to generate token | Unknown ClientId, inactive credential, wrong secret, or SSO refused. Counts toward the lock out. |
| 20 | 406 | We are unable to complete this action at the moment. Please try again | SSO unreachable or unexpected error. |
| 429 | Too many requests. Please retry later. | More than 10 calls per minute from one IP. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/merchant/authenticate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjQ3Q0...",
"expires_in": 3600,
"token_type": "Bearer",
"scope": "MerchantService"
}
}