Parameter
Data Type
Description
value must be client_credentials
Request Body
{
"grantType":"client_credentials"
"additionalInfo":{}
}
Parameter
Data Type
Description
Response Body
{
"accessToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJiZDYzMTU2ODQzOWE0YzZlYTExMTNmMjhhMzdlMWY4MiIsImV4cCI6MTY2MjA1ODE2MX0.4hQt4fBhqPBeDtea6Y8HMCp8YxHoYH-VZRlSszl-7dMwM_cPOxnsdQZJiR1WbHR6JamweBro-14FFXXfA1rkhQ",
"additionalInfo": {},
"expiresIn": "53999",
"responseCode": "2007300",
"responseMessage": "Successful",
"tokenType": "Bearer"
}
curl --location --request POST \
'http://127.0.0.1:8081/api/v1/access-token/b2b' \
--header 'X-TIMESTAMP: 2022-08-10T00:00:00+07:00' \
--header 'X-CLIENT-KEY: 626dba03cfa64d369e1cc9f647914a2e' \
--header 'X-SIGNATURE: 3c6a216e22f418189812b333b9fd4e06b321b8324c1158a1905db29e7ffc2aaab81e43def33110b2c9f880511294b9e3f340f93d7c958d43372c2d72198be86a' \
--header 'Content-Type: application/json' \
--data-raw '{
"grantType":"client_credentials",
"additionalInfo":{}
}'