Refunds
Issue a refund against an order you previously recorded with
Orders. Omit items to refund the whole order, or include specific
items to issue a partial refund. The operation acts on a single connected
merchant identified by merchantId.
Uses POST and the X-API-KEY header. See Merchant Transactions
for the shared conventions, error shapes, and usage rules.
Endpoint
Request body
Refund item object
Refund prices and tax amounts are calculated automatically from the order — you do not send them. If the order had discounts applied, refunds use the discounted prices (the amounts the customer actually paid).
Examples
Response
Returns the recorded refund:
Refunds are never retried automatically, and you should not retry them
blindly, a duplicate refund is a financial incident. If a refund call times out
or returns 502/504, first confirm whether it succeeded by fetching the order
with order/get using "expand": "refunds", then retry
only if the refund is not present.