
210 × 297 mm
Invoices
Product sales invoice
A bold A4 invoice for small goods businesses, easy to edit visually: a coloured letterhead, an invoice-number barcode, order and delivery details, striped product lines with SKUs, mixed VAT rates, a highlighted amount due and a received-by signature line. Embeds 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
- Currency formatting
- Date formatting
- Number formatting
- Barcode
- Header & footer
- Page numbers
- Repeating table headers
- Signature
- Columns
Filters such as format_currency and qrcode are described in the template language reference.
Variables
Derived from the sample data: 3 top-level fields, 66 paths in total. Send the same shape as data.
| Path | Type | Example |
|---|---|---|
| invoice | object | |
| invoice.number | string | "MF-2026-0917" |
| invoice.issue_date | date | "2026-09-17" |
| invoice.due_date | date | "2026-10-01" |
| invoice.currency | string | "EUR" |
| invoice.order_reference | string | "BSC-PO-0482" |
| invoice.payment_terms | string | "14 days net. Goods remain our property until p…" |
| invoice.delivery | object | |
| invoice.delivery.date | date | "2026-09-16" |
| invoice.delivery.party_name | string | "Brambleside Café, Quay Street" |
| invoice.delivery.address | object | |
| invoice.delivery.address.line1 | string | "14 Coopers Quay" |
| invoice.delivery.address.city | string | "Cork" |
| invoice.delivery.address.postcode | string | "T12 R7XK" |
| invoice.delivery.address.country | string | "IE" |
| invoice.seller | object | |
| invoice.seller.name | string | "Moonfield Coffee Roasters Ltd" |
| invoice.seller.trading_name | string | "Moonfield Coffee Roasters" |
| invoice.seller.vat_id | string | "IE1234567FA" |
| invoice.seller.electronic_address | object | |
| invoice.seller.electronic_address.id | string | "orders@moonfield.example.com" |
| invoice.seller.electronic_address.scheme | string | "EM" |
| invoice.seller.address | object | |
| invoice.seller.address.line1 | string | "Unit 5, Ardkeen Craft Yard" |
| invoice.seller.address.city | string | "Galway" |
| invoice.seller.address.postcode | string | "H91 X4F2" |
| invoice.seller.address.country | string | "IE" |
| invoice.seller.contact | object | |
| invoice.seller.contact.name | string | "Orla Brennan" |
| invoice.seller.contact.email | string | "orders@moonfield.example.com" |
| invoice.buyer | object | |
| invoice.buyer.name | string | "Brambleside Café Ltd" |
| invoice.buyer.vat_id | string | "IE7654321WA" |
| invoice.buyer.electronic_address | object | |
| invoice.buyer.electronic_address.id | string | "accounts@brambleside.example.com" |
| invoice.buyer.electronic_address.scheme | string | "EM" |
| invoice.buyer.address | object | |
| invoice.buyer.address.line1 | string | "9 Merchant's Row" |
| invoice.buyer.address.line2 | string | "2nd floor" |
| invoice.buyer.address.city | string | "Cork" |
| invoice.buyer.address.postcode | string | "T12 K3PD" |
| invoice.buyer.address.country | string | "IE" |
| invoice.buyer.contact | object | |
| invoice.buyer.contact.name | string | "Niamh Kearney" |
| invoice.payment | object | |
| invoice.payment.means_code | string | "58" |
| invoice.payment.remittance_information | string | "MF-2026-0917" |
| invoice.payment.credit_transfers | array<object> · 1 | |
| invoice.payment.credit_transfers[].account_id | string | "IE00EXMP99021512345678" |
| invoice.payment.credit_transfers[].account_name | string | "Moonfield Coffee Roasters Ltd" |
| invoice.payment.credit_transfers[].bic | string | "EXMPIE2D" |
| invoice.lines | array<object> · 7 | |
| invoice.lines[].quantity | string | "12" |
| invoice.lines[].unit | string | "H87" |
| invoice.lines[].net_amount | string | "268.80" |
| invoice.lines[].price | object | |
| invoice.lines[].price.net | string | "22.40" |
| invoice.lines[].tax | object | |
| invoice.lines[].tax.category | string | "Z" |
| invoice.lines[].tax.rate | string | "0" |
| invoice.lines[].item | object | |
| invoice.lines[].item.name | string | "House espresso blend, 1 kg" |
| invoice.lines[].item.description | string | "Whole bean · Brazil and Colombia · roasted 12 …" |
| invoice.lines[].item.seller_id | string | "MF-ESP-1000" |
| tagline | string | "Small-batch coffee, roasted in Galway" |
| bank_name | string | "Westerly Mutual Bank" |
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": "MF-2026-0917",
"issue_date": "2026-09-17",
"due_date": "2026-10-01",
"currency": "EUR",
"order_reference": "BSC-PO-0482",
"payment_terms": "14 days net. Goods remain our property until paid in full.",
"delivery": {
"date": "2026-09-16",
"party_name": "Brambleside Café, Quay Street",
"address": {
"line1": "14 Coopers Quay",
"city": "Cork",
"postcode": "T12 R7XK",
"country": "IE"
}
},
"seller": {
"name": "Moonfield Coffee Roasters Ltd",
"trading_name": "Moonfield Coffee Roasters",
"vat_id": "IE1234567FA",
"electronic_address": {
"id": "orders@moonfield.example.com",
"scheme": "EM"
},
"address": {
"line1": "Unit 5, Ardkeen Craft Yard",
"city": "Galway",
"postcode": "H91 X4F2",
"country": "IE"
},
"contact": {
"name": "Orla Brennan",
"email": "orders@moonfield.example.com"
}
},
"buyer": {
"name": "Brambleside Café Ltd",
"vat_id": "IE7654321WA",
"electronic_address": {
"id": "accounts@brambleside.example.com",
"scheme": "EM"
},
"address": {
"line1": "9 Merchant'\''s Row",
"line2": "2nd floor",
"city": "Cork",
"postcode": "T12 K3PD",
"country": "IE"
},
"contact": {
"name": "Niamh Kearney"
}
},
"payment": {
"means_code": "58",
"remittance_information": "MF-2026-0917",
"credit_transfers": [
{
"account_id": "IE00EXMP99021512345678",
"account_name": "Moonfield Coffee Roasters Ltd",
"bic": "EXMPIE2D"
}
]
},
"lines": [
{
"quantity": "12",
"unit": "H87",
"net_amount": "268.80",
"price": {
"net": "22.40"
},
"tax": {
"category": "Z",
"rate": "0"
},
"item": {
"name": "House espresso blend, 1 kg",
"description": "Whole bean · Brazil and Colombia · roasted 12 Sept",
"seller_id": "MF-ESP-1000"
}
},
{
"quantity": "4",
"unit": "H87",
"net_amount": "118.40",
"price": {
"net": "29.60"
},
"tax": {
"category": "Z",
"rate": "0"
},
"item": {
"name": "Ethiopia Guji single origin, 1 kg",
"description": "Whole bean · washed · light roast",
"seller_id": "MF-ETH-1000"
}
}
]
},
"tagline": "Small-batch coffee, roasted in Galway",
"bank_name": "Westerly Mutual Bank"
},
"output": {
"format": "pdf",
"filename": "invoice-product-sales.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": "MF-2026-0917",
"issue_date": "2026-09-17",
"due_date": "2026-10-01",
"currency": "EUR",
"order_reference": "BSC-PO-0482",
"payment_terms": "14 days net. Goods remain our property until paid in full.",
"delivery": {
"date": "2026-09-16",
"party_name": "Brambleside Café, Quay Street",
"address": {
"line1": "14 Coopers Quay",
"city": "Cork",
"postcode": "T12 R7XK",
"country": "IE"
}
},
"seller": {
"name": "Moonfield Coffee Roasters Ltd",
"trading_name": "Moonfield Coffee Roasters",
"vat_id": "IE1234567FA",
"electronic_address": {
"id": "orders@moonfield.example.com",
"scheme": "EM"
},
"address": {
"line1": "Unit 5, Ardkeen Craft Yard",
"city": "Galway",
"postcode": "H91 X4F2",
"country": "IE"
},
"contact": {
"name": "Orla Brennan",
"email": "orders@moonfield.example.com"
}
},
"buyer": {
"name": "Brambleside Café Ltd",
"vat_id": "IE7654321WA",
"electronic_address": {
"id": "accounts@brambleside.example.com",
"scheme": "EM"
},
"address": {
"line1": "9 Merchant's Row",
"line2": "2nd floor",
"city": "Cork",
"postcode": "T12 K3PD",
"country": "IE"
},
"contact": {
"name": "Niamh Kearney"
}
},
"payment": {
"means_code": "58",
"remittance_information": "MF-2026-0917",
"credit_transfers": [
{
"account_id": "IE00EXMP99021512345678",
"account_name": "Moonfield Coffee Roasters Ltd",
"bic": "EXMPIE2D"
}
]
},
"lines": [
{
"quantity": "12",
"unit": "H87",
"net_amount": "268.80",
"price": {
"net": "22.40"
},
"tax": {
"category": "Z",
"rate": "0"
},
"item": {
"name": "House espresso blend, 1 kg",
"description": "Whole bean · Brazil and Colombia · roasted 12 Sept",
"seller_id": "MF-ESP-1000"
}
},
{
"quantity": "4",
"unit": "H87",
"net_amount": "118.40",
"price": {
"net": "29.60"
},
"tax": {
"category": "Z",
"rate": "0"
},
"item": {
"name": "Ethiopia Guji single origin, 1 kg",
"description": "Whole bean · washed · light roast",
"seller_id": "MF-ETH-1000"
}
}
]
},
"tagline": "Small-batch coffee, roasted in Galway",
"bank_name": "Westerly Mutual Bank"
},
"output": {
"format": "pdf",
"filename": "invoice-product-sales.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": "MF-2026-0917",
"issue_date": "2026-09-17",
"due_date": "2026-10-01",
"currency": "EUR",
"order_reference": "BSC-PO-0482",
"payment_terms": "14 days net. Goods remain our property until paid in full.",
"delivery": {
"date": "2026-09-16",
"party_name": "Brambleside Café, Quay Street",
"address": {
"line1": "14 Coopers Quay",
"city": "Cork",
"postcode": "T12 R7XK",
"country": "IE",
},
},
"seller": {
"name": "Moonfield Coffee Roasters Ltd",
"trading_name": "Moonfield Coffee Roasters",
"vat_id": "IE1234567FA",
"electronic_address": {
"id": "orders@moonfield.example.com",
"scheme": "EM",
},
"address": {
"line1": "Unit 5, Ardkeen Craft Yard",
"city": "Galway",
"postcode": "H91 X4F2",
"country": "IE",
},
"contact": {
"name": "Orla Brennan",
"email": "orders@moonfield.example.com",
},
},
"buyer": {
"name": "Brambleside Café Ltd",
"vat_id": "IE7654321WA",
"electronic_address": {
"id": "accounts@brambleside.example.com",
"scheme": "EM",
},
"address": {
"line1": "9 Merchant's Row",
"line2": "2nd floor",
"city": "Cork",
"postcode": "T12 K3PD",
"country": "IE",
},
"contact": {
"name": "Niamh Kearney",
},
},
"payment": {
"means_code": "58",
"remittance_information": "MF-2026-0917",
"credit_transfers": [
{
"account_id": "IE00EXMP99021512345678",
"account_name": "Moonfield Coffee Roasters Ltd",
"bic": "EXMPIE2D",
},
],
},
"lines": [
{
"quantity": "12",
"unit": "H87",
"net_amount": "268.80",
"price": {
"net": "22.40",
},
"tax": {
"category": "Z",
"rate": "0",
},
"item": {
"name": "House espresso blend, 1 kg",
"description": "Whole bean · Brazil and Colombia · roasted 12 Sept",
"seller_id": "MF-ESP-1000",
},
},
{
"quantity": "4",
"unit": "H87",
"net_amount": "118.40",
"price": {
"net": "29.60",
},
"tax": {
"category": "Z",
"rate": "0",
},
"item": {
"name": "Ethiopia Guji single origin, 1 kg",
"description": "Whole bean · washed · light roast",
"seller_id": "MF-ETH-1000",
},
},
],
},
"tagline": "Small-batch coffee, roasted in Galway",
"bank_name": "Westerly Mutual Bank",
},
"output": {
"format": "pdf",
"filename": "invoice-product-sales.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.