EndpointsManufacturingResourcesIdStockBuilds
List completed assembly builds for an item
The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.
GET
bearerAuthheader
AuthorizationBearer <inv_ token>id*stringFormat
uuidlimit?integerRange
1 <= value <= 100Default
50X-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidCompleted builds with immutable component snapshots
application/json- response
builds*array<>curl -X GET 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/stock/builds'Example Response200
{ "builds": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "assemblyResourceId": "9cc34df1-13e3-4a98-a686-402f79f5da36", "quantity": 1, "occurredAt": "2019-08-24T14:15:22Z", "location": "string", "note": "string", "materialCosts": { "property1": 0, "property2": 0 }, "unpricedComponentQuantity": 0, "costEstimated": true, "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "components": [ { "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "name": "string", "sku": "string", "quantityPerAssembly": 1, "quantityConsumed": 1, "costs": { "property1": 0, "property2": 0 }, "unpricedQuantity": 0, "costEstimated": true, "componentUnits": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "location": "string", "status": "string", "outputUnitId": "d46dfde7-bbfa-427b-ad3e-17ac75b78c91" } ], "stockMovementIds": [ "d7590823-8061-4f33-9ebe-2d5ef6d7b8f3" ], "outputUnitIds": [ "d8044f38-6f8b-4af5-994e-771b85983f4b" ] } ], "outputUnits": [ { "status": "available", "location": "string", "locationResourceId": "cad4fbcc-0e81-4c59-9f5c-423e9329e3ec", "metadata": {}, "customFields": { "property1": "string", "property2": "string" }, "occurredAt": "2019-08-24T14:15:22Z", "reason": "string", "note": "string", "totalPriceCents": -2000000000, "priceCurrency": "str", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "code": "string", "acquisitionCostCents": 0, "costCurrency": "string", "acquiredAt": "2019-08-24T14:15:22Z", "lastMovedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ] } ]}