Inventory
InventoryAdjustInput
Section titled “InventoryAdjustInput”One stock change.
delta rather than an absolute value: two staff members counting the same shelf
at the same time should both have their corrections applied, not have the second
silently discard the first. Where a merchant genuinely means “set it to this” —
after a physical count — use inventorySetOnHand, which takes an absolute and
records the difference as a RECOUNT.
inventoryItemId
Section titled “inventoryItemId”ID!
No description.
locationId
Section titled “locationId”ID!
No description.
Int!
No description.
reason
Section titled “reason”InventoryAdjustmentReason!
No description.
String
Required when reason is OTHER.
InventoryAdjustment
Section titled “InventoryAdjustment”One recorded change to stock, and why.
The ledger. Every movement has one, including those the platform makes itself when an order is placed or cancelled.
ID!
No description.
InventoryItem!
No description.
location
Section titled “location”Location!
No description.
Int!
Signed. Negative removes stock.
quantityName
Section titled “quantityName”InventoryQuantityName!
Which quantity moved.
quantityBefore
Section titled “quantityBefore”Int!
What it was before, so the ledger reads without replaying it.
quantityAfter
Section titled “quantityAfter”Int!
No description.
reason
Section titled “reason”InventoryAdjustmentReason!
No description.
String
The merchant’s own note. Shown in the ledger; required for OTHER.
reference
Section titled “reference”Node
What caused it, when something did — an order, a transfer, a return, a job.
Null for an adjustment a person typed in, which is exactly the case a merchant is looking for when a count is wrong.
AuditActor!
No description.
occurredAt
Section titled “occurredAt”DateTime!
No description.
InventoryAdjustmentConnection
Section titled “InventoryAdjustmentConnection”A page of ledger entries.
[InventoryAdjustmentEdge!]!
No description.
[InventoryAdjustment!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
InventoryAdjustmentEdge
Section titled “InventoryAdjustmentEdge”One ledger entry, with its cursor.
cursor
Section titled “cursor”String!
No description.
InventoryAdjustment!
No description.
InventoryAdjustmentReason
Section titled “InventoryAdjustmentReason”Why stock moved.
A closed list, because free text cannot be reported on and “why is my shrinkage so high” is a question a merchant will ask.
| Value | Meaning |
|---|---|
RECEIVED | Stock arrived. |
RECOUNT | A physical count corrected the record. |
SOLD | Sold. Recorded by the platform when an order is placed. |
RESTOCKED | An order was cancelled or refunded and the goods came back. |
DAMAGED | Broken, expired, or otherwise unsellable. |
SHRINKAGE | Missing, with no explanation. The number a merchant watches. |
TRANSFER_OUT | Sent to another location. |
TRANSFER_IN | Arrived from another location. |
RETURNED_TO_SUPPLIER | Returned to the supplier. |
OTHER | Anything else. note is required. |
InventoryFilter
Section titled “InventoryFilter”A filter on an inventory listing.
locationId
Section titled “locationId”ID
No description.
lowStock
Section titled “lowStock”Boolean
Items at or below their own lowStockThreshold.
availableAtOrBelow
Section titled “availableAtOrBelow”Int
Items with available at or below this.
oversold
Section titled “oversold”Boolean
Items whose available is negative — oversold, and needing attention first.
String
No description.
InventoryItem
Section titled “InventoryItem”The stock record behind one variant.
Every variant has one from its creation: the record is made a moment after the
variant is, tracked, at zero, and stocked at no location, so a new variant sells
once its stock is counted somewhere. A service, a made-to-order item or a
digital download keeps its record and is switched to untracked
(inventoryItemUpdate, tracked: false).
ProductVariant.inventoryItem is nullable because the record follows the
variant by that moment: a create’s own answer, and a read made within it, carry
null. Read the variant again rather than taking null as untracked.
ID!
No description.
version
Section titled “version”Version!
No description.
variant
Section titled “variant”ProductVariant!
The variant this belongs to.
String
No description.
levels
Section titled “levels”InventoryLevelConnection!
Stock at each location. One entry per location that stocks it.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
totalOnHand
Section titled “totalOnHand”Int!
Summed across every location, for a listing that does not page levels.
totalAvailable
Section titled “totalAvailable”Int!
No description.
totalCommitted
Section titled “totalCommitted”Int!
No description.
totalIncoming
Section titled “totalIncoming”Int!
No description.
Money
What the merchant pays for it, mirrored from the variant so that a stock valuation report does not have to join back through the catalogue.
tracked
Section titled “tracked”Boolean!
Whether the platform decrements on sale.
False for a variant a merchant counts by hand — some merchants would rather oversell than maintain counts, and the platform should let them rather than producing numbers they will not keep true.
requiresShipping
Section titled “requiresShipping”Boolean!
No description.
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
InventoryItemConnection
Section titled “InventoryItemConnection”A page of stock records.
[InventoryItemEdge!]!
No description.
[InventoryItem!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
InventoryItemEdge
Section titled “InventoryItemEdge”One stock record, with its cursor.
cursor
Section titled “cursor”String!
No description.
InventoryItem!
No description.
InventoryItemPayload
Section titled “InventoryItemPayload”What the inventory-item mutations return.
inventoryItem
Section titled “inventoryItem”InventoryItem
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
InventoryItemUpdateInput
Section titled “InventoryItemUpdateInput”Settings on a stock record.
tracked
Section titled “tracked”Boolean
No description.
requiresShipping
Section titled “requiresShipping”Boolean
No description.
MoneyInput
No description.
InventoryLevel
Section titled “InventoryLevel”Stock of one item at one location.
ID!
No description.
InventoryItem!
No description.
location
Section titled “location”Location!
No description.
onHand
Section titled “onHand”Int!
Physically present, sold or not.
committed
Section titled “committed”Int!
Spoken for by placed orders not yet shipped.
reserved
Section titled “reserved”Int!
Held by carts in checkout. Expires; see reservationExpiryMinutes.
incoming
Section titled “incoming”Int!
On a transfer or purchase order, not yet arrived.
available
Section titled “available”Int!
onHand − committed − reserved. What a storefront may sell.
Derived, never stored. It can go negative when a merchant permits overselling, and a negative here is a real answer rather than an error: it says how deep the hole is.
lowStockThreshold
Section titled “lowStockThreshold”Int
Below this, the platform notifies. Null when the merchant set none.
updatedAt
Section titled “updatedAt”DateTime!
No description.
InventoryLevelConnection
Section titled “InventoryLevelConnection”A page of levels.
[InventoryLevelEdge!]!
No description.
[InventoryLevel!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
InventoryLevelEdge
Section titled “InventoryLevelEdge”One level, with its cursor.
cursor
Section titled “cursor”String!
No description.
InventoryLevel!
No description.
InventoryLevelUpdateInput
Section titled “InventoryLevelUpdateInput”A level’s own settings.
inventoryItemId
Section titled “inventoryItemId”ID!
No description.
locationId
Section titled “locationId”ID!
No description.
lowStockThreshold
Section titled “lowStockThreshold”Int
Null clears it.
InventoryPayload
Section titled “InventoryPayload”What the inventory mutations return.
levels
Section titled “levels”[InventoryLevel!]!
The levels after the operation, in the order supplied.
adjustments
Section titled “adjustments”[InventoryAdjustment!]!
The adjustments recorded, so a client can show the ledger it just wrote.
userErrors
Section titled “userErrors”[UserError!]!
No description.
InventoryQuantityName
Section titled “InventoryQuantityName”Which of an item’s quantities a change applied to.
| Value | Meaning |
|---|---|
ON_HAND | No description. |
COMMITTED | No description. |
RESERVED | No description. |
INCOMING | No description. |
InventorySetOnHandInput
Section titled “InventorySetOnHandInput”An absolute count after a physical stocktake.
inventoryItemId
Section titled “inventoryItemId”ID!
No description.
locationId
Section titled “locationId”ID!
No description.
onHand
Section titled “onHand”Int!
No description.
String
No description.
InventoryTransfer
Section titled “InventoryTransfer”Stock moving between two of the merchant’s own locations.
Modelled as its own object rather than as a pair of adjustments because stock in
transit belongs to neither end: counted as incoming at the destination and
already gone from the origin, and visible as a thing that can be delayed or lost.
ID!
No description.
version
Section titled “version”Version!
No description.
reference
Section titled “reference”String!
No description.
origin
Section titled “origin”Location!
No description.
destination
Section titled “destination”Location!
No description.
status
Section titled “status”InventoryTransferStatus!
No description.
[InventoryTransferLine!]!
No description.
expectedAt
Section titled “expectedAt”DateTime
When the merchant expects it to arrive.
String
No description.
createdAt
Section titled “createdAt”DateTime!
No description.
shippedAt
Section titled “shippedAt”DateTime
No description.
receivedAt
Section titled “receivedAt”DateTime
No description.
InventoryTransferConnection
Section titled “InventoryTransferConnection”A page of transfers.
[InventoryTransferEdge!]!
No description.
[InventoryTransfer!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int
How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.
InventoryTransferCreateInput
Section titled “InventoryTransferCreateInput”A new transfer.
originLocationId
Section titled “originLocationId”ID!
No description.
destinationLocationId
Section titled “destinationLocationId”ID!
No description.
[InventoryTransferLineInput!]!
No description.
expectedAt
Section titled “expectedAt”DateTime
No description.
String
No description.
InventoryTransferEdge
Section titled “InventoryTransferEdge”One transfer, with its cursor.
cursor
Section titled “cursor”String!
No description.
InventoryTransfer!
No description.
InventoryTransferLine
Section titled “InventoryTransferLine”One item on a transfer.
InventoryItem!
No description.
quantity
Section titled “quantity”Int!
How many were sent.
receivedQuantity
Section titled “receivedQuantity”Int
How many actually arrived. Null until received.
Separate from quantity because they differ often enough to matter, and the
difference is shrinkage that has to land somewhere.
InventoryTransferLineInput
Section titled “InventoryTransferLineInput”One line on a transfer.
inventoryItemId
Section titled “inventoryItemId”ID!
No description.
quantity
Section titled “quantity”Int!
No description.
InventoryTransferPayload
Section titled “InventoryTransferPayload”What the transfer mutations return.
transfer
Section titled “transfer”InventoryTransfer
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
InventoryTransferReceiveInput
Section titled “InventoryTransferReceiveInput”What actually arrived.
[InventoryTransferReceiveLineInput!]!
No description.
recordShortfallAsShrinkage
Section titled “recordShortfallAsShrinkage”Boolean
Whether a shortfall is written off as shrinkage at the origin.
InventoryTransferReceiveLineInput
Section titled “InventoryTransferReceiveLineInput”How many of one line arrived.
inventoryItemId
Section titled “inventoryItemId”ID!
No description.
receivedQuantity
Section titled “receivedQuantity”Int!
No description.
InventoryTransferStatus
Section titled “InventoryTransferStatus”Where a transfer has got to.
| Value | Meaning |
|---|---|
DRAFT | Being prepared. Nothing has moved. |
IN_TRANSIT | Left the origin. Deducted there, incoming at the destination. |
RECEIVED | Arrived. incoming cleared, onHand credited at the destination. |
PARTIALLY_RECEIVED | Some lines arrived short. The difference is recorded as shrinkage. |
CANCELLED | No description. |