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

List inventory units of a given part, grouped by physical location. Use case group: Manage Supply Chain

Query

query InventoryByLocation($partId: Int!) {
  partInventories(filters: { partId: { eq: $partId } }, limit: 250) {
    id
    serialNumber
    lotNumber
    quantity
    state
    location { id name locationType }
  }
}

Variables

{ "partId": 12 }

Sample response

{
  "data": {
    "partInventories": [
      { "id": 9876, "serialNumber": "SN-00001", "lotNumber": null, "quantity": 1, "state": "available", "location": { "id": 4, "name": "WC-Assembly-1", "locationType": "WORKCENTER" } }
    ]
  }
}

Notes

Group client-side by location.id to produce a per-location count.