Skip to content
Preview of the Thermal POS receipt (80 mm) template

80 × 220 mm

Receipts

Thermal POS receipt (80 mm)

A narrow 80 mm point-of-sale receipt for a café and bookshop, printed in black only. Items carry modifiers, the GST included in the total is derived from the lines, and the transaction ID is encoded as a Code 128 barcode.

PDFCustom sizeLocale en-AUHTML + Jinja

Opens Dynamic Document API with this template preloaded in a free workspace.

Generating this from your own data? See the Receipt Generation API.

Template language features

  • Loops
  • Conditionals
  • Macros
  • Filters
  • Barcode
  • Currency formatting
  • Date formatting
  • Number formatting

Filters such as format_currency and qrcode are described in the template language reference.

Variables

Derived from the sample data: 6 top-level fields, 35 paths in total. Send the same shape as data.

PathTypeExample
storeobject
store.namestring"Wattle & Quill"
store.taglinestring"Books · Coffee · Paper goods"
store.addressstring"Shop 3, 41 Jacaranda Arcade ⏎ Paddington QLD 4…"
store.abnstring"12 345 678 901"
store.websitestring"wattleandquill.example.com"
saleobject
sale.transaction_idstring"WQ2-260917-0142"
sale.datetimedate"2026-09-17T08:42:00+10:00"
sale.timezonestring"Australia/Brisbane"
sale.registerstring"Till 2"
sale.served_bystring"Jasmin"
sale.order_typestring"Eat in · Table 6"
sale.currencystring"AUD"
sale.localestring"en-AU"
sale.gst_ratenumber0.1
itemsarray<object> · 7
items[].namestring"Flat white"
items[].variantstring"Regular"
items[].quantitynumber2
items[].unit_pricenumber5.2
items[].modifiersarray<object> · 1
items[].modifiers[].namestring"Oat milk"
items[].modifiers[].pricenumber0.8
items[].amountnumber12
paymentobject
payment.methodstring"EFTPOS"
payment.entry_modestring"Contactless"
payment.cardstring"Debit •••• 4821"
payment.auth_codestring"063914"
loyaltyobject
loyalty.programstring"Coffee card"
loyalty.stampsnumber7
loyalty.card_sizenumber10
footer_linesarray<string> · 2"Books can be exchanged within 14 days with thi…"

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": {
    "store": {
      "name": "Wattle & Quill",
      "tagline": "Books · Coffee · Paper goods",
      "address": "Shop 3, 41 Jacaranda Arcade\nPaddington QLD 4064",
      "abn": "12 345 678 901",
      "website": "wattleandquill.example.com"
    },
    "sale": {
      "transaction_id": "WQ2-260917-0142",
      "datetime": "2026-09-17T08:42:00+10:00",
      "timezone": "Australia/Brisbane",
      "register": "Till 2",
      "served_by": "Jasmin",
      "order_type": "Eat in · Table 6",
      "currency": "AUD",
      "locale": "en-AU",
      "gst_rate": 0.1
    },
    "items": [
      {
        "name": "Flat white",
        "variant": "Regular",
        "quantity": 2,
        "unit_price": 5.2,
        "modifiers": [
          {
            "name": "Oat milk",
            "price": 0.8
          }
        ],
        "amount": 12
      },
      {
        "name": "Chai latte",
        "variant": "Large",
        "quantity": 1,
        "unit_price": 6.2,
        "modifiers": [
          {
            "name": "Soy milk",
            "price": 0.8
          },
          {
            "name": "Extra hot",
            "price": 0
          }
        ],
        "amount": 7
      }
    ],
    "payment": {
      "method": "EFTPOS",
      "entry_mode": "Contactless",
      "card": "Debit •••• 4821",
      "auth_code": "063914"
    },
    "loyalty": {
      "program": "Coffee card",
      "stamps": 7,
      "card_size": 10
    },
    "footer_lines": [
      "Books can be exchanged within 14 days with this receipt.",
      "Poetry night: first Thursday of the month, 6.30 pm."
    ]
  },
  "output": {
    "format": "pdf",
    "filename": "receipt-thermal-80mm.pdf"
  }
}'