Orders
Preview a refund
What a refund of the order would move, before you ask for one, and why it would be refused now. Leave out `amount` for the rest of the order; every figure is in the order’s currency.
Authorization
bearer orders:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: orders:read
Path Parameters
orderId*string
Match
^[A-Za-z0-9_-]{1,64}$Length
1 <= length <= 64Query Parameters
amount?string
currency?string
Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/orders/string/refund-preview"{ "orderId": "string", "arm": "string", "refundable": { "amount": -9007199254740991, "currency": "string" }, "amount": { "amount": -9007199254740991, "currency": "string" }, "taxReversed": { "amount": -9007199254740991, "currency": "string" }, "feeKept": { "amount": -9007199254740991, "currency": "string" }, "merchantDebit": { "transfer": { "amount": -9007199254740991, "currency": "string" }, "transferEstimated": true, "feeShare": { "amount": -9007199254740991, "currency": "string" }, "total": { "amount": -9007199254740991, "currency": "string" } }, "settlementCurrency": "string", "refusal": { "code": "string", "retryable": true }}