Skip to main content
Anchor to inventoryCountCreate

inventoryCountCreate

mutation

Requires write_inventory_counts access scope, or write_inventory access scope for the Physical inventory feature preview. Also: The user must have permission to manage inventory counts.

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.


•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

Was this section helpful?

Anchor to InventoryCountCreatePayload returnsInventoryCountCreatePayload returns

•InventoryCount

The created inventory count.

Show fields
•[InventoryCountCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?