Create and query QRIS payments using SNAP-compatible endpoints and headers. Use these endpoints when your integration follows Indonesian SNAP standards for access tokens, signatures, timestamps, and QR MPM flows.
Get Access Token (SNAP)
Generate the SNAP B2B access token required for QR Code SNAP endpoints. Send the required SNAP headers, signature, timestamp, and client key according to your Brick SNAP credential setup. Use the returned token when creating QR MPM payments or querying QR payment status through SNAP-compatible flows.
Headers
Content-TypeString represents indicate the media type of the resource
X-CLIENT-KEYClient’s client_id
X-TIMESTAMPClient's current local time in yyyy-MM- ddTHH:mm:ss.SSSTZD format
X-SIGNATURENon-Repudiation & Integrity check signature for the requesting
Get Access Token (SNAP) › Request Body
grant_typeMust be "client_credentials"
Get Access Token (SNAP) › Responses
200
responseCoderesponseMessageaccessTokentokenTypeexpiresInGenerate Dynamic QR Code (SNAP)
Create a dynamic QRIS MPM payment using SNAP-compatible request headers and payload structure. Use this endpoint when your integration follows Indonesian SNAP standards for QR payment creation, including signature, timestamp, partner reference, and merchant information. The response returns QR content and identifiers that should be reconciled through SNAP status inquiry or callbacks.
Headers
Content-TypeString represents indicate the media type of the resource
X-CLIENT-KEYClient’s client_id
X-TIMESTAMPClient's current local time in yyyy-MM- ddTHH:mm:ss.SSSTZD format
AuthorizationOne time access-token generated using the auth token API
X-SIGNATURENon-Repudiation & Integrity check signature for the requesting
X-PARTNER-IDBrick's client ID
X-EXTERNAL-IDUnique external identifier for the API request that can be found on Brick Dashboard Credentials
CHANNEL-IDBrick's channel id
Generate Dynamic QR Code (SNAP) › Request Body
partnerReferenceNoUnique reference number provided by the partner to identify the transaction. Maximum length of 25 characters)
validityPeriodMinimum 600 seconds (10 minutes), maximum 86,400 seconds (24 hours) from the creation time. If not set, the default value will be 86,400 seconds (24 hours)
Generate Dynamic QR Code (SNAP) › Responses
200
responseCoderesponseMessagereferenceNopartnerReferenceNoqrContentStatus for Dynamic QR Code
Query the latest payment status for a dynamic QRIS SNAP transaction. Use this endpoint when your system needs to confirm a QR MPM payment state using SNAP headers, timestamps, signatures, and original partner reference data. The response helps reconcile pending, successful, failed, or expired QR transactions in SNAP-based integrations.
Headers
Content-TypeString represents indicate the media type of the resource
X-CLIENT-KEYClient’s client_id
X-TIMESTAMPClient's current local time in yyyy-MM- ddTHH:mm:ss.SSSTZD format
AuthorizationOne time access-token generated using the auth token API
X-SIGNATURENon-Repudiation & Integrity check signature for the requesting
X-PARTNER-IDBrick's client ID
X-EXTERNAL-IDUnique external identifier for the API request that can be found on Brick Dashboard Credentials
CHANNEL-IDBrick's channel id
Status for Dynamic QR Code › Request Body
originalReferenceNoUnique identifier for the original transaction. e.g. QR_75ae1b56c40449ecbc42010e3d2589cc
originalPartnerReferenceNoUnique identifier for the original transaction assigned by the partner. e.g. 20241115000000189723
serviceCodeMust be set to '51'
Status for Dynamic QR Code › Responses
200
responseCoderesponseMessageoriginalReferenceNooriginalPartnerReferenceNoserviceCodelatestTransactionStatustransactionStatusDesc