Inventory Item Ledgers
Schema​
InventoryItemLedger​
| Name | Type | Description | Example |
|---|---|---|---|
| id | ID | Unique identifier for inventory item ledgers | "ckmnpybisiy5x08abky4g2d1f" |
| createdAt | DateTime | When this inventory item ledger was created | "2021-03-24 17:26:46.983Z" |
| updatedAt | DateTime | When this inventory item ledger was updated | "2021-03-24 17:26:46.983Z" |
| balance | Float | The balance of the inventory item ledger | 100.0 |
| minQuantity | Float | The minimum quantity of the inventory item ledger | 10.0 |
| inventoryItem | InventoryItem | The inventory item associated with this ledger | {} |
| inventoryItemLedgerSublocations | InventoryItemLedgerSublocation | The sublocations ledgers associated with this ledger | [] |
| job | Job | The job associated with this ledger | {} |
| location | Location | The location associated with this ledger | {} |
Queries​
inventoryItemLedger​
Get a single inventory item ledger by ID.
Parameters​
| Name | Type | Description |
|---|---|---|
| id | ID | ID of the inventory item ledger to fetch |
Response​
A single InventoryItemLedger.
Example Request​
query {
inventoryItemLedger(id: "ckb91igzt01e90733giki0v0p") {
id
}
}
Example Response​
{
"id": "ckb91igzt01e90733giki0v0p",
}
inventoryItemLedgers​
Get a list of inventory item ledgers.
Parameters​
Accepts all standard pagination parameters.
Allowed orderBy fields: createdAt, id, updatedAt.
Allowed filter fields: createdAt, id, locationId, jobId, inventoryItemId, updatedAt.
Response​
A list of InventoryItemLedgers objects.
Example Request​
query {
inventoryItemLedgers {
id
}
}
Example Response​
[
{
"id": "ckb91igzt01e90733giki0v0p",
}
]