Skip to main content

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_receipts row + per-line inbound_shipment_receipt_lines rows
  • Creates a FIFO layer + InventoryMovement per line (TYPE_PURCHASE_RECEIPT) at the receipt's warehouse
  • Increments received_quantity on each InboundShipmentLine and the matching PurchaseOrderLine
  • Transitions the InboundShipment to partially_received or received (sets fully_received_at when all lines are fully received)

Request

Responses

Successful response