Skip to main content
mutation

Requires write_batches access scope.

Creates a batch.

•[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.


Was this section helpful?

Anchor to BatchCreatePayload returnsBatchCreatePayload returns

•Batch

The created batch.

Show fields
•[BatchItemRejection!]

Items that were rejected when adding initial items to the batch, grouped by rejection reason.

Show fields
•[BatchCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?