Open Inventory / Docs
EndpunkteManufacturingResourcesIdStockBuilds

List completed assembly builds for an item

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

GET
/resources/{id}/stock/builds

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

id*string
Formatuuid

Abfrageparameter

limit?integer
Bereich1 <= value <= 100
Standard50

Header-Parameter

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Antwortinhalt

Completed builds with immutable component snapshots

application/json
  1. response
builds*array<>
Beispielanfrage
curl -X GET 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/stock/builds'
Beispielantwort200
{  "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"        }      ]    }  ]}