Skip to main content

Make to Order

📄️Make Sales Order Lines

Starts a background job that raises a manufacturing order for each line, one line at a time, exactly as 'Make to order' on the sales-order line does: the order is confirmed, carries the line's options and its output is held for that line. A line that cannot be made is skipped with its reason; a line short of components is still raised. Returns 202 with the tracked job ID. The job's results hold `raised_count`, `skipped_count`, `failed_count`, `has_failures` and `rows` (per line: `sales_order_line_id`, `sales_order_id`, `sales_order_number`, `sku`, `quantity`, `outcome` raised|skipped|failed, `message`, `manufacturing_orders`).