Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firstresonance.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Get every serialized instance of a part with its current state. Use case group: Manage Supply Chain

Query

query SerializedUnits($partId: Int!) {
  partInventories(filters: { partId: { eq: $partId }, hasSerial: true }, limit: 250) {
    id
    serialNumber
    state
    parentPartInventory { id serialNumber }
    location { id name }
  }
}

Variables

{ "partId": 12 }

Sample response

{
  "data": {
    "partInventories": [
      { "id": 9876, "serialNumber": "SN-00001", "state": "installed", "parentPartInventory": { "id": 5500, "serialNumber": "ASM-00012" }, "location": { "id": 4, "name": "WC-Assembly-1" } }
    ]
  }
}

Notes

parentPartInventory is non-null when the unit is installed in an assembly. Walk it recursively for the full as-built tree.