Inventory Item Ledger Sublocations
Schema​
InventoryItemLedgerSublocation
​
Name | Type | Description | Example |
---|---|---|---|
id | ID | Unique identifier for inventory item sublocations | "ckmnpybisiy5x08abky4g2d1f" |
createdAt | DateTime | When this inventory item ledger sublocation was created | "2021-03-24 17:26:46.983Z" |
updatedAt | DateTime | When this inventory item ledger sublocation was updated | "2021-03-24 17:26:46.983Z" |
isRoot | boolean | Whether the sublocation is a root sublocation | true |
quantity | float | Quantity of the item at this sublocation | 100 |
ledger | InventoryItemLedger | Inventory item ledger associated with this sublocation ledger | See InventoryItemLedger docs |
sublocation | Sublocation | Sublocation associated with this inventory ledger | See Sublocation docs |
Queries​
inventoryItemLedgerSublocation
​
Get a single inventory item ledger sublocation by ID.
Parameters​
Name | Type | Description |
---|---|---|
id | ID | ID of the inventory item ledger sublocation to fetch |
Response​
A single InventoryItemLedgerSublocation
.
Example Request​
query {
inventoryItemLedgerSublocation(id: "ckb91igzt01e90733giki0v0p") {
id
}
}
Example Response​
{
"id": "ckb91igzt01e90733giki0v0p",
}
inventoryItemLedgerSublocations
​
Get a list of inventory item ledger sublocations.
Parameters​
Accepts all standard pagination parameters.
Allowed orderBy fields: createdAt
, id
, updatedAt
.
Allowed filter fields: createdAt
, id
, isRoot
, ledgerId
, sublocationId
, updatedAt
.
Response​
A list of InventoryItemLedgerSublocation
objects.
Example Request​
query {
inventoryItemLedgerSublocations {
id
}
}
Example Response​
[
{
"id": "ckb91igzt01e90733giki0v0p",
}
]