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:read
AuthorizationBearer <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}$
Length1 <= length <= 64

Query Parameters

amount?string
currency?string

Response Body

application/json

application/problem+json

GET
/v1/orders/{orderId}/refund-preview
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  }}