Create Shipment
POST/suppliers/shipments
Records an advance ship notice against one or more lines of purchase orders addressed to you. The POs must be confirmed or invoiced, and all lines must come from the same supplier and store.
The shipment is created as a draft unless you send dispatch: true. Dispatching checks that the quantities, added to what the PO lines' other shipments already carry, do not exceed the ordered quantity plus the store's over-delivery tolerance.
Needs the shipments-create-as-supplier permission, and shipments-dispatch-as-supplier as well with dispatch: true. All purchase order and line IDs, in requests and responses, are the ones on your copy of the purchase order.
Request
Responses
- 201
- 403
- 422
Created
The API user lacks the permission, the shipment belongs to another supplier, or the shipment is not in a status that allows the action.
Validation failed. errors is keyed by the field path, e.g. lines.0.quantity_shipped.