Skip to content
Preview of the Product sales invoice template

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.

PDFA4 portraitLocale en-IEHTML + 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
  • 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.

PathTypeExample
invoiceobject
invoice.numberstring"MF-2026-0917"
invoice.issue_datedate"2026-09-17"
invoice.due_datedate"2026-10-01"
invoice.currencystring"EUR"
invoice.order_referencestring"BSC-PO-0482"
invoice.payment_termsstring"14 days net. Goods remain our property until p…"
invoice.deliveryobject
invoice.delivery.datedate"2026-09-16"
invoice.delivery.party_namestring"Brambleside Café, Quay Street"
invoice.delivery.addressobject
invoice.delivery.address.line1string"14 Coopers Quay"
invoice.delivery.address.citystring"Cork"
invoice.delivery.address.postcodestring"T12 R7XK"
invoice.delivery.address.countrystring"IE"
invoice.sellerobject
invoice.seller.namestring"Moonfield Coffee Roasters Ltd"
invoice.seller.trading_namestring"Moonfield Coffee Roasters"
invoice.seller.vat_idstring"IE1234567FA"
invoice.seller.electronic_addressobject
invoice.seller.electronic_address.idstring"orders@moonfield.example.com"
invoice.seller.electronic_address.schemestring"EM"
invoice.seller.addressobject
invoice.seller.address.line1string"Unit 5, Ardkeen Craft Yard"
invoice.seller.address.citystring"Galway"
invoice.seller.address.postcodestring"H91 X4F2"
invoice.seller.address.countrystring"IE"
invoice.seller.contactobject
invoice.seller.contact.namestring"Orla Brennan"
invoice.seller.contact.emailstring"orders@moonfield.example.com"
invoice.buyerobject
invoice.buyer.namestring"Brambleside Café Ltd"
invoice.buyer.vat_idstring"IE7654321WA"
invoice.buyer.electronic_addressobject
invoice.buyer.electronic_address.idstring"accounts@brambleside.example.com"
invoice.buyer.electronic_address.schemestring"EM"
invoice.buyer.addressobject
invoice.buyer.address.line1string"9 Merchant's Row"
invoice.buyer.address.line2string"2nd floor"
invoice.buyer.address.citystring"Cork"
invoice.buyer.address.postcodestring"T12 K3PD"
invoice.buyer.address.countrystring"IE"
invoice.buyer.contactobject
invoice.buyer.contact.namestring"Niamh Kearney"
invoice.paymentobject
invoice.payment.means_codestring"58"
invoice.payment.remittance_informationstring"MF-2026-0917"
invoice.payment.credit_transfersarray<object> · 1
invoice.payment.credit_transfers[].account_idstring"IE00EXMP99021512345678"
invoice.payment.credit_transfers[].account_namestring"Moonfield Coffee Roasters Ltd"
invoice.payment.credit_transfers[].bicstring"EXMPIE2D"
invoice.linesarray<object> · 7
invoice.lines[].quantitystring"12"
invoice.lines[].unitstring"H87"
invoice.lines[].net_amountstring"268.80"
invoice.lines[].priceobject
invoice.lines[].price.netstring"22.40"
invoice.lines[].taxobject
invoice.lines[].tax.categorystring"Z"
invoice.lines[].tax.ratestring"0"
invoice.lines[].itemobject
invoice.lines[].item.namestring"House espresso blend, 1 kg"
invoice.lines[].item.descriptionstring"Whole bean · Brazil and Colombia · roasted 12 …"
invoice.lines[].item.seller_idstring"MF-ESP-1000"
taglinestring"Small-batch coffee, roasted in Galway"
bank_namestring"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"
  }
}'