post https://sandbox.onebrick.io/v2/payments/acceptance/1.0/access-token/b2b
This page provides detailed information about the access token API used in the SNAP standard for QRIS creation and query.
Request Parameters
Key Parameters | Data Type | Description |
---|---|---|
Content-Type | String | String representing the content type (application/json) |
X-CLIENT-KEY | String | Client's client_id |
X-TIMESTAMP | datetime | Client's current local time in yyyy-MM- ddTHH:mm:ss.SSSTZD format |
X-SIGNATURE | string | Non-repudiation & integrity validation checking. Generated by client and created using asymmetric signature SHA256withRSA algorithm (Private_Key, stringToSign) stringToSign = client ID + “|” + X-TIMESTAMP |
grant_type | string | Must be client_credentials |
Response Parameters
Key parameters | Data type | Description |
---|---|---|
responseCode | integer | A code indicating the success or failure of the request, along with the associated reason. |
responseMessage | string | A detailed message providing further context on the response code. |
accessToken | string | An authorization token issued to the client for accessing protected resources. |
tokenType | string | Specifies the type of token returned (e.g., Bearer). |
expiresIn | integer | The duration (in seconds) for which the access token is valid before expiring. It will be 900 seconds in default. |