Generate token API
API
Last updated
API
Last updated
PLATFORM should call this API to get Bearer token to use in all other APIs.
Authentication Mechanism: OAuth 2.0
API:
Path: /v2/auth/oauth2/token
Method: POST
Request: Content-Type: application/json
Request Parameter
Parameter | Data Type | Required | Description |
---|---|---|---|
Response Data
Parameter | Data Type | Description |
---|---|---|
grant_type
String
Y
“client_credentials” as default.
client_id
String
Y
API integration information in the profile section on the Merchant Portal.
client_secret
String
Y
API integration information in the profile section on the Merchant Portal.
scope
String
Y
“disbursement” as default.
code
Number
System’s error code.
message
String
Error description.
access_token
String
To authenticate for all other APIs.
token_type
String
“bearer” as default.
expires_in
Number
“access_token” expiration time, in seconds.