
210 × 297 mm
Invoices
Hourly consulting invoice with timesheet
An A4 invoice for European consultancies that bill by the hour: EN 16931 invoice lines per project and role with budget used per project, a timesheet grouped by project with subtotals, 21% VAT, and the invoice 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
- Grouping
- Currency formatting
- Date formatting
- Number formatting
- 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: 5 top-level fields, 84 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| invoice | object | |
| invoice.number | string | "LV-26-0311" |
| invoice.issue_date | date | "2026-09-15" |
| invoice.due_date | date | "2026-09-30" |
| invoice.currency | string | "EUR" |
| invoice.order_reference | string | "SWO-PO-7719" |
| invoice.contract_reference | string | "SOW-2026-03" |
| invoice.payment_terms | string | "Net 15 days" |
| invoice.invoice_period | object | |
| invoice.invoice_period.start | date | "2026-09-01" |
| invoice.invoice_period.end | date | "2026-09-14" |
| invoice.delivery | object | |
| invoice.delivery.date | date | "2026-09-14" |
| invoice.seller | object | |
| invoice.seller.name | string | "Larkspur & Vane Consulting B.V." |
| invoice.seller.vat_id | string | "NL123456789B01" |
| invoice.seller.legal_registration | object | |
| invoice.seller.legal_registration.id | string | "12345678" |
| invoice.seller.legal_registration.scheme | string | "0106" |
| invoice.seller.electronic_address | object | |
| invoice.seller.electronic_address.id | string | "billing@larkspurvane.example.com" |
| invoice.seller.electronic_address.scheme | string | "EM" |
| invoice.seller.address | object | |
| invoice.seller.address.line1 | string | "Suite 4.02, Aldermeerkade 118" |
| invoice.seller.address.city | string | "Rotterdam" |
| invoice.seller.address.postcode | string | "3011 AB" |
| invoice.seller.address.country | string | "NL" |
| invoice.seller.contact | object | |
| invoice.seller.contact.name | string | "Billing" |
| invoice.seller.contact.email | string | "billing@larkspurvane.example.com" |
| invoice.buyer | object | |
| invoice.buyer.name | string | "Sablewood Outfitters B.V." |
| invoice.buyer.vat_id | string | "NL987654321B01" |
| invoice.buyer.electronic_address | object | |
| invoice.buyer.electronic_address.id | string | "ap@sablewood.example.com" |
| invoice.buyer.electronic_address.scheme | string | "EM" |
| invoice.buyer.address | object | |
| invoice.buyer.address.line1 | string | "Graniethaven 23" |
| invoice.buyer.address.city | string | "Tilburg" |
| invoice.buyer.address.postcode | string | "5048 AB" |
| invoice.buyer.address.country | string | "NL" |
| invoice.buyer.contact | object | |
| invoice.buyer.contact.name | string | "Dana Verhoeven, Head of Operations" |
| invoice.payment | object | |
| invoice.payment.means_code | string | "58" |
| invoice.payment.remittance_information | string | "LV-26-0311" |
| invoice.payment.credit_transfers | array<object> · 1 | |
| invoice.payment.credit_transfers[].account_id | string | "NL74EXMP0123456789" |
| invoice.payment.credit_transfers[].account_name | string | "Larkspur & Vane Consulting B.V." |
| invoice.payment.credit_transfers[].bic | string | "EXMPNL2A" |
| invoice.lines | array<object> · 8 | |
| invoice.lines[].quantity | string | "4.5" |
| invoice.lines[].unit | string | "HUR" |
| invoice.lines[].price | object | |
| invoice.lines[].price.net | string | "210.00" |
| invoice.lines[].tax | object | |
| invoice.lines[].tax.category | string | "S" |
| invoice.lines[].tax.rate | string | "21" |
| invoice.lines[].item | object | |
| invoice.lines[].item.name | string | "Demand forecasting model – Principal" |
| invoice.lines[].item.attributes | array<object> · 2 | |
| invoice.lines[].item.attributes[].name | string | "Project" |
| invoice.lines[].item.attributes[].value | string | "DFM" |
| invoice.notes | array<object> · 2 | |
| invoice.notes[].text | string | "Time is recorded in 15-minute increments and b…" |
| tagline | string | "Operations and analytics advisory" |
| website | string | "larkspurvane.example.com" |
| bank_name | string | "Kademeer Bank" |
| timesheet | object | |
| timesheet.engagement | string | "Supply chain analytics programme" |
| timesheet.projects | array<object> · 3 | |
| timesheet.projects[].code | string | "DFM" |
| timesheet.projects[].name | string | "Demand forecasting model" |
| timesheet.projects[].budget_hours | number | 120 |
| timesheet.projects[].prior_hours | number | 64.5 |
| timesheet.entries | array<object> · 13 | |
| timesheet.entries[].date | date | "2026-09-01" |
| timesheet.entries[].project | string | "DFM" |
| timesheet.entries[].consultant | string | "Maren Okafor" |
| timesheet.entries[].role | string | "Principal" |
| timesheet.entries[].description | string | "Kick-off workshop with merchandising and finan…" |
| timesheet.entries[].hours | number | 3 |
| timesheet.entries[].rate | number | 210 |
| timesheet.entries[].amount | number | 630 |
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": "LV-26-0311",
"issue_date": "2026-09-15",
"due_date": "2026-09-30",
"currency": "EUR",
"order_reference": "SWO-PO-7719",
"contract_reference": "SOW-2026-03",
"payment_terms": "Net 15 days",
"invoice_period": {
"start": "2026-09-01",
"end": "2026-09-14"
},
"delivery": {
"date": "2026-09-14"
},
"seller": {
"name": "Larkspur & Vane Consulting B.V.",
"vat_id": "NL123456789B01",
"legal_registration": {
"id": "12345678",
"scheme": "0106"
},
"electronic_address": {
"id": "billing@larkspurvane.example.com",
"scheme": "EM"
},
"address": {
"line1": "Suite 4.02, Aldermeerkade 118",
"city": "Rotterdam",
"postcode": "3011 AB",
"country": "NL"
},
"contact": {
"name": "Billing",
"email": "billing@larkspurvane.example.com"
}
},
"buyer": {
"name": "Sablewood Outfitters B.V.",
"vat_id": "NL987654321B01",
"electronic_address": {
"id": "ap@sablewood.example.com",
"scheme": "EM"
},
"address": {
"line1": "Graniethaven 23",
"city": "Tilburg",
"postcode": "5048 AB",
"country": "NL"
},
"contact": {
"name": "Dana Verhoeven, Head of Operations"
}
},
"payment": {
"means_code": "58",
"remittance_information": "LV-26-0311",
"credit_transfers": [
{
"account_id": "NL74EXMP0123456789",
"account_name": "Larkspur & Vane Consulting B.V.",
"bic": "EXMPNL2A"
}
]
},
"lines": [
{
"quantity": "4.5",
"unit": "HUR",
"price": {
"net": "210.00"
},
"tax": {
"category": "S",
"rate": "21"
},
"item": {
"name": "Demand forecasting model – Principal",
"attributes": [
{
"name": "Project",
"value": "DFM"
},
{
"name": "Role",
"value": "Principal"
}
]
}
},
{
"quantity": "10",
"unit": "HUR",
"price": {
"net": "165.00"
},
"tax": {
"category": "S",
"rate": "21"
},
"item": {
"name": "Demand forecasting model – Senior consultant",
"attributes": [
{
"name": "Project",
"value": "DFM"
},
{
"name": "Role",
"value": "Senior consultant"
}
]
}
}
],
"notes": [
{
"text": "Time is recorded in 15-minute increments and billed at the rates agreed in SOW-2026-03. Travel to the Tilburg distribution centre was pre-approved and will be invoiced separately at cost."
},
{
"text": "Questions about an entry? Email billing@larkspurvane.example.com."
}
]
},
"tagline": "Operations and analytics advisory",
"website": "larkspurvane.example.com",
"bank_name": "Kademeer Bank",
"timesheet": {
"engagement": "Supply chain analytics programme",
"projects": [
{
"code": "DFM",
"name": "Demand forecasting model",
"budget_hours": 120,
"prior_hours": 64.5
},
{
"code": "POS",
"name": "Point-of-sale data feed",
"budget_hours": 60,
"prior_hours": 22.25
}
],
"entries": [
{
"date": "2026-09-01",
"project": "DFM",
"consultant": "Maren Okafor",
"role": "Principal",
"description": "Kick-off workshop with merchandising and finance; agree forecast horizons and accuracy targets",
"hours": 3,
"rate": 210,
"amount": 630
},
{
"date": "2026-09-02",
"project": "DFM",
"consultant": "Ines Castellano",
"role": "Data analyst",
"description": "Profile three years of weekly sales history; flag gaps, outliers and stock-outs",
"hours": 6.5,
"rate": 120,
"amount": 780
}
]
}
},
"output": {
"format": "pdf",
"filename": "invoice-hourly-timesheet.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": "LV-26-0311",
"issue_date": "2026-09-15",
"due_date": "2026-09-30",
"currency": "EUR",
"order_reference": "SWO-PO-7719",
"contract_reference": "SOW-2026-03",
"payment_terms": "Net 15 days",
"invoice_period": {
"start": "2026-09-01",
"end": "2026-09-14"
},
"delivery": {
"date": "2026-09-14"
},
"seller": {
"name": "Larkspur & Vane Consulting B.V.",
"vat_id": "NL123456789B01",
"legal_registration": {
"id": "12345678",
"scheme": "0106"
},
"electronic_address": {
"id": "billing@larkspurvane.example.com",
"scheme": "EM"
},
"address": {
"line1": "Suite 4.02, Aldermeerkade 118",
"city": "Rotterdam",
"postcode": "3011 AB",
"country": "NL"
},
"contact": {
"name": "Billing",
"email": "billing@larkspurvane.example.com"
}
},
"buyer": {
"name": "Sablewood Outfitters B.V.",
"vat_id": "NL987654321B01",
"electronic_address": {
"id": "ap@sablewood.example.com",
"scheme": "EM"
},
"address": {
"line1": "Graniethaven 23",
"city": "Tilburg",
"postcode": "5048 AB",
"country": "NL"
},
"contact": {
"name": "Dana Verhoeven, Head of Operations"
}
},
"payment": {
"means_code": "58",
"remittance_information": "LV-26-0311",
"credit_transfers": [
{
"account_id": "NL74EXMP0123456789",
"account_name": "Larkspur & Vane Consulting B.V.",
"bic": "EXMPNL2A"
}
]
},
"lines": [
{
"quantity": "4.5",
"unit": "HUR",
"price": {
"net": "210.00"
},
"tax": {
"category": "S",
"rate": "21"
},
"item": {
"name": "Demand forecasting model – Principal",
"attributes": [
{
"name": "Project",
"value": "DFM"
},
{
"name": "Role",
"value": "Principal"
}
]
}
},
{
"quantity": "10",
"unit": "HUR",
"price": {
"net": "165.00"
},
"tax": {
"category": "S",
"rate": "21"
},
"item": {
"name": "Demand forecasting model – Senior consultant",
"attributes": [
{
"name": "Project",
"value": "DFM"
},
{
"name": "Role",
"value": "Senior consultant"
}
]
}
}
],
"notes": [
{
"text": "Time is recorded in 15-minute increments and billed at the rates agreed in SOW-2026-03. Travel to the Tilburg distribution centre was pre-approved and will be invoiced separately at cost."
},
{
"text": "Questions about an entry? Email billing@larkspurvane.example.com."
}
]
},
"tagline": "Operations and analytics advisory",
"website": "larkspurvane.example.com",
"bank_name": "Kademeer Bank",
"timesheet": {
"engagement": "Supply chain analytics programme",
"projects": [
{
"code": "DFM",
"name": "Demand forecasting model",
"budget_hours": 120,
"prior_hours": 64.5
},
{
"code": "POS",
"name": "Point-of-sale data feed",
"budget_hours": 60,
"prior_hours": 22.25
}
],
"entries": [
{
"date": "2026-09-01",
"project": "DFM",
"consultant": "Maren Okafor",
"role": "Principal",
"description": "Kick-off workshop with merchandising and finance; agree forecast horizons and accuracy targets",
"hours": 3,
"rate": 210,
"amount": 630
},
{
"date": "2026-09-02",
"project": "DFM",
"consultant": "Ines Castellano",
"role": "Data analyst",
"description": "Profile three years of weekly sales history; flag gaps, outliers and stock-outs",
"hours": 6.5,
"rate": 120,
"amount": 780
}
]
}
},
"output": {
"format": "pdf",
"filename": "invoice-hourly-timesheet.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": "LV-26-0311",
"issue_date": "2026-09-15",
"due_date": "2026-09-30",
"currency": "EUR",
"order_reference": "SWO-PO-7719",
"contract_reference": "SOW-2026-03",
"payment_terms": "Net 15 days",
"invoice_period": {
"start": "2026-09-01",
"end": "2026-09-14",
},
"delivery": {
"date": "2026-09-14",
},
"seller": {
"name": "Larkspur & Vane Consulting B.V.",
"vat_id": "NL123456789B01",
"legal_registration": {
"id": "12345678",
"scheme": "0106",
},
"electronic_address": {
"id": "billing@larkspurvane.example.com",
"scheme": "EM",
},
"address": {
"line1": "Suite 4.02, Aldermeerkade 118",
"city": "Rotterdam",
"postcode": "3011 AB",
"country": "NL",
},
"contact": {
"name": "Billing",
"email": "billing@larkspurvane.example.com",
},
},
"buyer": {
"name": "Sablewood Outfitters B.V.",
"vat_id": "NL987654321B01",
"electronic_address": {
"id": "ap@sablewood.example.com",
"scheme": "EM",
},
"address": {
"line1": "Graniethaven 23",
"city": "Tilburg",
"postcode": "5048 AB",
"country": "NL",
},
"contact": {
"name": "Dana Verhoeven, Head of Operations",
},
},
"payment": {
"means_code": "58",
"remittance_information": "LV-26-0311",
"credit_transfers": [
{
"account_id": "NL74EXMP0123456789",
"account_name": "Larkspur & Vane Consulting B.V.",
"bic": "EXMPNL2A",
},
],
},
"lines": [
{
"quantity": "4.5",
"unit": "HUR",
"price": {
"net": "210.00",
},
"tax": {
"category": "S",
"rate": "21",
},
"item": {
"name": "Demand forecasting model – Principal",
"attributes": [
{
"name": "Project",
"value": "DFM",
},
{
"name": "Role",
"value": "Principal",
},
],
},
},
{
"quantity": "10",
"unit": "HUR",
"price": {
"net": "165.00",
},
"tax": {
"category": "S",
"rate": "21",
},
"item": {
"name": "Demand forecasting model – Senior consultant",
"attributes": [
{
"name": "Project",
"value": "DFM",
},
{
"name": "Role",
"value": "Senior consultant",
},
],
},
},
],
"notes": [
{
"text": "Time is recorded in 15-minute increments and billed at the rates agreed in SOW-2026-03. Travel to the Tilburg distribution centre was pre-approved and will be invoiced separately at cost.",
},
{
"text": "Questions about an entry? Email billing@larkspurvane.example.com.",
},
],
},
"tagline": "Operations and analytics advisory",
"website": "larkspurvane.example.com",
"bank_name": "Kademeer Bank",
"timesheet": {
"engagement": "Supply chain analytics programme",
"projects": [
{
"code": "DFM",
"name": "Demand forecasting model",
"budget_hours": 120,
"prior_hours": 64.5,
},
{
"code": "POS",
"name": "Point-of-sale data feed",
"budget_hours": 60,
"prior_hours": 22.25,
},
],
"entries": [
{
"date": "2026-09-01",
"project": "DFM",
"consultant": "Maren Okafor",
"role": "Principal",
"description": "Kick-off workshop with merchandising and finance; agree forecast horizons and accuracy targets",
"hours": 3,
"rate": 210,
"amount": 630,
},
{
"date": "2026-09-02",
"project": "DFM",
"consultant": "Ines Castellano",
"role": "Data analyst",
"description": "Profile three years of weekly sales history; flag gaps, outliers and stock-outs",
"hours": 6.5,
"rate": 120,
"amount": 780,
},
],
},
},
"output": {
"format": "pdf",
"filename": "invoice-hourly-timesheet.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.