Skip to main content

Hold Send Plan Stock

POST 

/api/send-plans/:sendPlan/holds

Hold the source-warehouse stock for a plan's lines without creating drafts yet, so other orders cannot take it. Stock is held all-or-nothing per draft group (destination network and source warehouse): groups whose source has every unit are held, and short groups are reported in short_groups and left unheld. Holds expire after the planner's hold window (72 hours by default) unless handed to a draft.

Required scope: send-plans:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Bearer Personal Access Token with the send-plans:write scope. The token's user also needs permission to create send planner drafts.

Body fields (optional):

  • line_ids (integer[], max 20000): lines to hold. Omit to hold every line with units to send.

Response: units_held and short_groups — each with destination_warehouse_id, source_warehouse_id, network, message and shortage (per product: product_id, sku, line_id, warehouse_id, planned and available units).

Returns 422 when the plan is not ready, is a scenario, or no group could be held.

Request​

Responses​

OK

Response Headers
    Content-Type