Skip to main content
object

Requires read_inventory_counts access scope, or read_inventory access scope for the Physical inventory feature preview. Also: The user must have permission to view inventory counts.

Represents an inventory count operation for auditing and adjusting stock levels at a specific location.


Note

This object is available only in the unstable API version and to development stores that have enabled the Physical inventory feature preview.


•DateTime

The date and time the count was closed. A count is closed when it's completed or canceled.

•String!
non-null

The data stored in the resource, represented as a digest.

•DateTime!
non-null

The date and time the count was created.

•StaffMember

The staff member who created the count.

Show fields
•ID!
non-null

A globally-unique ID.

•InventoryCountLineItemConnection!
non-null

The line items included in this count.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.


•Count

The number of line items in this count.

Show fields
•LocationSnapshot!
non-null

A snapshot of the count's location.

Show fields
•String!
non-null

The display name for the count.

•String

A note about the count.

•DateTime

The planned date for the count.

•InventoryCountStatus!
non-null

The derived status of the count.

Show enum values
•[String!]!
non-null

A list of tags associated with the count.

•String

The title of the count.


Was this section helpful?

•query

Returns an InventoryCount object by ID.

Show fields

Arguments

•ID!
required

The ID of the inventory count.


•query

Returns a paginated list of inventory counts for the shop.

Show fields

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?

•mutation

Adds inventory items to an existing inventory count.

Show payload

Arguments

•ID!
required

The ID of the inventory count.

•[InventoryCountLineItemInput!]!
required

The line items to add to the count.

Show input fields

•mutation

Cancels an open inventory count. This operation is irreversible.

Show payload

Arguments

•ID!
required

The ID of the inventory count.


•mutation

Marks an inventory count as completed and applies any inventory adjustments based on the counted quantities. This operation is irreversible.

Show payload

Arguments

•String

The compareDigest value obtained from a previous query. Provide this with updates to ensure the resource is modified safely.

•ID!
required

The ID of the inventory count.


•mutation

Creates an inventory count for auditing and adjusting stock levels at a specific location.


Note

This mutation is available only in the unstable API version and to development stores that have enabled the Physical inventory feature preview.


Show payload

Arguments

•Boolean
Default:false

When true, the count is created already completed and its results are posted immediately and generate inventory adjustments. Defaults to false, which creates an open count to be worked on.

•[InventoryCountLineItemInput!]
Default:[]

The line items to include in the count.

Show input fields
•ID!
required

The ID of the location for the count.

•InventoryCountMetadataInput

The metadata associated with the count.

Show input fields

•mutation

Records observations for items in an inventory count as counted quantities. Each observation input identifies an inventory item by its ID; if the item is not yet on the count, a line is created for it. Each delta quantity for an observation adds to the item's total quantity.

Show payload

Arguments

•ID!
required

The ID of the inventory count.

•[InventoryCountObservationInput!]!
required

The observations to record.

Show input fields

•mutation

Removes line items from an existing inventory count.

Show payload

Arguments

•String

The compareDigest value obtained from a previous query. Provide this with updates to ensure the resource is modified safely.

•ID!
required

The ID of the inventory count.

•[ID!]!
required

The IDs of the line items to remove from the count.


•mutation

Requests or withdraws a review of an inventory count. Requesting a review marks the count as ready to be reviewed; withdrawing it removes that request.

Show payload

Arguments

•ID!
required

The ID of the inventory count.

•Boolean!
required

Whether a review is requested. Pass true to request a review and false to withdraw the request.


•mutation

Changes the location of an inventory count. Only allowed while the count is open and has no line items.

Show payload

Arguments

•ID!
required

The ID of the inventory count.

•ID!
required

The ID of the location to move the count to.


•mutation

Updates metadata for an inventory count.

Show payload

Arguments

•ID!
required

The ID of the inventory count.

•InventoryCountMetadataInput!
required

The metadata to set on the count.

Show input fields


Was this section helpful?

•interface

Was this section helpful?