Record Outsourced Receipt
POST/api/manufacturing/manufacturing-orders/1/outsourced-receipt
Record receipt of finished goods from a contractor for an outsourced MO. Runs the production-costing flow: consumes the reserved components from FIFO, produces the output inventory, and costs it as materials + the PO's service fee. The MO must be Started (in_progress / partially_completed).
A service_fee_amount override updates the cost FinancialLine on the backing PO before costing, so it flows into cost_breakdown.service_fee.
Fields:
- receipt_date (required, date)
- service_fee_amount (optional, numeric ≥ 0) — overrides the PO service-fee financial line
- lines (required, min 1):
- mo_output_line_id (NULLABLE integer) — the MO output line this received quantity produces; defaults to the primary output
- purchase_order_line_id (NULLABLE integer) — not used for finished-goods mapping; reserved for PO-linked receipts
- received_quantity (required, numeric ≥ 0)
- batch_number (optional, ≤ 128 chars) — auto-generated if blank
- expiry_date (optional, date)
- component_variance (optional): mo_component_line_id + actually_consumed_at_contractor — overrides per-component consumption
Request
Responses
- 200
Successful response