TemplateVariables
Root object containing all variables available for document template rendering.
This class serves as the data model for Liquid/Fluid template rendering,
providing access to client, practice, proposal, and document-level data.
Properties
| Name | Type | Description |
|---|---|---|
| title | string | Document-level title (e.g., "Engagement Letter", "Annual Proposal"). |
Document-level title (e.g., "Engagement Letter", "Annual Proposal"). | ||
| subtitle | string | Document-level subtitle providing additional context. |
Document-level subtitle providing additional context. | ||
| secondarySubtitle | string | Optional secondary subtitle for additional document identification. |
Optional secondary subtitle for additional document identification. | ||
| postalAddress | string | |
| addressee | string | |
| date | string | Pre-formatted ordinal date string (e.g. "27th June 2025). |
Pre-formatted ordinal date string (e.g. "27th June 2025). | ||
| logo | string | URL or base64-encoded image data for the practice logo. |
URL or base64-encoded image data for the practice logo. | ||
| client | ClientDto | |
| business | BusinessDetailsDto | |
| vat | VatPeriodTokens | |
| clientRegisteredAddress | string | Single resolved address for letter headers and templates, automatically chosen by client type: |
Single resolved address for letter headers and templates, automatically chosen by client type: | ||
| clientNiNumber | string | National Insurance Number sourced from the primary contact, populated only for |
National Insurance Number sourced from the primary contact, populated only for | ||
| clientHomeAddress | string | Residential (home) address for self-assessment, sourced from the primary contact for |
Residential (home) address for self-assessment, sourced from the primary contact for | ||
| clientDateOfBirth | string | Date of birth sourced from the primary contact, populated only for Individual and Sole Trader |
Date of birth sourced from the primary contact, populated only for Individual and Sole Trader | ||
| clientUtr | string | Unique Taxpayer Reference resolved by client type: the primary contact's personal UTR for |
Unique Taxpayer Reference resolved by client type: the primary contact's personal UTR for | ||
| clientMaritalStatus | string | Marital status (friendly display name) sourced from the primary contact, populated only for |
Marital status (friendly display name) sourced from the primary contact, populated only for | ||
| primaryContact | ContactDto | |
| billingContact | ContactDto | |
| payrollContact | ContactDto | |
| accountsContact | ContactDto | |
| partner | TenantUserDto | |
| manager | TenantUserDto | |
| practice | PracticeDetailsDto | |
| engagement | EngagementDto | |
| proposal | EngagementDto | |
| hasProposal | boolean | Indicates whether the engagement includes a proposal. |
Indicates whether the engagement includes a proposal. | ||
| keyDates | object | Client key dates keyed by the ClientDateType enum name (e.g., YearEnd, AccountsNextDue). |
Client key dates keyed by the ClientDateType enum name (e.g., YearEnd, AccountsNextDue). | ||
| customFields | object | Client custom field values keyed by the custom field definition code. |
Client custom field values keyed by the custom field definition code. | ||
| htmlBlocks | object | Dictionary of custom HTML blocks that can be injected into templates. |
Dictionary of custom HTML blocks that can be injected into templates. | ||
| schedules | ContentBlockCollection | |
| url | string | Generic URL for use in templates (e.g., authorization links, callback URLs, external resources). |
Generic URL for use in templates (e.g., authorization links, callback URLs, external resources). | ||
| buttonText | string | Button text for use in templates (e.g., confirmation button text). |
Button text for use in templates (e.g., confirmation button text). | ||
| contact | ContactDto | |
| summary | string | Summary or description text (e.g., document summary). |
Summary or description text (e.g., document summary). | ||
| custom | object | User-defined custom token values keyed by token name. |
User-defined custom token values keyed by token name. | ||
| pageNumber | string | Current page number for PDF rendering. |
Current page number for PDF rendering. | ||
| totalPages | string | Total page count for PDF rendering. |
Total page count for PDF rendering. | ||
JSON Example
{
"title": "string",
"subtitle": "string",
"secondarySubtitle": "string",
"postalAddress": "string",
"addressee": "string"
}
Used By Operations
Contained in Schemas
- RenderContentBlockRequest Request to render a content block's body HTML with template variables. Optionally wraps the rendered...
- RenderDocumentTemplateRequest Request to render a document template with dynamic data. The template will be processed with the pro...
- RenderTemplateStringRequest Request to render an arbitrary Liquid template string with the provided variables. Use for rendering...