Skip to main content
query

Requires read_batches access scope.

Returns a batch for the shop.

•ID!
required

The ID of the batch to return.


Was this section helpful?

•Batch

A group of items being processed through a batch workflow.

Show fields
•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?