Smileline
ReferenceInventoryInventoryPurchase ordersIdReceive

Receive a delivery into stock

All or nothing: each line is restocked into its item, in its lots, valued at what it cost with tax — net of tax when the practice reclaims it (Settings → Accounting) — and kept as a receipt naming who received it, its tax rate and that valuation. With supplier bills on, the delivery becomes a bill in the same save. Partial deliveries leave the order part received; the last makes it received. 409 OVER_RECEIPT for more than is left of a line without `confirmOverReceipt`, PURCHASE_ORDER_CLOSED for a received or cancelled order (a cancellation saved first wins), ITEM_ARCHIVED for an archived item, REQUEST_ID_REUSED when the save's id comes back with different lines; 400 LOTS_DONT_ADD_UP, LINE_NOT_FOUND. `inventory:record`.

Loading the API reference…