Skip to main content

Inventory Items

Schema​

InventoryItem​

NameTypeDescriptionExample
idIDUnique identifier for inventory items"ckmnpybisiy5x08abky4g2d1f"
createdAtDateTimeWhen this inventory item was created"2021-03-24 17:26:46.983Z"
updatedAtDateTimeWhen this inventory item was updated"2021-03-24 17:26:46.983Z"
catalogSourceString?The source of the catalog item""
descriptionString?Description of the inventory item""
unitPriceFloat?The price of the inventory item0
unitsOfMeasureString?The unit of measure for the inventory item""
mpnString?The manufacturer part number of the inventory item""
upcString?The universal product code of the inventory item""
ledgersInventoryItemLedger[]The inventory ledgers associated with the inventory item[]

Queries​

inventoryItem​

Get a single inventory item by ID.

Parameters​

NameTypeDescription
idIDID of the inventory item to fetch

Response​

A single InventoryItem.

Example Request​

query {
inventoryItem(id: "ckb91igzt01e90733giki0v0p") {
id
}
}

Example Response​

{
"id": "ckb91igzt01e90733giki0v0p",
}

inventoryItems​

Get a list of inventory items.

Parameters​

Accepts all standard pagination parameters.

Allowed orderBy fields: createdAt, id, updatedAt.

Allowed filter fields: createdAt, id, catalogId, catalogSource, mpn, upc, updatedAt.

Response​

A list of InventoryItems objects.

Example Request​

query {
inventoryItems {
id
}
}

Example Response​

[
{
"id": "ckb91igzt01e90733giki0v0p",
}
]