v1
latestOpenAPI 3.0.12026-07-24204977.5 KBCreate order - QR / URL (dynamic)
Use this endpoint to create an order to accept payment using ShopBack’s dynamic QR code or to accept payments for an in-store context through a customer-facing app or website. This endpoint creates a payment order with the dynamic QR code or relevant URL for redirect.
Headers
Header required for authorization. Specify the HMAC signature in the Authorization header along with accessKeyId. Please refer to Generating an HMAC Signature for a step by step guide to generating the Authorization signature.
The date and time of request in <a href=https://en.wikipedia.org/wiki/ISO_8601 target="_blank">ISO-8601</a> format. This should be the same value used in the generation of the HMAC signature
Idempotent Id for the request. If this is absent, every request will be treated as unique and will be processed as such. (This is optional for now, but will be made required in the future)
Request body
Example request
{
"posId": "802c987em7f747269a5e6c260c630kpl",
"country": "SG",
"amount": 1234,
"currency": "SGD",
"referenceId": "352c530dd7f747161a5e6c990c720bec",
"qrType": "base64",
"partner": {
"merchantEntityId": "UEN in Singapore"
},
"orderMetadata": {
"terminalReference": "TW001271r-CEalBMhQw",
"merchantOrderReference": "7YaEQwQi-3c6aRCJbz0N"
}
}Response
Example response
{
"qrType": "base64",
"qrCode": "data:image/png;base64,iVBORw0KGgoAAAAN...",
"traceId": "0dc44317-1c4b-4b62-83a8-8997435511e4",
"partner": {
"merchantEntityId": "UEN in Singapore"
},
"orderMetadata": {
"terminalReference": "TW001271r-CEalBMhQw",
"merchantOrderReference": "7YaEQwQi-3c6aRCJbz0N"
}
}