post https://sandbox.onebrick.io/v2/payments/gs/qris/dynamic
Standalone APIs for clients to consume of QRIS product. This API will help clients to create new dynamic QRIS for clients.
Request Parameters
Key Parameters | Data Type | Description |
---|---|---|
publicAccessToken | String | One time access-token generated using the authentication API |
referenceId | String | Unique reference of Transactions from client side. Maximum length of 25 characters |
amount | Number | Amount that clients wants to transfer, between Rp1.000 - Rp10.000.000. |
validityPeriod | String | Value in seconds. The validity period must be between 600 seconds (10 minutes) and 86,400 seconds (24 hours) from the creation time. If not provided, the default validity period time is 24 hours. Any request exceeding 24 hours will be automatically adjusted to 24 hours. When set to 86,400 seconds (24 hours), the actual expiry time of the generated QRIS may vary between 600 seconds (10 minutes) and 86,400 seconds (24 hours). Please refer to the response for the exact expiry time. |
*The validityPeriod parameter is intended for time-sensitive transactions. If you need a different expiry logic, please contact the Brick team.
*The expiry time is now dynamically enforced to a maximum of 24 hours to prevent excessively long transactions.
Response Parameters
Key parameters | Data type | Description |
---|---|---|
id | String | Unique transaction ID generated by Brick. |
referenceId | String | Unique transaction reference provided by the client to track each QR code. |
amount | Number | Transaction amount requested by the client. |
createdAt | Date Time | Timestamp when the QRIS code was created. |
expiredAt | Date Time | Actual expiry timestamp of the QRIS code. If the requested validity period exceeds 24 hours, this will be adjusted to 24 hours. |
qrData | String | QRIS dynamic data that can be scanned for payment. |