Cafe Receipt Template
Print an 80 mm receipt with order details, quantities, tax, tip, and payment method. A compact thermal-paper layout for cafes, restaurants, and point-of-sale exports.
- Paper format
- 80mm × 142mm
- Included
- HTML layout + sample JSON
- Customization
- Content, colors, typography
- Rendering
- Handlebars + Chromium
Preview the sample document, then make it yours. Change the layout in your editor or clone it into your RelayPDF dashboard to create an editable draft.
Open full-size previewFrom a sample to
your next document.
This layout uses standard HTML and CSS with Handlebars fields. The preview is rendered from the downloadable source and sample data shown below.
Use the sample as a starting point. Your application supplies dates, labels, and calculated amounts; the template handles their presentation.
Personalize the design
Update the organization name, typography, and CSS accent colors. Replace the sample wording with content appropriate to your business.
Connect your data
Keep the field structure in the sample JSON and replace its values. Repeating arrays create the document’s rows or sections.
Preview, publish, generate
Test with your longest content. Publish the draft, then generate PDFs using its templateId and fresh templateData.
What you can customize
| Field | Purpose |
|---|---|
number | Your document reference; use a stable, unique identifier. |
placedOn | Date supplied by your application; ISO dates work with the template’s date formatter. |
placedAt | Editable document content. Replace the sample value with your own data. |
storeName | Editable document content. Replace the sample value with your own data. |
company | Your business identity and contact details. |
server | Editable document content. Replace the sample value with your own data. |
table | Editable document content. Replace the sample value with your own data. |
currency | ISO currency code used by the money formatter, such as USD. |
items | Repeatable line items; each object becomes a row. |
subtotal | Pre-tax amount calculated by your application. |
tax | Tax amount supplied by your billing system. |
tip | Editable document content. Replace the sample value with your own data. |
total | Final amount calculated by your application, including applicable adjustments. |
tender | Editable document content. Replace the sample value with your own data. |
notes | Additional context or instructions shown with the document. |
Start with real sample data
Download sample JSON ↓Inspect sample JSON
{
"number": "1842",
"placedOn": "2026-08-21",
"placedAt": "8:14 AM",
"storeName": "Hearth & Cup",
"company": {
"name": "Hearth & Cup",
"address": "11 Court Street, Hudson, NY 12534",
"phone": "+1 518 555 0177",
"taxId": "83-1102944"
},
"server": "Maya",
"table": "4",
"currency": "USD",
"items": [
{
"name": "Oat latte",
"quantity": 2,
"price": 5.5,
"amount": 11
},
{
"name": "Cardamom bun",
"quantity": 1,
"price": 4.25,
"amount": 4.25
},
{
"name": "Drip, bottomless",
"quantity": 1,
"price": 3.5,
"amount": 3.5
}
],
"subtotal": 18.75,
"tax": 1.5,
"tip": 3,
"total": 23.25,
"tender": "Visa 4419",
"notes": "Thank you. Afternoon pour starts at two."
}Clone through the API
curl https://api.relaypdf.com/v1/templates \
-H "Authorization: Bearer $RELAYPDF_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Cafe Receipt Template","galleryId":"cafe-receipt"}'This creates an account-owned draft. Publish it before using its slug or UUID as templateId with templateData on POST /v1/pdf. Follow the complete template workflow →
Will the PDF match this preview?
The preview uses the same HTML and sample data included with this template. RelayPDF renders HTML using Chromium. Use the document’s intended 80mm × 142mm paper size and enable print backgrounds. Review page breaks when you add longer content or more rows.
Can I use my own branding and data?
Yes. Edit the HTML and CSS, replace the sample values, and keep the field names your template expects. Save your customized draft in the dashboard and publish a version when it is ready for your application.