Skip to main content

Batch

A Batch groups multiple Documents together for coordinated sending. Batches can enforce signing order across documents and track aggregate progress. They belong to a Group and are created by a User.

There are two batch types: BATCH (multi-document sends) and BULK (bulk sends to many recipients).

Implements: Node

Fields

FieldTypeDescription
idID!Unique identifier
nameStringTitle of the batch
enforceOrderBooleanWhether documents must be sent in a specific order
typeBatchTypeBULK or BATCH
creatorNameStringName of the user who initiated the batch
assigneeNameStringName of the user who controls the batch
requestIdIDID of the async task that created this batch
statusStringNet status of documents in the batch
progressBatchStatusProgress status: CREATING, EMAILING, COMPLETE, or UNKNOWN
documentCountIntTotal documents in the batch
submittedCountIntDocuments originally submitted
inProgressCountIntDocuments currently in progress
completedCountIntDocuments signed
rejectedCountIntDocuments rejected
awaitingActionCountIntDocuments needing admin action
bouncedCountIntDocuments with bounced emails
createdAWSDateTimeWhen the batch was created
modifiedAWSDateTimeWhen the batch was last modified

Relationships

FieldTypeDescription
groupGroupThe group this batch belongs to
creatorUserThe user who created the batch (full object — avoid on lists)

Connections

documentConnection

Documents within this batch. Supports cursor-based pagination.

ArgumentTypeDescription
firstIntNumber of items
afterIDPagination cursor

Query

query GetBatch($id: ID!) {
batch(id: $id) {
id
name
type
progress
documentCount
completedCount
}
}

Batches are also accessed via Group.batchConnection — see Group.

Example

A batch detail query with documents and recipients (based on the Legalesign Console app):

query GetBatchDetails {
batch(id: "YmF0Y2gxMjM0NTY3OC1hYmNkLTEyMzQtZWZnaC0wMTIzNDU2Nzg5YWI=") {
id
name
type
enforceOrder
status
progress
submittedCount
documentCount
inProgressCount
completedCount
rejectedCount
awaitingActionCount
bouncedCount
created
modified
creator {
id
name
email
}
documentConnection {
documents {
id
name
status
senderName
senderEmail
batchOrder
sourceTemplateId
created
modified
recipients {
id
email
role
roleType
status
firstName
lastName
sentDateTime
signedDateTime
emailProblem
recipientOrder
}
}
}
}
}

Export This Article

Save a copy of this page as PDF or plain text.