Skip to content
Preview of the Hourly consulting invoice with timesheet template

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.

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
  • 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.

PathTypeExample
invoiceobject
invoice.numberstring"LV-26-0311"
invoice.issue_datedate"2026-09-15"
invoice.due_datedate"2026-09-30"
invoice.currencystring"EUR"
invoice.order_referencestring"SWO-PO-7719"
invoice.contract_referencestring"SOW-2026-03"
invoice.payment_termsstring"Net 15 days"
invoice.invoice_periodobject
invoice.invoice_period.startdate"2026-09-01"
invoice.invoice_period.enddate"2026-09-14"
invoice.deliveryobject
invoice.delivery.datedate"2026-09-14"
invoice.sellerobject
invoice.seller.namestring"Larkspur & Vane Consulting B.V."
invoice.seller.vat_idstring"NL123456789B01"
invoice.seller.legal_registrationobject
invoice.seller.legal_registration.idstring"12345678"
invoice.seller.legal_registration.schemestring"0106"
invoice.seller.electronic_addressobject
invoice.seller.electronic_address.idstring"billing@larkspurvane.example.com"
invoice.seller.electronic_address.schemestring"EM"
invoice.seller.addressobject
invoice.seller.address.line1string"Suite 4.02, Aldermeerkade 118"
invoice.seller.address.citystring"Rotterdam"
invoice.seller.address.postcodestring"3011 AB"
invoice.seller.address.countrystring"NL"
invoice.seller.contactobject
invoice.seller.contact.namestring"Billing"
invoice.seller.contact.emailstring"billing@larkspurvane.example.com"
invoice.buyerobject
invoice.buyer.namestring"Sablewood Outfitters B.V."
invoice.buyer.vat_idstring"NL987654321B01"
invoice.buyer.electronic_addressobject
invoice.buyer.electronic_address.idstring"ap@sablewood.example.com"
invoice.buyer.electronic_address.schemestring"EM"
invoice.buyer.addressobject
invoice.buyer.address.line1string"Graniethaven 23"
invoice.buyer.address.citystring"Tilburg"
invoice.buyer.address.postcodestring"5048 AB"
invoice.buyer.address.countrystring"NL"
invoice.buyer.contactobject
invoice.buyer.contact.namestring"Dana Verhoeven, Head of Operations"
invoice.paymentobject
invoice.payment.means_codestring"58"
invoice.payment.remittance_informationstring"LV-26-0311"
invoice.payment.credit_transfersarray<object> · 1
invoice.payment.credit_transfers[].account_idstring"NL74EXMP0123456789"
invoice.payment.credit_transfers[].account_namestring"Larkspur & Vane Consulting B.V."
invoice.payment.credit_transfers[].bicstring"EXMPNL2A"
invoice.linesarray<object> · 8
invoice.lines[].quantitystring"4.5"
invoice.lines[].unitstring"HUR"
invoice.lines[].priceobject
invoice.lines[].price.netstring"210.00"
invoice.lines[].taxobject
invoice.lines[].tax.categorystring"S"
invoice.lines[].tax.ratestring"21"
invoice.lines[].itemobject
invoice.lines[].item.namestring"Demand forecasting model – Principal"
invoice.lines[].item.attributesarray<object> · 2
invoice.lines[].item.attributes[].namestring"Project"
invoice.lines[].item.attributes[].valuestring"DFM"
invoice.notesarray<object> · 2
invoice.notes[].textstring"Time is recorded in 15-minute increments and b…"
taglinestring"Operations and analytics advisory"
websitestring"larkspurvane.example.com"
bank_namestring"Kademeer Bank"
timesheetobject
timesheet.engagementstring"Supply chain analytics programme"
timesheet.projectsarray<object> · 3
timesheet.projects[].codestring"DFM"
timesheet.projects[].namestring"Demand forecasting model"
timesheet.projects[].budget_hoursnumber120
timesheet.projects[].prior_hoursnumber64.5
timesheet.entriesarray<object> · 13
timesheet.entries[].datedate"2026-09-01"
timesheet.entries[].projectstring"DFM"
timesheet.entries[].consultantstring"Maren Okafor"
timesheet.entries[].rolestring"Principal"
timesheet.entries[].descriptionstring"Kick-off workshop with merchandising and finan…"
timesheet.entries[].hoursnumber3
timesheet.entries[].ratenumber210
timesheet.entries[].amountnumber630

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"
  }
}'