Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Inventory

Input

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.

ID!

No description.

ID!

No description.

Int!

No description.

InventoryAdjustmentReason!

No description.

String

Required when reason is OTHER.

Object

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!

No description.

Int!

Signed. Negative removes stock.

InventoryQuantityName!

Which quantity moved.

Int!

What it was before, so the ledger reads without replaying it.

Int!

No description.

InventoryAdjustmentReason!

No description.

String

The merchant’s own note. Shown in the ledger; required for OTHER.

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.

DateTime!

No description.

Object

A page of ledger entries.

[InventoryAdjustmentEdge!]!

No description.

[InventoryAdjustment!]!

No description.

PageInfo!

No description.

Object

One ledger entry, with its cursor.

String!

No description.

InventoryAdjustment!

No description.

Enum

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.

ValueMeaning
RECEIVEDStock arrived.
RECOUNTA physical count corrected the record.
SOLDSold. Recorded by the platform when an order is placed.
RESTOCKEDAn order was cancelled or refunded and the goods came back.
DAMAGEDBroken, expired, or otherwise unsellable.
SHRINKAGEMissing, with no explanation. The number a merchant watches.
TRANSFER_OUTSent to another location.
TRANSFER_INArrived from another location.
RETURNED_TO_SUPPLIERReturned to the supplier.
OTHERAnything else. note is required.
Input

A filter on an inventory listing.

ID

No description.

Boolean

Items at or below their own lowStockThreshold.

Int

Items with available at or below this.

Boolean

Items whose available is negative — oversold, and needing attention first.

String

No description.

Object

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!

No description.

ProductVariant!

The variant this belongs to.

String

No description.

InventoryLevelConnection!

Stock at each location. One entry per location that stocks it.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

Int!

Summed across every location, for a listing that does not page levels.

Int!

No description.

Int!

No description.

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.

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.

Boolean!

No description.

DateTime!

No description.

DateTime!

No description.

Object

A page of stock records.

[InventoryItemEdge!]!

No description.

[InventoryItem!]!

No description.

PageInfo!

No description.

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.

Object

One stock record, with its cursor.

String!

No description.

InventoryItem!

No description.

Object

What the inventory-item mutations return.

InventoryItem

No description.

[UserError!]!

No description.

Input

Settings on a stock record.

Boolean

No description.

Boolean

No description.

MoneyInput

No description.

Object

Stock of one item at one location.

ID!

No description.

InventoryItem!

No description.

Location!

No description.

Int!

Physically present, sold or not.

Int!

Spoken for by placed orders not yet shipped.

Int!

Held by carts in checkout. Expires; see reservationExpiryMinutes.

Int!

On a transfer or purchase order, not yet arrived.

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.

Int

Below this, the platform notifies. Null when the merchant set none.

DateTime!

No description.

Object

A page of levels.

[InventoryLevelEdge!]!

No description.

[InventoryLevel!]!

No description.

PageInfo!

No description.

Object

One level, with its cursor.

String!

No description.

InventoryLevel!

No description.

Input

A level’s own settings.

ID!

No description.

ID!

No description.

Int

Null clears it.

Object

What the inventory mutations return.

[InventoryLevel!]!

The levels after the operation, in the order supplied.

[InventoryAdjustment!]!

The adjustments recorded, so a client can show the ledger it just wrote.

[UserError!]!

No description.

Enum

Which of an item’s quantities a change applied to.

ValueMeaning
ON_HANDNo description.
COMMITTEDNo description.
RESERVEDNo description.
INCOMINGNo description.
Input

An absolute count after a physical stocktake.

ID!

No description.

ID!

No description.

Int!

No description.

String

No description.

Object

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!

No description.

String!

No description.

Location!

No description.

Location!

No description.

InventoryTransferStatus!

No description.

[InventoryTransferLine!]!

No description.

DateTime

When the merchant expects it to arrive.

String

No description.

DateTime!

No description.

DateTime

No description.

DateTime

No description.

Object

A page of transfers.

[InventoryTransferEdge!]!

No description.

[InventoryTransfer!]!

No description.

PageInfo!

No description.

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.

Input

A new transfer.

ID!

No description.

ID!

No description.

[InventoryTransferLineInput!]!

No description.

DateTime

No description.

String

No description.

Object

One transfer, with its cursor.

String!

No description.

InventoryTransfer!

No description.

Object

One item on a transfer.

InventoryItem!

No description.

Int!

How many were sent.

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.

Input

One line on a transfer.

ID!

No description.

Int!

No description.

Object

What the transfer mutations return.

InventoryTransfer

No description.

[UserError!]!

No description.

Input

What actually arrived.

[InventoryTransferReceiveLineInput!]!

No description.

Boolean

Whether a shortfall is written off as shrinkage at the origin.

Input

How many of one line arrived.

ID!

No description.

Int!

No description.

Enum

Where a transfer has got to.

ValueMeaning
DRAFTBeing prepared. Nothing has moved.
IN_TRANSITLeft the origin. Deducted there, incoming at the destination.
RECEIVEDArrived. incoming cleared, onHand credited at the destination.
PARTIALLY_RECEIVEDSome lines arrived short. The difference is recorded as shrinkage.
CANCELLEDNo description.