API authenPlatform
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 |
---|---|---|---|
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 | “collection” as default. |
Response Data
Parameter | Data Type | Description |
---|---|---|
code | Number | Error code. Refer to table of error codes |
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. |
Last updated