Refund a merchant order
Refund part or all of one merchant order’s captured payment and return the refund with its status (reserved, executing, pending, unknown, succeeded or failed). An unknown outcome is confirmed with the payment provider automatically; retry with the same reference, never a new one. Requires the orders:write scope. Returns 422 when the amount exceeds the refundable remainder and 409 while a transfer is unresolved or the payment is disputed.
Headers
Required unless the body sets external_ref, which takes precedence. A client-generated key (1–120 characters) identifying this refund: repeating the request with the same key returns the original refund instead of refunding again, and reusing it with a different amount_minor is rejected with 409. After a timeout or network error, retry with the same key, never a new one.
Body
Response
Successful Response