/api/v1/orders/:order_id/hold write:order Stops a committed (PENDING) order before the warehouse starts picking it. Use it when you need time, for example to check a payment you do not trust. The order leaves the warehouse’s pick list and its cards stay where they are. Its status stays PENDING, and it carries a hold field (see Get order) until the hold ends. Then release it (POST /orders/:order_id/release) and it goes back on the pick list, or cancel it (POST /orders/:order_id/cancel) and its cards go back to your inventory, OFFCHAIN, and nothing ships. A hold has no time limit. It is only possible before the first pick: once the warehouse has picked a card from the order or bought its label, the hold is refused (409) and the order ships as usual. Contact us if you need to stop it then. An order that ships as several parcels is held as a whole. Holding an order that is already on hold returns it unchanged (200), so a retry is safe. The path takes the integer order_id or the order’s reference.
Every refusal changes nothing. A refusal carries code, message ("Order hold refused") and error, a sentence you can show your team.
While an order is held, POST /orders/:order_id/address refuses it (ORDER_ON_HOLD). Release it first.
We can hold an order too, for example over a payment we have to check. It then reads PENDING with hold.placed_by "rip". You cannot release our hold, but you can cancel the order.
POST /api/v1/orders/0/hold write These inputs are shared across all docs pages, so an id entered here carries over.
{
"reason": "Checking the payment"
}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/hold' \
-H 'X-API-Key: rip_…' \
-H 'Content-Type: application/json' \
-d '{"reason":"Checking the payment"}' | Field | Type | Required | Description |
|---|---|---|---|
reason | string | — | Why you are holding the order, up to 1,000 characters. Shown back to you as hold.reason, and to the warehouse |
data)| Field | Description |
|---|---|
data | The order after the hold, same shape as GET /orders/:order_id: status PENDING, with a hold object |
data.hold | { held_at, placed_by, reason }. placed_by is "tenant" here. If we had already held the order, it is our hold: placed_by "rip" and reason null |
| Status | Code | When |
|---|---|---|
| 403 | Insufficient permissions | key is tenant-scoped but carries neither write:order nor admin |
| 400 | invalid order_id | order_id is neither a positive integer nor a reference like 101326AA0042 |
| 400 | Invalid reason | reason is sent and is not a string |
| 404 | ORDER_NOT_FOUND | order not part of your account |
| 409 | ORDER_NOT_COMMITTED | the order is still a quote (PENDING_PAYMENT): cancel it instead |
| 409 | PICK_STARTED | the warehouse has picked a card from the order, or it is packed (READY_TO_SHIP) |
| 409 | LABEL_BOUGHT | the order has a shipping label, or one is being bought right now. In the second case, try again in a minute |
| 409 | ORDER_SHIPPED / ORDER_CANCELLED | the order is COMPLETED or RETURNED, or it is CANCELLED |
| 409 | ORDER_CHANGED | the order changed while the hold was placed. Try again |
See Errors for the response envelope and the full code list.