Skip to main content

Manufacturing Orders

📄️Cancel MO

Cancel a manufacturing order. Transitions any non-closed status → Cancelled and releases any inventory reservations. **Required body fields:** - `reason_code` (string, required) — must be one of the 5 allowed values: - `plan_changed` — Plan changed - `materials_unavailable` — Materials unavailable - `customer_cancellation` — Customer cancellation - `equipment_issue` — Equipment issue - `other` — Other **Optional body fields:** - `notes` (string, nullable, max 2000) — Free-text reason explanation - `reason_notes` (string, nullable, max 2000) — **Alias for `notes`** — accepted for API consistency. If `notes` is absent and `reason_notes` is provided, it is copied into `notes` during validation. Sending both means `notes` wins. **Returns 422 if `reason_code` is missing or not in the allowed list.** **Authentication:** Bearer token required.