POST /orders/{reference}/refund
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
orderReferencestringRequiredExample:
The unique order reference that was provided when creating the order. This is your merchant-specific identifier for the order. Use this reference to identify which order to perform operations on (e.g., capture, void, refund, get status).
ORD-2024-001234Body
refundReferencestringRequiredExample:
A unique reference identifier for this refund request. This must be unique per merchant.
12345001223refundDescriptionstringRequiredExample:
A brief description or reason for the refund. This can be used to record why the refund was issued. This may be visible to the payment provider.
Customer requested return due to defective productisActivatedViaOAuthbooleanRequiredExample:
If the provider is activated by oAuth or apiKey/ password
trueResponses
200Success
application/json
refundReferencestringRequiredExample:
Refund Reference
586901000bnplProvidernumber · enumRequiredExample:
APM Provider
AFFIRM_USrefundedAmountstringRequiredExample:
Refund Amount
150refundStatusstringRequiredExample:
Refund Status
SUCCESSFULdescriptionstringRequiredExample:
Refund description
Initial RefundrefundDatestringRequiredExample:
Refund date
2024-07-01T06:10:18ZbnplRefundIdstringRequiredExample:
bnplRefundId
OUOACYVMR79788VScallbackUrlstringOptional
The asynchronous refund-callback url
400Error
application/json
401Error
application/json
404Error
application/json
post
/orders/{orderReference}/refundExample Request/Response
{
"refundReference": "TgEHcPtpN2HSrTMK-0",
"refundAmount": {
"amount": 100,
"currency": "AUD"
},
"refundDescription": "Please refund this order"
}Last updated