listBuildOrderRequirements
GET
/build-orders/{id}/requirements
const url = 'https://app.dev.buildtrace.eu/api/build-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requirements';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.dev.buildtrace.eu/api/build-orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/requirements \ --header 'Authorization: Bearer <token>'Required scope: production:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
revisionId
required
string format: uuid
partCode
required
string
partName
required
string
revisionLabel
required
string
kind
required
string
isSerialized
required
boolean
need
required
Outstanding quantity this order needs, netted against the parent’s shortfall.
string
have
required
What this node can claim — the order’s own existing allocation for the line plus its share of the remaining free stock, after items earlier in the tree took theirs.
string
short
required
Max(0, need - have). Zero means nothing to do for this item.
string
freeStock
required
Free stock of this revision before the tree allocated any of it.
string
children
required
Array<object> recursive
Example generated
[ { "revisionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "partCode": "example", "partName": "example", "revisionLabel": "example", "kind": "example", "isSerialized": true, "need": "example", "have": "example", "short": "example", "freeStock": "example", "children": [] }]Unauthorized
Not found
Conflict (cyclic or conflicting BOM)
Media typeapplication/json
object
error
required
string
Example generated
{ "error": "example"}