Skip to content
Preview of the Standard invoice template

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.

PDFA4 portraitLocale en-GBHTML + JinjaHeader & footer

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.

PathTypeExample
invoiceobject
invoice.numberstring"BF-2026-0147"
invoice.issue_datedate"2026-09-14"
invoice.due_datedate"2026-10-14"
invoice.currencystring"GBP"
invoice.buyer_referencestring"ORR-MKT-2291"
invoice.order_referencestring"PO-44812"
invoice.payment_termsstring"30 days net"
invoice.deliveryobject
invoice.delivery.datedate"2026-09-11"
invoice.sellerobject
invoice.seller.namestring"Brambleworth & Finch Design Studio"
invoice.seller.vat_idstring"GB123456789"
invoice.seller.electronic_addressobject
invoice.seller.electronic_address.idstring"accounts@brambleworth.example.com"
invoice.seller.electronic_address.schemestring"EM"
invoice.seller.addressobject
invoice.seller.address.line1string"Unit 4, Tannery Yard"
invoice.seller.address.line2string"14 Wharf Lane"
invoice.seller.address.citystring"Bristol"
invoice.seller.address.postcodestring"BS1 6XY"
invoice.seller.address.countrystring"GB"
invoice.seller.contactobject
invoice.seller.contact.namestring"Accounts team"
invoice.seller.contact.phonestring"+44 117 496 0321"
invoice.seller.contact.emailstring"accounts@brambleworth.example.com"
invoice.buyerobject
invoice.buyer.namestring"Orrery Instruments Ltd"
invoice.buyer.vat_idstring"GB987654321"
invoice.buyer.electronic_addressobject
invoice.buyer.electronic_address.idstring"invoices@orrery-instruments.example.com"
invoice.buyer.electronic_address.schemestring"EM"
invoice.buyer.addressobject
invoice.buyer.address.line1string"Floor 2, Mercator House"
invoice.buyer.address.line2string"27 Alderney Street"
invoice.buyer.address.citystring"Leeds"
invoice.buyer.address.postcodestring"LS2 8QR"
invoice.buyer.address.countrystring"GB"
invoice.buyer.contactobject
invoice.buyer.contact.namestring"Priya Castellane"
invoice.paymentobject
invoice.payment.means_codestring"30"
invoice.payment.remittance_informationstring"BF-2026-0147"
invoice.payment.credit_transfersarray<object> · 1
invoice.payment.credit_transfers[].account_idstring"GB52EXMP12345612345678"
invoice.payment.credit_transfers[].account_namestring"Brambleworth & Finch Design Studio"
invoice.payment.credit_transfers[].bicstring"EXMPGB2L"
invoice.linesarray<object> · 5
invoice.lines[].quantitystring"2"
invoice.lines[].unitstring"DAY"
invoice.lines[].priceobject
invoice.lines[].price.netstring"850.00"
invoice.lines[].taxobject
invoice.lines[].tax.categorystring"S"
invoice.lines[].tax.ratestring"20"
invoice.lines[].itemobject
invoice.lines[].item.namestring"Brand identity refresh — discovery workshops"
invoice.lines[].item.descriptionstring"Two half-day workshops and six stakeholder int…"
invoice.notesarray<object> · 2
invoice.notes[].textstring"Thank you for working with us on the autumn ra…"
websitestring"brambleworth.example.com"
bank_namestring"Westcombe Mutual Bank"
payment_linkstring"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"
  }
}'