POST /orders/{reference}/refunds
Authorizations
Path parameters
orderReferencestringRequired
Order Reference for order
Body
refundReferencestringRequired
Order reference for tracking refund in optty
refundAmountall ofRequired
The currency and amount to be refunded to the customer
refundDescriptionstringRequired
Brief description of the refund
Responses
200Success
application/json
400Error
application/json
401Error
application/json
404Error
application/json
post
POST /orders/{orderReference}/refund HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 99
{
"refundReference": "text",
"refundAmount": {
"amount": 1,
"currency": "text"
},
"refundDescription": "text"
}
{
"refundReference": "586901000",
"bnplProvider": "AFFIRM_US",
"refundedAmount": 150,
"refundStatus": "SUCCESSFUL",
"description": "Initial Refund",
"refundDate": "2024-07-01T06:10:18Z",
"bnplRefundId": "OUOACYVMR79788VS",
"callbackUrl": "text"
}
Example Request/Response
{
"refundReference": "TgEHcPtpN2HSrTMK-0",
"refundAmount": {
"amount": 100,
"currency": "AUD"
},
"refundDescription": "Please refund this order"
}
{
"refundReference": "TgEHcPtpN2HSrTMK-0-00",
"bnplProvider": "KLARNA_AU",
"refundedAmount": 100,
"refundStatus": "SUCCESSFUL",
"description": {},
"refundDate": "Fri, 08 Oct 2021 06:22:20 GMT",
"bnplRefundId": "8ba78198-bc4c-48ae-9040-57c687bed51d"
}
Last updated