
210 × 297 mm
Invoices
Standard invoice
A clean A4 invoice for service businesses, rendered from the EN 16931 invoice model: itemised lines with units, VAT computed from the line totals, payment details with a pay-by-link QR code, page numbers, and the same data embedded as ZUGFeRD / Factur-X EN 16931 XML.
Opens Dynamic Document API with this template preloaded in a free workspace.
Generating this from your own data? See the Invoice PDF API.
Template language features
- Loops
- Conditionals
- Macros
- Filters
- Currency formatting
- Date formatting
- Number formatting
- QR code
- Repeating table headers
- Header & footer
- Page numbers
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 4 top-level fields, 63 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| invoice | object | |
| invoice.number | string | "BF-2026-0147" |
| invoice.issue_date | date | "2026-09-14" |
| invoice.due_date | date | "2026-10-14" |
| invoice.currency | string | "GBP" |
| invoice.buyer_reference | string | "ORR-MKT-2291" |
| invoice.order_reference | string | "PO-44812" |
| invoice.payment_terms | string | "30 days net" |
| invoice.delivery | object | |
| invoice.delivery.date | date | "2026-09-11" |
| invoice.seller | object | |
| invoice.seller.name | string | "Brambleworth & Finch Design Studio" |
| invoice.seller.vat_id | string | "GB123456789" |
| invoice.seller.electronic_address | object | |
| invoice.seller.electronic_address.id | string | "accounts@brambleworth.example.com" |
| invoice.seller.electronic_address.scheme | string | "EM" |
| invoice.seller.address | object | |
| invoice.seller.address.line1 | string | "Unit 4, Tannery Yard" |
| invoice.seller.address.line2 | string | "14 Wharf Lane" |
| invoice.seller.address.city | string | "Bristol" |
| invoice.seller.address.postcode | string | "BS1 6XY" |
| invoice.seller.address.country | string | "GB" |
| invoice.seller.contact | object | |
| invoice.seller.contact.name | string | "Accounts team" |
| invoice.seller.contact.phone | string | "+44 117 496 0321" |
| invoice.seller.contact.email | string | "accounts@brambleworth.example.com" |
| invoice.buyer | object | |
| invoice.buyer.name | string | "Orrery Instruments Ltd" |
| invoice.buyer.vat_id | string | "GB987654321" |
| invoice.buyer.electronic_address | object | |
| invoice.buyer.electronic_address.id | string | "invoices@orrery-instruments.example.com" |
| invoice.buyer.electronic_address.scheme | string | "EM" |
| invoice.buyer.address | object | |
| invoice.buyer.address.line1 | string | "Floor 2, Mercator House" |
| invoice.buyer.address.line2 | string | "27 Alderney Street" |
| invoice.buyer.address.city | string | "Leeds" |
| invoice.buyer.address.postcode | string | "LS2 8QR" |
| invoice.buyer.address.country | string | "GB" |
| invoice.buyer.contact | object | |
| invoice.buyer.contact.name | string | "Priya Castellane" |
| invoice.payment | object | |
| invoice.payment.means_code | string | "30" |
| invoice.payment.remittance_information | string | "BF-2026-0147" |
| invoice.payment.credit_transfers | array<object> · 1 | |
| invoice.payment.credit_transfers[].account_id | string | "GB52EXMP12345612345678" |
| invoice.payment.credit_transfers[].account_name | string | "Brambleworth & Finch Design Studio" |
| invoice.payment.credit_transfers[].bic | string | "EXMPGB2L" |
| invoice.lines | array<object> · 5 | |
| invoice.lines[].quantity | string | "2" |
| invoice.lines[].unit | string | "DAY" |
| invoice.lines[].price | object | |
| invoice.lines[].price.net | string | "850.00" |
| invoice.lines[].tax | object | |
| invoice.lines[].tax.category | string | "S" |
| invoice.lines[].tax.rate | string | "20" |
| invoice.lines[].item | object | |
| invoice.lines[].item.name | string | "Brand identity refresh — discovery workshops" |
| invoice.lines[].item.description | string | "Two half-day workshops and six stakeholder int…" |
| invoice.notes | array<object> · 2 | |
| invoice.notes[].text | string | "Thank you for working with us on the autumn ra…" |
| website | string | "brambleworth.example.com" |
| bank_name | string | "Westcombe Mutual Bank" |
| payment_link | string | "https://pay.example.com/i/BF-2026-0147" |
Render it with the API
After adding the template to your workspace, render it by ID and pass your data. Arrays are shortened here.
curl -X POST https://api-eu.dynamicdocumentapi.com/v1/renders \
-H "Authorization: Bearer $DYNAMIC_DOCUMENT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"invoice": {
"number": "BF-2026-0147",
"issue_date": "2026-09-14",
"due_date": "2026-10-14",
"currency": "GBP",
"buyer_reference": "ORR-MKT-2291",
"order_reference": "PO-44812",
"payment_terms": "30 days net",
"delivery": {
"date": "2026-09-11"
},
"seller": {
"name": "Brambleworth & Finch Design Studio",
"vat_id": "GB123456789",
"electronic_address": {
"id": "accounts@brambleworth.example.com",
"scheme": "EM"
},
"address": {
"line1": "Unit 4, Tannery Yard",
"line2": "14 Wharf Lane",
"city": "Bristol",
"postcode": "BS1 6XY",
"country": "GB"
},
"contact": {
"name": "Accounts team",
"phone": "+44 117 496 0321",
"email": "accounts@brambleworth.example.com"
}
},
"buyer": {
"name": "Orrery Instruments Ltd",
"vat_id": "GB987654321",
"electronic_address": {
"id": "invoices@orrery-instruments.example.com",
"scheme": "EM"
},
"address": {
"line1": "Floor 2, Mercator House",
"line2": "27 Alderney Street",
"city": "Leeds",
"postcode": "LS2 8QR",
"country": "GB"
},
"contact": {
"name": "Priya Castellane"
}
},
"payment": {
"means_code": "30",
"remittance_information": "BF-2026-0147",
"credit_transfers": [
{
"account_id": "GB52EXMP12345612345678",
"account_name": "Brambleworth & Finch Design Studio",
"bic": "EXMPGB2L"
}
]
},
"lines": [
{
"quantity": "2",
"unit": "DAY",
"price": {
"net": "850.00"
},
"tax": {
"category": "S",
"rate": "20"
},
"item": {
"name": "Brand identity refresh — discovery workshops",
"description": "Two half-day workshops and six stakeholder interviews"
}
},
{
"quantity": "1",
"unit": "LS",
"price": {
"net": "2400.00"
},
"tax": {
"category": "S",
"rate": "20"
},
"item": {
"name": "Logo system and usage guidelines",
"description": "Primary and secondary marks, 24-page guideline document"
}
}
],
"notes": [
{
"text": "Thank you for working with us on the autumn range."
},
{
"text": "Questions about this invoice? Reply to accounts@brambleworth.example.com."
}
]
},
"website": "brambleworth.example.com",
"bank_name": "Westcombe Mutual Bank",
"payment_link": "https://pay.example.com/i/BF-2026-0147"
},
"output": {
"format": "pdf",
"filename": "invoice-standard.pdf"
}
}'const response = await fetch("https://api-eu.dynamicdocumentapi.com/v1/renders", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DYNAMIC_DOCUMENT_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C"
},
"data": {
"invoice": {
"number": "BF-2026-0147",
"issue_date": "2026-09-14",
"due_date": "2026-10-14",
"currency": "GBP",
"buyer_reference": "ORR-MKT-2291",
"order_reference": "PO-44812",
"payment_terms": "30 days net",
"delivery": {
"date": "2026-09-11"
},
"seller": {
"name": "Brambleworth & Finch Design Studio",
"vat_id": "GB123456789",
"electronic_address": {
"id": "accounts@brambleworth.example.com",
"scheme": "EM"
},
"address": {
"line1": "Unit 4, Tannery Yard",
"line2": "14 Wharf Lane",
"city": "Bristol",
"postcode": "BS1 6XY",
"country": "GB"
},
"contact": {
"name": "Accounts team",
"phone": "+44 117 496 0321",
"email": "accounts@brambleworth.example.com"
}
},
"buyer": {
"name": "Orrery Instruments Ltd",
"vat_id": "GB987654321",
"electronic_address": {
"id": "invoices@orrery-instruments.example.com",
"scheme": "EM"
},
"address": {
"line1": "Floor 2, Mercator House",
"line2": "27 Alderney Street",
"city": "Leeds",
"postcode": "LS2 8QR",
"country": "GB"
},
"contact": {
"name": "Priya Castellane"
}
},
"payment": {
"means_code": "30",
"remittance_information": "BF-2026-0147",
"credit_transfers": [
{
"account_id": "GB52EXMP12345612345678",
"account_name": "Brambleworth & Finch Design Studio",
"bic": "EXMPGB2L"
}
]
},
"lines": [
{
"quantity": "2",
"unit": "DAY",
"price": {
"net": "850.00"
},
"tax": {
"category": "S",
"rate": "20"
},
"item": {
"name": "Brand identity refresh — discovery workshops",
"description": "Two half-day workshops and six stakeholder interviews"
}
},
{
"quantity": "1",
"unit": "LS",
"price": {
"net": "2400.00"
},
"tax": {
"category": "S",
"rate": "20"
},
"item": {
"name": "Logo system and usage guidelines",
"description": "Primary and secondary marks, 24-page guideline document"
}
}
],
"notes": [
{
"text": "Thank you for working with us on the autumn range."
},
{
"text": "Questions about this invoice? Reply to accounts@brambleworth.example.com."
}
]
},
"website": "brambleworth.example.com",
"bank_name": "Westcombe Mutual Bank",
"payment_link": "https://pay.example.com/i/BF-2026-0147"
},
"output": {
"format": "pdf",
"filename": "invoice-standard.pdf"
}
}),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const result = await response.json();
console.log(result);import os
import uuid
import requests
response = requests.post(
"https://api-eu.dynamicdocumentapi.com/v1/renders",
headers={
"Authorization": f"Bearer {os.environ['DYNAMIC_DOCUMENT_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"input": {
"type": "template",
"template_id": "tpl_01J9ZK3M7Q8V5W2X4Y6Z8A0B1C",
},
"data": {
"invoice": {
"number": "BF-2026-0147",
"issue_date": "2026-09-14",
"due_date": "2026-10-14",
"currency": "GBP",
"buyer_reference": "ORR-MKT-2291",
"order_reference": "PO-44812",
"payment_terms": "30 days net",
"delivery": {
"date": "2026-09-11",
},
"seller": {
"name": "Brambleworth & Finch Design Studio",
"vat_id": "GB123456789",
"electronic_address": {
"id": "accounts@brambleworth.example.com",
"scheme": "EM",
},
"address": {
"line1": "Unit 4, Tannery Yard",
"line2": "14 Wharf Lane",
"city": "Bristol",
"postcode": "BS1 6XY",
"country": "GB",
},
"contact": {
"name": "Accounts team",
"phone": "+44 117 496 0321",
"email": "accounts@brambleworth.example.com",
},
},
"buyer": {
"name": "Orrery Instruments Ltd",
"vat_id": "GB987654321",
"electronic_address": {
"id": "invoices@orrery-instruments.example.com",
"scheme": "EM",
},
"address": {
"line1": "Floor 2, Mercator House",
"line2": "27 Alderney Street",
"city": "Leeds",
"postcode": "LS2 8QR",
"country": "GB",
},
"contact": {
"name": "Priya Castellane",
},
},
"payment": {
"means_code": "30",
"remittance_information": "BF-2026-0147",
"credit_transfers": [
{
"account_id": "GB52EXMP12345612345678",
"account_name": "Brambleworth & Finch Design Studio",
"bic": "EXMPGB2L",
},
],
},
"lines": [
{
"quantity": "2",
"unit": "DAY",
"price": {
"net": "850.00",
},
"tax": {
"category": "S",
"rate": "20",
},
"item": {
"name": "Brand identity refresh — discovery workshops",
"description": "Two half-day workshops and six stakeholder interviews",
},
},
{
"quantity": "1",
"unit": "LS",
"price": {
"net": "2400.00",
},
"tax": {
"category": "S",
"rate": "20",
},
"item": {
"name": "Logo system and usage guidelines",
"description": "Primary and secondary marks, 24-page guideline document",
},
},
],
"notes": [
{
"text": "Thank you for working with us on the autumn range.",
},
{
"text": "Questions about this invoice? Reply to accounts@brambleworth.example.com.",
},
],
},
"website": "brambleworth.example.com",
"bank_name": "Westcombe Mutual Bank",
"payment_link": "https://pay.example.com/i/BF-2026-0147",
},
"output": {
"format": "pdf",
"filename": "invoice-standard.pdf",
},
},
timeout=90,
)
response.raise_for_status()
print(response.json())More invoices templates

Bold brand invoice
A4A confident, colourful A4 invoice for studios and product companies: a brand-coloured hero with the amount due, brand colours you set from data, itemised EN 16931 lines, VAT, a pay-by-link QR code and the same data embedded as ZUGFeRD / Factur-X EN 16931 XML.

E-Rechnung (ZUGFeRD / XRechnung)
A4A German A4 invoice rendered straight from the EN 16931 invoice model, so the same data produces the visible invoice and the embedded Factur-X / ZUGFeRD or XRechnung XML (output.einvoice.invoice_path = "invoice"). It prints the engine's computed amounts, lists VAT per rate, the Leitweg-ID and the bank details.

EU reverse-charge invoice
A4An A4 invoice for cross-border B2B services within the EU, rendered from the EN 16931 invoice model: both VAT IDs, the date of supply, VAT category AE (reverse charge) with its exemption reason and notice, the total in words, bank transfer details and the same data embedded as ZUGFeRD / Factur-X EN 16931 XML.