Generate Access Token (B2B) API
The following endpoint generate access token for SNAP transaction APIs
post/access-token/b2b
Request
- Base URLhttps://api.durianpay.id/v1.0
- URLhttps://api.durianpay.id/v1.0/access-token/b2b
- AuthAPI key in header Content-Type and API key in header X-TIMESTAMP and API key in header X-SIGNATURE and API key in header X-CLIENT-KEY
Headers
Content-Typestring required
Indicates the media type of the resource. value: application/json
X-TIMESTAMPstring required
Timestamp in ISO8601 format, Example: 2024-05-14T18:54:57+07:00
X-SIGNATUREstring required
Signature generated by encrypting HTTP method, relative path, access token, minified request body, and timestamp
X-CLIENT-KEYstring required
Client Key given by Durianpay upon completing registration.
Request body
Response
200
Example response
{
"responseCode": "2007300",
"responseMessage": "Successful",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJEdXJpYW4gTW9uZXkiLCJleHAiOjE3MTU1OTAwNTYsImlhdCI6MTcxNTU4OTE1NiwibWVyY2",
"tokenType": "BearerToken",
"expiresIn": "2024-05-13 08:47:36.452492159 +0000 UTC"
}Changes
No recorded changes to this operation across all 1 revision of this API.