API authenPlatform
Endpoint: POST /v2/auth/oauth2/token
Description: Obtain an OAuth 2.0 Bearer access token used to authenticate every other Global Collections API call.
Request
Request Body Field Descriptions (JSON)
grant_type
string
Yes
OAuth 2.0 grant type. Use client_credentials.
client_id
string
Yes
API integration ID from the Profile section on the Merchant Portal.
client_secret
string
Yes
API integration secret from the Profile section on the Merchant Portal.
scope
string
Yes
Service scope. Use global-collection.
Request sample
{
"grant_type": "client_credentials",
"client_id": "e1b2c3d4-5678-1234-9abc-1234567890ab",
"client_secret": "s3cr3t-key-value",
"scope": "global-collection"
}Response
Response Field Descriptions
access_token
string
Token used to authenticate all other API calls.
token_type
string
Token type. bearer by default.
expires_in
number
access_token expiration time, in seconds.
message
string
Response message.
Response sample
Notes
This endpoint does not require a Bearer token; it is the call that issues one.
The Accept-Language header can be used to specify the response language (Support: "vi", "en").
Pass the returned
access_tokenin theAuthorization: Bearer <access_token>header of every other Global Collections API.Request a new token before the current one expires (
expires_inseconds).
Last updated
Was this helpful?