Skip to main content

Get How a Product Is Made

GET 

/api/manufacturing/products/:product/chain

How a product is made, worked out by walking its recipes.

Required scope: manufacturing:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: requires a Bearer token.

There is no stored chain. Starting from the product's live recipe, each component that itself has a live recipe is the stage before it, so the stages are derived and can never disagree with the recipes.

Returns an empty stages array when the product has no live recipe, and a single-element array when it is made in one step. Only the first stage lists components — every later stage consumes the stage before it.

Each stage carries the terms of the product it produces: is_contract_manufactured, contractor_name, service_fee_rate and cost_basis for an outsourced stage, or operations_cost_per_unit — the absorbed labour and overhead from the recipe's own operations, costed for one output unit — for a stage run in house. A vendor's charge is a payable and in-house work is absorbed cost, so the two are reported separately and never summed into one field. operations_cost_per_unit is null when the recipe has no operations.

A chain deeper than 5 stages, or recipes that reference each other in a loop, are reported in blockers.

Request

Responses

OK

Response Headers
    Content-Type