Create Receipt (Native IS Path)
POST/api/inbound-shipments/:inbound_shipment/receipts
Creates a native InboundShipmentReceipt with lines and posts FIFO/inventory directly via the new IS-first path (Phase 1 of the InboundShipment / PurchaseOrderShipment unification — see SKU-8029). Coexists with the legacy /receive endpoint, which delegates through the PO shipment receipt path.
Authentication: Requires Bearer token.
Fields:
- received_at (required, datetime): Date/time of receipt
- warehouse_id (required, exists:warehouses): Receiving warehouse for this receipt
- notes (optional, string): Free-text notes attached to the receipt
- receipt_lines (required, min 1):
- inbound_shipment_line_id (required, exists:inbound_shipment_lines): Must belong to this inbound shipment
- quantity (required, numeric, min 0.0001)
Side effects:
- Creates an
inbound_shipment_receiptsrow + per-lineinbound_shipment_receipt_linesrows - Creates a FIFO layer + InventoryMovement per line (TYPE_PURCHASE_RECEIPT) at the receipt's warehouse
- Increments
received_quantityon each InboundShipmentLine and the matching PurchaseOrderLine - Transitions the InboundShipment to
partially_receivedorreceived(setsfully_received_atwhen all lines are fully received)
Request
Responses
- 200
Successful response