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 APIs 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 | Number | 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 | datetime | QRIS expiry should be in seconds, Maximum it can be 1 month or 31 days or 2,678,400 seconds. If not set, the default will be 5 minutes For optimal performance and security, we recommend setting the expiry time to 300 seconds (5 minutes). |
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. |