Move To Line
POST/api/v2/inventory-allocations/:allocation/move
Moves on-hand (allocated) stock from this allocation to a backordered line in the same product + warehouse pool — a conserved swap.
orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
The moved quantity releases the destination line's backorder (planned / awaiting_receipt → allocated), carrying the source allocation's FIFO release_source reference. The source's allocated row is reduced by the same quantity (or cancelled if fully consumed), and the source's demand is recreated as a planned backorder. Total on-hand commitment, total demand, and FIFO cost layering are all preserved.
Body:
destination_sales_order_line_id(required, integer) — the backordered sales order line to move stock to. Must exist and be in the same product + warehouse pool. Get valid targets fromGET /move-targets.quantity(required, numeric, > 0) — how much on-hand stock to move. Must not exceed the source's movable on-hand quantity (allocated minus any stock committed to open fulfillments) nor the destination line's backordered quantity.
Returns 422 when the source is not allocated, the destination is a different product/warehouse or the same line, the quantity exceeds the movable on-hand stock (e.g. committed to an open fulfillment) or the destination's backorder, or the destination has no matching backorder to release.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.