Skip to main content
POST
Create refund for items

Authorizations

Authorization
string
header
required

Bearer token authentication

Headers

Idempotency-Key
string

Optional client-generated key (UUID recommended) that makes a resend safe. A refund pays money out, so a client that resends after losing a response should send the same key. The key is stored with the refund it records, for that order. Resending the same request under the key answers with that refund and records nothing more; a different request under the key answers 422. The key must be 1 to 255 characters, or the request answers 422. A request that is refused records nothing, so the same key can send the corrected request.

Body

application/json
order_id
order_items
(object | null)[] | null
reason
cancel_order
boolean | null

Whether this refund also ends the sale. When true and the refund leaves the order fully refunded and still unshipped, the order is cancelled. Omit the field to take the company default; send false to refund without cancelling. Sending true needs orders.delete.

refund_points
boolean | null

When true and the order was paid partly or fully in points, return redeemed points to the customer. For a company whose refunds return points in proportion to the money refunded, an item refund returns the refunded lines' share of the spend, counted with the earlier refunds that asked for points back; otherwise every redeemed point not yet returned comes back.

Response

object | null

Refund created

refund
object | null
meta
object | null