v1
latestOpenAPI 3.0.12026-07-24204977.5 KBNotification
Acknowledge notification
This API is implemented by the payment partner. ShopBack will send the following request parameters to the webhookUrl supplied by the payment partner during onboarding.
post/<webhookUrl>
Headers
Authorizationstring required
Example:SB1-HMAC-SHA256 <accessKeyId>:<hmacSignature>
Header provided for authorization. This is provided for optional HMAC verification when ShopBack calls the webhookUrl. Please refer to Generating an HMAC Signature for a step by step guide to generating the Authorization signature.
Datestring required
Example:2022-08-22T02:29:33.123Z
The date and time of request in <a href=https://en.wikipedia.org/wiki/ISO_8601 target="_blank">ISO-8601</a> format. This is the same value used in the generation of the HMAC signature
Request body
Example request
{
"traceId": "0dc44317-1c4b-4b62-83a8-8997435511e4",
"shopbackOrderId": "220801-0679-YVUY",
"status": "CAPTURED",
"createdAt": "2022-08-01T02:29:33.123Z",
"updatedAt": "2022-08-01T02:29:33.123Z",
"orderAmount": 1000,
"refundAmount": 1000,
"failureReason": "352c530dd7f747161a5e6c990c720bec",
"referenceId": "352c530dd7f747161a5e6c990c720bec",
"currency": "SGD",
"posId": "802c987em7f747269a5e6c260c630kpl",
"paymentType": "PAY"
}Response
ShopBack will record non-200 cases.
Example response
{
"referenceId": "352c530dd7f747161a5e6c990c720bec"
}