/api/v1/orders/:order_id/cancel tenant keyCancels an unpaid order (PENDING_PAYMENT only) and releases its card(s) so they can be re-quoted. Requires a TENANT API key. Idempotent — cancelling an already-CANCELLED order returns success. Committed / in-flight / fulfilled orders are rejected (409).
POST /api/v1/orders/0/cancel write These inputs are shared across all docs pages — an id entered here carries over.
Not run yet — press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).
curl -X POST 'https://service.rip.fun/api/v1/orders/0/cancel' \ -H 'X-API-Key: rip_…'
data)| Field | Description |
|---|---|
(serialized order) | The order with status CANCELLED (same shape as GET /orders/:order_id) |
| Status | Code | When |
|---|---|---|
| 400 | invalid order_id | order_id is not a positive integer |
| 404 | order not found | no such order for this tenant |
| 409 | cannot be cancelled | order is not PENDING_PAYMENT (already committed / fulfilled) |
See Errors for the response envelope and the full code list.