Brick API Documentation
string · requiredstring · requiredinteger
string · requiredstring · requiredstring · date · requiredstring · requiredstring · requiredstringstringstringstringstring
Generate Public Access Token (JWT token)
GET
https://sandbox.onebrick.io/v2/payments/general
/auth/token
This endpoint allows developers to retrieve a short-lived public access token (JWT) necessary for initiating certain operations within the Brick system. The token is valid for 5 minutes and is intended for single-use only.
Headers
Client IDYour client key (You can collect this from Brick dashboard)
Client SecretYour client secret (You can collect this from Brick dashboard)
Generate Public Access Token (JWT token) › Responses
200
statusDefault: 0
errorobject
object
Get Access Token
POST
https://sandbox.onebrick.io/v2/payments/general
/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.
Headers
Content-TypeString represents indicate the media type of the resource
Default: application/json
X-CLIENT-KEYClient’s client_id
Default: 66a5fc3b-7c57-4e29-b097-88b5909aedcc
X-TIMESTAMPClient's current local time in yyyy-MM- ddTHH:mm:ss.SSSTZD format
Default: 2024-11-11T18:44:33+07:00
X-SIGNATURENon-Repudiation & Integrity check signature for the requesting
Default: i10jpP3qxAU+K+YtHmqXTnd00tbAdloAMoJsi0W32T4mnGiaZB1JNtWm1DZetUXUE7+93VVn4L5F1YhqheElsjQBnaDmPUxDXWrT8cHakzKz/EYNGFhgnnGVokRLaBnDIP11ASFACt7P7dtTA3EFAoD65NbApyMmKkrPG8siQvyKylx5xHRCq2Zr3WNqWOP4MgCo862PNHNAapu54ikw3B9x1FW/BCTWlm0bzz51HXWvoneyF9boddKGjfDgFJYfVp58RJd8cgvqwCAV/+bzXzen0DqB9Yo2O3XCszD6yMVJz5dMvEkOwSyskILbJsSLa8JqRRh/j66jYLy8JBDOFg==
Get Access Token › Request Body
grant_typeMust be "client_credentials"
Default: client_credentials
Get Access Token › Responses
200
responseCoderesponseMessageaccessTokentokenTypeexpiresIn