Skip to main content

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.

Required scope: purchase-orders:write

Grant 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 order
  • lines.*.quantity (required, numeric, > 0): units to move; cannot exceed what is still unreceived on the line's shipped open shipments
  • reason (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​

Created

Response Headers
    Content-Type