API reference · Types
CancellationRequest
Part of the response of GET /orders/{orderId}/cancellation-requests, POST /orders/{orderId}/cancellation-requests/{requestId}/decline and POST /sandbox/orders/{orderId}/cancellation-requests and the payload of order.cancellation_request.created, order.cancellation_request.withdrawn and order.cancellation_request.resolved.
Type: object
Example
{
"id": "cnr_8d3f2a61b0c94e7f9a15c2d48e6b7031",
"order_id": "ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VW",
"status": "pending",
"reason": "Ordered the wrong printing",
"resolution_note": null,
"created_at": "2026-09-04T19:01:12.000Z",
"resolved_at": null,
"lines": [
{
"line_ref": "oln_1f0c8a4d7e2b45c9a1d6f3b8e07c9241",
"sku_id": 14602,
"quantity": 1
}
]
}Fields
idstring requiredThe cancellation request id (
cnr_…), stable for the life of the request (STABLE).Example
cnr_8d3f2a61b0c94e7f9a15c2d48e6b7031order_idstring requiredThe order the buyer asked to cancel (STABLE).
Example
ord_sandbox_01K4A8Y6D4QJH2N3P5R7S9T0VWstatusstring requiredpendinguntil it is answered.honored: a cancellation covered it.declined: the seller refused it, withresolution_note.withdrawn: the buyer took it back (STABLE).Constraints: allowed values:
pending,honored,declined,withdrawnExamplependingreasonstring or null requiredThe buyer's own words, or null when they gave none (STABLE).
Example
Ordered the wrong printingresolution_notestring or null requiredThe decline reason the buyer is shown. Null unless
statusisdeclined(STABLE).Example
nullcreated_atstring requiredWhen the buyer opened the request (STABLE).
Constraints: format: date-time Example
2026-09-04T19:01:12.000Zresolved_atstring or null requiredWhen the request was honored, declined or withdrawn. Null while it is pending (STABLE).
Constraints: format: date-time Example
nulllinesarray of object or null requiredThe lines the buyer asked to cancel, or null when they asked to cancel the whole order (STABLE).
Show child fieldsHide child fields
lines[].string or null requiredline_ref The purchase line the buyer asked to cancel, the same
line_refthe order carries. Null only on a request recorded before line refs existed.Example
oln_1f0c8a4d7e2b45c9a1d6f3b8e07c9241lines[].integer requiredsku_id The SKU now on that line (STABLE).
Example
14602lines[].integerquantity How many units the buyer asked to cancel. Omitted means the whole line (STABLE).
Constraints: exclusive minimum: 0 Example
1
Used by
GET /orders/{orderId}/cancellation-requests- List an order's cancellation requests (response)POST /orders/{orderId}/cancellation-requests/{requestId}/decline- Decline a cancellation request (response)POST /sandbox/orders/{orderId}/cancellation-requests- Have the sandbox buyer ask to cancel an order (response)order.cancellation_request.created- Cancellation request created (payload)order.cancellation_request.withdrawn- Cancellation request withdrawn (payload)order.cancellation_request.resolved- Cancellation request resolved (payload)