Move PO Lines to New Inbound Shipment
POST/api/purchase-orders/:purchase_order/move-to-new-shipment
For units the supplier is still sending separately: move them off the lines' current shipped inbound shipments (In Transit / Partially Received) onto a new In Transit shipment, one per destination warehouse. The lines are not short-closed and their ordered quantity does not change. A source shipment that now has everything it expects becomes Received. Each move is written to the purchase order's activity log with the reason.
purchase-orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Request body fields:
lines(required, array, 1–500 items)lines.*.purchase_order_line_id(required, integer): a line on this purchase orderlines.*.quantity(required, numeric, > 0): units to move; cannot exceed what is still unreceived on the line's shipped open shipmentsreason(optional, nullable, max 500): recorded in the activity log and the new shipment's notes
Errors (422): the line is not on this purchase order, or fewer units are on its open shipments than requested.
Requires permission: purchase_orders.update
Request
Responses
- 201
- 401
- 403
- 404
- 422
- 429
Created
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.