Skip to main content

documentTemplateConfig

Requires permission settings:documents:read.

The saved document template config for a document type (null if unset).

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:

query DocumentTemplateConfig($documentType: String!) {
documentTemplateConfig(documentType: $documentType) {
id
companyName
accentColor
companyAddress
documentType
footerText
}
}

Variables:

{
"documentType": "string"
}

Response:

{
"data": {
"documentTemplateConfig": {
"id": "id",
"companyName": "string",
"accentColor": "string",
"companyAddress": "string",
"documentType": "string",
"footerText": "string"
}
}
}
documentTemplateConfig(
documentType: String!
): DocumentTemplateConfig

Arguments​

documentTemplateConfig.documentType ● String! non-null scalar​

The kind of document, for example a quote or an invoice.

Type​

DocumentTemplateConfig object​

The organization's setup of one document template.