batch
Requires access scope.
Returns a batch for the shop.
Arguments
- id (ID!)
- •ID!required
The ID of the batch to return.
Anchor to Possible returnsPossible returns
- Batch (Batch)
- Anchor to BatchBatch•Batch
A group of items being processed through a batch workflow.
Show fields
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the batch was created.
- Anchor to currentStepcurrent•Batch
Step Step The last step that still has items in progress. Returns the Done step only when all items are in Done.
Show fields
- Anchor to eventsevents•Event
Connection! non-null The list of events associated with the batch.
Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•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 comments•boolean
Whether or not to include comment-events in your search, passing
falsewill exclude comment-events, any other value will include comment-events.falsetrue- Anchor to created_at•time
Filter by the date and time when the event occurred. Event data is retained for 1 year.
created_at:>2025-10-21created_at:<now- Anchor to subject_type•string
The resource type affected by this event. See EventSubjectType for possible values.
PRODUCT_VARIANTPRODUCTCOLLECTION
Example:
Example:
Example:
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Event
Key Sort Keys 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
Arguments
- Anchor to hasTimelineCommenthas•Boolean!
Timeline Comment non-null Whether the merchant has added timeline comments to the batch.
- •ID!non-null
A globally-unique ID.
- Anchor to itemCountitem•Count!
Count non-null The total number of items in this batch, summed across every step.
Show fields
- Anchor to namename•String!non-null
The display name of the batch.
- Anchor to numbernumber•Unsigned
Int64 The shop-scoped batch number, if one has been assigned.
- Anchor to statusstatus•Batch
Status! non-null The current status of the batch.
Show enum values
- Anchor to stepssteps•Batch
Step Connection! non-null The steps in this batch.
Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the batch was last updated.
- Anchor to workflowConfigurationworkflow•Batch
Configuration Workflow Configuration! non-null The batch workflow configuration that this batch uses.
Show fields