Skip to main content

renderDocuments

Requires permission documents:template:update.

Print up to 50 documents of one type with one template into one PDF. Returns a job to poll with documentRenderJob.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RenderDocuments($input: RenderDocumentsInput!) {
renderDocuments(input: $input) {
id
status
documentCount
error
url
}
}

Variables:

{
"input": {
"docType": "string",
"ids": [
"id"
]
}
}

Response:

{
"data": {
"renderDocuments": {
"id": "id",
"status": "string",
"documentCount": 0,
"error": "string",
"url": "string"
}
}
}
renderDocuments(
input: RenderDocumentsInput!
): DocumentRenderJob!

Arguments​

renderDocuments.input ● RenderDocumentsInput! non-null input​

The document type, the documents and the template.

Type​

DocumentRenderJob object​

A bulk print: up to 50 documents merged into one PDF.