cancel_order
Cancel an order that has not been paid. Use it when the buyer changes their mind, and after trying out an order on the public demonstration, so that its stock goes back on sale. Returns the cancelled order; cancelling it again changes nothing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_id": "<order_id>",
"manage_token": "<manage_token>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | the order id | |
| manage_token | Yes | the manage token place_guest_order returned for this order; it can also be sent as the x-order-token header |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The order id (FS-… for a customer, FG-… for a guest). | |
| guest | Yes | Whether a guest placed it. | |
| items | Yes | The lines. | |
| coupon | No | The coupon applied, if any. | |
| status | Yes | placed | checkout_open | payment_pending | paid | fulfilled | shipped | delivered | cancelled | expired | refunded. | |
| delivery | Yes | A UK delivery address. | |
| created_ms | Yes | When it was placed (epoch ms). | |
| updated_ms | Yes | When it last changed (epoch ms). | |
| user_email | Yes | The contact email. | |
| total_pence | Yes | The total the customer pays, in pence. | |
| checkout_url | No | The hosted checkout URL, once checkout opened. | |
| refund_state | No | The refund state Stripe reported, once refunded. | |
| discount_pence | Yes | The discount in pence. | |
| shipping_pence | Yes | The delivery charge in pence. | |
| stock_reserved | Yes | Whether stock is still reserved against this order. | |
| subtotal_pence | Yes | The subtotal in pence. | |
| shipping_choice | Yes | standard | express. | |
| tracking_number | No | The tracking number, once shipped. | |
| tracking_carrier | No | The carrier, once shipped. | |
| stripe_session_id | No | The Stripe Checkout Session id, once checkout opened. | |
| confirmation_email | No | The confirmation-email outbox entry, created at payment. |