Create BOM
POST/api/manufacturing/boms
Create a new BOM with output lines, component lines, and (optional) operations.
manufacturing:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Consumption method fields:
default_consumption_method(optional, enum:forward_flush|backflush) — BOM-level default inherited by component lines that omit their ownconsumption_method. Null means no default (lines fall back toforward_flush).component_lines[].consumption_method(optional, enum:forward_flush|backflush) — how the component is issued when production is recorded.forward_flush(the default) waits for the operator to issue the component explicitly with an actual consumed quantity;backflushauto-consumes it from the produced output quantity multiplied by the BOM per-unit usage, with no operator entry required. An explicitnullbehaves exactly like omitting the field — the line inheritsdefault_consumption_method, falling back toforward_flushwhen the BOM has no default. The method is snapshotted onto each manufacturing-order component line at confirmation, so later BOM edits never change how an already-open order consumes.
Operation cost fields: each operations[] row accepts time_minutes, cost_per_hour, and fixed_cost (optional, numeric, min 0) — a flat per-run cost added on top of time-based labour. Fixed cost is capitalized onto finished goods the same way labour is, but is never marked up by work-center overhead.
Auth: requires Bearer token.
cost_classification (optional, labor|overhead, default labor) sets the expense classification independently of the rate basis: labor posts the operation's variable cost to the Labor bucket (marked up by the work center's overhead %); overhead posts machine/tooling-style cost to the Overhead bucket with no additional markup.
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.