Cancel MO
POST/api/manufacturing/manufacturing-orders/1/cancel
Cancel a manufacturing order. Transitions any non-closed status → Cancelled and releases any inventory reservations.\n\nRequired body fields:\n- reason_code (string, required) — must be one of the 5 allowed values:\n - plan_changed — Plan changed\n - materials_unavailable — Materials unavailable\n - customer_cancellation — Customer cancellation\n - equipment_issue — Equipment issue\n - other — Other\n\nOptional body fields:\n- notes (string, nullable, max 2000) — Free-text reason explanation\n- 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.\n\nReturns 422 if reason_code is missing or not in the allowed list.\nAuthentication: Bearer token required.
Request
Responses
- 200
- 422
OK
Response Headers
Unprocessable Entity