Skip to content
Pyck docs

createInventoryItem

Since pyck v0.27.0

Served by: inventory

Name Type Default Description
input CreateInventoryItemInput!

InventoryItemOutput

Creates a new inventory item. Expects the server to return the created item with its assigned ID.

mutation CreateInventoryItem($input: CreateInventoryItemInput!) {
createInventoryItem(input: $input) {
eventCount
inventoryItem {
createdAt
createdBy
currentStockTotals {
lastChangedAt
quantity
}
data
dataTypeID
dataTypeSlug
deletedAt
deletedBy
id
sku
tenantID
updatedAt
updatedBy
}
transactionID
}
}

Variables

{
"input": {
"sku": "WIDGET-001"
}
}