Make to Order
List Make to Order Lines
Lists open sales-order lines for made-to-order products that are short and have no open manufacturing order yet, plus lines with an open build-to-order exception. A product is made to order when it has a default active recipe, its Build to order setting is Always, or the line is a configured line. Products set to Never, kits, bundles and lines shipping from Amazon FBA or supplier warehouses are left out.
Get Make to Order Summary
Counts over the whole list, ignoring filters: lines, units still to make, orders, and lines per status. `needs_attention` = needs_setup + blocked + exception. `enabled` says whether the Make to Order page is switched on (the `make_to_order` settings slug); the endpoints work either way.
List Make to Order Filter Options
Sales channels and option values present in the list, for building filters.
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`).
Dismiss Make to Order Lines
Takes lines out of the list. Only lines currently in it are dismissed. A dismissed line returns by itself when its quantity changes; restore it sooner with Restore Make to Order Lines. Dismissing never changes build to order.
Restore Make to Order Lines
Puts dismissed lines back in the list.
Exclude Products from Make to Order
Sets each product's Build to order setting to Never, so build to order and this list skip it from now on. Reversible by setting the product back to Follow or Always.