dubbl
Settings

Document Templates

Customize the appearance of invoices, quotes, and other documents.

Document templates control how your invoices, quotes, and other PDF documents look. Navigate to Settings > Templates.

Creating a Template

  1. Click New Template
  2. Enter a name and select the document type
  3. Configure the settings below
  4. Click Create

You can set one template as the default per document type. The default template is automatically applied when generating PDFs.

Template Settings

FieldDescription
NameA label for this template (e.g. "Standard Invoice")
TypeInvoice, Quote, Receipt, Payslip, or Purchase Order
Accent ColorColor used for the top accent bar on PDFs
Logo URLURL to your logo image (shown in HTML preview)
Show Tax BreakdownWhether to show tax amounts in the totals section
Show Payment TermsWhether to show "due by" date below the totals
Set as DefaultUse this template automatically for the selected document type

Content Fields

These fields let you add custom content to your documents. All support template variables.

Bank Details

Add your banking information so customers know where to send payment. This appears as a dedicated section on the invoice.

IBAN: DE89 3704 0044 0532 0130 00
SWIFT/BIC: COBADEFFXXX
Bank: Commerzbank

Payment Instructions

Freeform instructions for how to pay. Shown as a separate section below bank details.

Please reference invoice {{invoiceNumber}} when making payment.
Wire transfers only, no checks.

Notes

Default notes appended to every document using this template. Individual invoices can also have their own notes - template notes take priority when both exist.

Thank you for your business. Late payments are subject to a 1.5% monthly fee.

Header HTML

Custom HTML rendered at the very top of the document, before the invoice title. Useful for additional branding or legal text.

Custom HTML rendered at the bottom of the document, after all content sections. Useful for terms and conditions or legal disclaimers.

Template Variables

Use these placeholders in any content field. They are replaced with actual values when the document is generated.

VariableDescription
{{orgName}}Your organization name
{{orgAddress}}Organization address
{{orgTaxId}}Organization tax ID / VAT number
{{orgPhone}}Organization phone number
{{orgEmail}}Organization email
{{orgRegistrationNumber}}Business registration number
{{invoiceNumber}}Invoice number (e.g. INV-00001)
{{issueDate}}Date of issue
{{dueDate}}Due date
{{contactName}}Customer name
{{contactEmail}}Customer email
{{contactAddress}}Customer billing address
{{contactTaxNumber}}Customer tax / VAT number
{{reference}}Invoice reference / PO number
{{subtotal}}Formatted subtotal
{{taxTotal}}Formatted tax amount
{{total}}Formatted total
{{currency}}Currency code (e.g. USD, EUR)

Previewing

Click the Preview option from the template's menu to see how a sample invoice looks with your settings. You can also Download Sample PDF from the preview dialog to check the actual PDF output.

PDF Layout

The generated PDF follows a clean, minimal design:

  1. Accent bar - 4px colored bar at the top
  2. Invoice title - "Invoice" (or "Tax Invoice" for AU/NZ)
  3. Metadata - Invoice number, date of issue, date due
  4. Seller / Bill to - Two-column layout with organization and customer details
  5. Due summary - "$X due YYYY-MM-DD" in large text
  6. Line items - Table with description, qty, unit price, amount
  7. Totals - Right-aligned: subtotal, tax, total, amount paid, amount due
  8. Additional content - Bank details, payment instructions, notes
  9. Footer - Invoice number and amount due, with dubbl branding

Country-Specific Behavior

The invoice automatically adapts based on your organization's country setting.

Tax ID Labels

CountryLabel Used
EU / UKVAT
AustraliaABN
New ZealandGST
CanadaGST/HST
OtherTax ID

Invoice Title

For Australian and New Zealand organizations with a tax ID set, the title changes from "Invoice" to "Tax Invoice".

Compliance Warnings

When viewing an invoice, you may see compliance warnings based on your organization's country. These flag missing information that may be legally required.

CountryRequired FieldsSeverity
EU countriesOrganization address, VAT numberError
UKOrganization address, VAT numberError
AustraliaABNWarning
New ZealandGST numberWarning
CanadaGST/HST numberWarning
OtherOrganization address, Tax IDWarning

For EU B2B invoices (when the contact has a tax number), the contact's address is also recommended.

Compliance warnings are informational only and do not block invoice creation. You can check compliance via:

  • The invoice detail page (warning banner at top)
  • API: GET /api/v1/invoices/{id}/compliance
  • MCP: check_invoice_compliance tool

API

EndpointMethodDescription
/api/v1/document-templatesGETList templates
/api/v1/document-templatesPOSTCreate template
/api/v1/document-templates/{id}PATCHUpdate template
/api/v1/document-templates/{id}DELETEDelete template
/api/v1/document-templates/{id}/previewPOSTPreview as HTML
/api/v1/document-templates/{id}/preview?format=pdfPOSTDownload sample PDF

On this page