Hold order

POST /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.

Try it POST /api/v1/orders/0/hold write

These inputs are shared across all docs pages, so an id entered here carries over.

request body
object · 1 keys
{
  "reason": "Checking the payment"
}
response

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 (tracks the inputs above)
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"}'

Request fields

FieldTypeRequiredDescription
reasonstring—Why you are holding the order, up to 1,000 characters. Shown back to you as hold.reason, and to the warehouse

Response fields (data)

FieldDescription
dataThe 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

Errors

StatusCodeWhen
403Insufficient permissionskey is tenant-scoped but carries neither write:order nor admin
400invalid order_idorder_id is neither a positive integer nor a reference like 101326AA0042
400Invalid reasonreason is sent and is not a string
404ORDER_NOT_FOUNDorder not part of your account
409ORDER_NOT_COMMITTEDthe order is still a quote (PENDING_PAYMENT): cancel it instead
409PICK_STARTEDthe warehouse has picked a card from the order, or it is packed (READY_TO_SHIP)
409LABEL_BOUGHTthe order has a shipping label, or one is being bought right now. In the second case, try again in a minute
409ORDER_SHIPPED / ORDER_CANCELLEDthe order is COMPLETED or RETURNED, or it is CANCELLED
409ORDER_CHANGEDthe order changed while the hold was placed. Try again

See Errors for the response envelope and the full code list.