Skip to content

Batch

A job that runs one operation over many entries, such as a print or an import.

type Batch {
completeCount: Int!
createdAt: Instant!
createdUserId: Guid!
entries(
after: String
before: String
entryStatus: BatchEntryStatus
first: Int
last: Int
): BatchEntryInterfaceConnection
executingCount: Int!
failedCount: Int!
id: Guid!
name: String!
status: BatchStatus!
summary: BatchSummary
totalEntryCount: Int!
type: BatchType!
}

The number of complete entries.

When the batch was created.

The user who created the batch.

The batch’s entries, in rank order.

Only items after this cursor: the endCursor of the page before.

Only items before this cursor: the startCursor of the page after.

Only entries at this status. Omitted: every status.

At most this many items, from the start or after the after cursor.

At most this many items, from the end or before the before cursor.

The number of entries in progress now.

The number of errored entries, retryable or not.

Unique identifier.

The batch’s display name, such as Cancel or Timed Reports.

Where the batch stands.

The batch’s input and the totals of its entries.

The number of entries in the batch.

What the batch does.

batches.close mutation ● batches.createCancel mutation ● batches.createCopy mutation ● batches.createImportCustomers mutation ● batches.createImportStockTake mutation ● batches.createImportThirdPartyEntryCodes mutation ● batches.createImportTrackingReferences mutation ● batches.createMarketingEmail mutation ● batches.createOperationalEmail mutation ● batches.createPrint mutation ● batches.createRemindInactive mutation ● batches.createTakeScheduledPayments mutation ● batches.execute mutation ● batches.stop mutation

BatchConnection object ● BatchEdge object