Scheduled MOs
GET/api/manufacturing/scheduler/scheduled
Returns MOs with a scheduled_start within the date range. Non-paginated response shaped as { data, from, to, include_unscheduled, status, warehouse_ids }.
Show Unscheduled (U19 / U41): Pass include_unscheduled=1 (default) to include MOs that have a priority value but no scheduled_start — these appear in the Vue 3 Production Scheduler's Priority Queue sidebar so users can clear the production backlog. Pass include_unscheduled=0 to restrict the response to MOs whose scheduled_start falls inside the from/to date range.
Status filter (U40): Pass status[]=draft&status[]=in_progress (or comma-separated status=draft,in_progress) to restrict the timeline to specific MO statuses. Allowed values: draft, confirmed, in_progress, partially_completed. Unknown values are dropped; if nothing valid remains the filter falls back to all four active statuses. Omit to include all four.
Warehouse filter (U40): Pass warehouse_ids[]=5&warehouse_ids[]=7 (or comma-separated warehouse_ids=5,7) to restrict the timeline to MOs whose production warehouse OR destination warehouse matches one of the listed IDs. Non-numeric / zero / negative values are dropped. Omit to include all warehouses.
The top-level include_unscheduled, status, and warehouse_ids fields in the response echo the resolved filters that were applied.
Primary output name: primary_output_name resolves from the MO output lines. Draft MOs have no materialized output lines yet (they are created from the BOM at confirm time), so for drafts the value falls back to the BOM's primary output product — the Priority Queue never shows a blank output for a valid MO.
Request
Responses
- 200
OK