Skip to main content
object

Requires read_batches access scope.

A group of items being processed through a batch workflow.

•DateTime!
non-null

The date and time when the batch was created.

•BatchStep

The last step that still has items in progress. Returns the Done step only when all items are in Done.

Show fields
•EventConnection!
non-null

The list of events associated with the batch.

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.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
•string

The action that occurred.

Example:

  • action:create
Anchor to comments
•boolean

Whether or not to include comment-events in your search, passing false will exclude comment-events, any other value will include comment-events.

Example:

  • false
  • true
Anchor to created_at
•time

Filter by the date and time when the event occurred. Event data is retained for 1 year.

Example:

  • created_at:>2025-10-21
  • created_at:<now
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to subject_type
•string

The resource type affected by this event. See EventSubjectType for possible values.

Example:

  • PRODUCT_VARIANT
  • PRODUCT
  • COLLECTION
•Boolean
Default:false

Reverse the order of the underlying list.

•EventSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

•Boolean!
non-null

Whether the merchant has added timeline comments to the batch.

•ID!
non-null

A globally-unique ID.

•Count!
non-null

The total number of items in this batch, summed across every step.

Show fields
•String!
non-null

The display name of the batch.

•UnsignedInt64

The shop-scoped batch number, if one has been assigned.

•BatchStatus!
non-null

The current status of the batch.

Show enum values
•BatchStepConnection!
non-null

The steps in this batch.

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.


•DateTime!
non-null

The date and time when the batch was last updated.

Anchor to workflowConfigurationworkflowConfiguration
•BatchWorkflowConfiguration!
non-null

The batch workflow configuration that this batch uses.

Show fields

Was this section helpful?

•query

Returns a batch for the shop.

Show fields

Arguments

•ID!
required

The ID of the batch to return.


•query

Returns a paginated list of batches 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.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to assigned_to
•id

Filter batches where any step is assigned to this staff member.

Example:

  • assigned_to:12345
Anchor to created_at
•time

Filter by creation date and time.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<='2024'
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to item_count
•integer

Filter batches by the number of items they contain.

Example:

  • item_count:0
  • item_count:>5
  • item_count:<=10
•string

Filter batches by name. Quoted values match the whole name, ignoring case. Unquoted values match substrings.

Example:

  • name:2026-04-15
  • name:"Morning picks"
•string

Filter batches by their status.

Valid values:

  • open
  • in_progress
  • closed

Example:

  • status:open
  • status:closed
  • status:in_progress
Anchor to updated_at
•time

Filter batches by their last update date and time. Dates without a timezone use the shop's timezone.

Example:

  • updated_at:>=2026-10-19
  • updated_at:<'2026-10-20T00:00:00Z'
•Boolean
Default:false

Reverse the order of the underlying list.

•BatchSortKeys
Default:CREATED_AT

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values

•query

Returns a paginated list of non-closed batches that can be filtered by fulfillment order attributes.

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.

Anchor to fulfillmentOrderQueryfulfillmentOrderQuery
•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to assigned_location_id
•id
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to product_variant_id
•id

Filter fulfillment orders containing a line item for this product variant. Requires the read_products access scope.

Example:

  • product_variant_id:12345
•string
Anchor to updated_at
•time
•Int

The last n elements from the paginated list.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

Show filters
Anchor to assigned_to
•id

Filter batches where any step is assigned to this staff member.

Example:

  • assigned_to:12345
Anchor to created_at
•time

Filter by creation date and time.

Example:

  • created_at:>'2020-10-21T23:39:20Z'
  • created_at:<now
  • created_at:<='2024'
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to item_count
•integer

Filter batches by the number of items they contain.

Example:

  • item_count:0
  • item_count:>5
  • item_count:<=10
•string

Filter batches by name. Quoted values match the whole name, ignoring case. Unquoted values match substrings.

Example:

  • name:2026-04-15
  • name:"Morning picks"
•string

Filter batches by their status.

Valid values:

  • open
  • in_progress
  • closed

Example:

  • status:open
  • status:closed
  • status:in_progress
Anchor to updated_at
•time

Filter batches by their last update date and time. Dates without a timezone use the shop's timezone.

Example:

  • updated_at:>=2026-10-19
  • updated_at:<'2026-10-20T00:00:00Z'
•Boolean
Default:false

Reverse the order of the underlying list.

•BatchSortKeys
Default:CREATED_AT

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

Show enum values


Was this section helpful?

•mutation

Adds items to the first step of an existing batch.

Supports an optional idempotency key using the @idempotent directive. For more information, see the idempotency documentation.

Show payload

Arguments

•ID!
required

The ID of the batch.

•[ID!]!
required

The IDs of the items to add to the batch. An empty list returns a NO_ITEMS error.


•mutation

Adds items to the most recent open or in-progress batch with the given name. An item goes to a different batch with the same name when that batch is full or when the batch workflow's steps don't allow the item in that batch alongside the items it already has. A full batch's overflow goes to a new batch with the same name, never an older one. Concurrent requests with the same name don't create duplicate batches.

Supports an optional idempotency key using the @idempotent directive. For more information, see the idempotency documentation.

Show payload

Arguments

•[ID!]

The items to add. If omitted or null, the matching batch is returned, or an empty batch with the given name is created if none exists. An empty list returns a NO_ITEMS error.

•String!
required

The name of the batch to add items to. A batch with this name is created if no eligible batch with the name exists.

•ID

The batch workflow to match. If set, only batches that use it are matched. If omitted, matching batches can use any batch workflow, and new batches use the shop's default batch workflow, which is created if it doesn't exist.


•mutation

Closes a batch. Every item must be in the batch workflow's Done step. An empty batch can be closed at any time. Closing a batch cancels any actions that are still running.

Show payload

Arguments

•ID!
required

The ID of the batch to close.


•mutation

Creates a batch.

Show payload

Arguments

•[ID!]

The items to add to the first step during batch creation. If omitted or null, an empty batch is created. An empty list returns a NO_ITEMS error.

•String

The display name for the batch. If omitted, a name is generated automatically.

•ID

The batch workflow for the new batch. If omitted, the shop's default batch workflow is used, and it's created if it doesn't exist.


•mutation

Moves items between steps within a batch. Supports an optional idempotency key using the @idempotent directive. Retrying with the same key returns the original move outcome without moving items again.

Show payload

Arguments

•BatchStepMoveDirection!
required

The direction to move items (next or previous step).

Show enum values
•ID!
required

The batch's globally unique ID.

•[ID!]

The items to move. When omitted or null, all items in the step are moved. An empty list may return a NO_ITEMS error.

•ID!
required

The step containing the items to move.


•mutation

Removes items from a batch.

Show payload

Arguments

•ID!
required

The batch's globally unique ID.

•BatchRemoveItemsTargetInput!
required

What to remove. Provide exactly one of stepId (bulk-remove all items in the step) or itemIds (remove specific items).

Show input fields

•mutation

Reopens a closed batch.

Show payload

Arguments

•ID!
required

The ID of the batch to reopen.


•mutation

Transfers items from one batch to another. Items land in the target batch's first step.

Show payload

Arguments

•[ID!]

The items to transfer. When omitted or null, all items in the step are transferred. An empty list may return a NO_ITEMS error.

•ID!
required

The batch the items currently belong to.

•ID!
required

The step in the source batch containing the items to transfer.

•ID!
required

The batch to transfer the items to.


•mutation

Updates a batch.

Show payload

Arguments

•ID!
required

The ID of the batch to update.

•String

The new name for the batch.



Was this section helpful?

•interface

Was this section helpful?