post https://sandbox.onebrick.io/v2/payments/acceptance/1.0/qr/qr-mpm-generate
We need to build one 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 |
---|---|---|
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 ISO 8601 format |
Authorization | string | One-time access token generated for the request |
X-SIGNATURE | String | Non-repudiation & integrity validation checking. Generated by client and created using asymmetric signature SHA256withRSA (clientSecret, stringToSign) with stringToSign = HTTPMethod +”:“+ EndpointUrl +":“+ Lowercase(HexEncode(SHA- 256(minify(RequestBody)))) + ":“ + TimeStamp |
X-PARTNER-ID | String | Brick's client ID |
X-EXTERNAL-ID | String | Unique external identifier for the API request that can be found on Brick Dashboard Credentials |
CHANNEL-ID | String | Brick's channel ID |
partnerReferenceNo | String | Unique reference number provided by the client to identify the transaction. Maximum length of 25 characters. |
amount.value | String | Amount to be processed, represented as a string with two decimal places (e.g., "12345678.00") |
amount.currency | String | Currency of the transaction amount. Set as default to "IDR" (Indonesian Rupiah). |
validityPeriod | String | Value in seconds. The expiry time must be between 600 seconds (10 minutes) and 86,400 seconds (24 hours) from the creation time. If not provided, the default expiry 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. |
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 message confirming the success of the operation. |
referenceNo | String | A unique identifier generated for the transaction by the system. |
partnerReferenceNo | String | A unique identifier provided by the partner to track the transaction. |
qrContent | String | The QRIS content string that can be used to generate a QR code for payment purposes. |