The document collection / Invoice

Simple Invoice Template

A crisp black-and-white invoice with customer details, itemized work, discount, tax, and payment instructions. A practical layout for clear billing and economical printing.

Paper format
A4
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 preview
RELAYPDF / DOCUMENT COLLECTION
A4 HTML → PDF
Make it work for you

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

  1. Personalize the design

    Update the organization name, typography, and CSS accent colors. Replace the sample wording with content appropriate to your business.

  2. Connect your data

    Keep the field structure in the sample JSON and replace its values. Repeating arrays create the document’s rows or sections.

  3. Preview, publish, generate

    Test with your longest content. Publish the draft, then generate PDFs using its templateId and fresh templateData.

What you can customize

FieldPurpose
numberYour document reference; use a stable, unique identifier.
issuedOnDate supplied by your application; ISO dates work with the template’s date formatter.
dueOnDate supplied by your application; ISO dates work with the template’s date formatter.
currencyISO currency code used by the money formatter, such as USD.
taxRateEditable document content. Replace the sample value with your own data.
subtotalPre-tax amount calculated by your application.
discountDiscount amount supplied by your billing system.
discountRateEditable document content. Replace the sample value with your own data.
taxTax amount supplied by your billing system.
totalFinal amount calculated by your application, including applicable adjustments.
notesAdditional context or instructions shown with the document.
companyYour business identity and contact details.
customerThe recipient’s billing identity and address.
itemsRepeatable line items; each object becomes a row.
paymentPayment terms, bank information, and optional payment link or QR image.

Start with real sample data

Download sample JSON ↓
Inspect sample JSON
templateData / JSON
{
  "number": "RC-1842",
  "issuedOn": "2026-01-31",
  "dueOn": "2026-02-14",
  "currency": "USD",
  "taxRate": "13%",
  "subtotal": 1400,
  "discount": 70,
  "discountRate": "5%",
  "tax": 172.9,
  "total": 1502.9,
  "notes": "Please reference RC-1842 on the transfer. Files ship via shared drive after payment clears.",
  "company": {
    "name": "Redleaf Creative",
    "email": "studio@redleafcreative.com",
    "address": "88 King Street West, Suite 410\nToronto, ON M5V 1M8",
    "phone": "+1 416 555 0148",
    "taxId": "EIN 84-2290176"
  },
  "customer": {
    "name": "Meridian Architecture Ltd.",
    "email": "accounts@meridianarch.com",
    "address": "210 Adelaide Street East, Floor 6\nToronto, ON M5A 1N1",
    "phone": "+1 416 555 0271",
    "taxId": "BN 81234 9012 RT0001"
  },
  "items": [
    {
      "description": "Identity system",
      "detail": "Stationery suite and digital lockups",
      "quantity": 1,
      "unitPrice": 640,
      "tax": 83.2,
      "amount": 640
    },
    {
      "description": "Environmental graphics",
      "detail": "Lobby and lift-lobby wayfinding",
      "quantity": 2,
      "unitPrice": 280,
      "tax": 72.8,
      "amount": 560
    },
    {
      "description": "Presentation boards",
      "detail": "Client review set, printed",
      "quantity": 1,
      "unitPrice": 200,
      "tax": 26,
      "amount": 200
    }
  ],
  "payment": {
    "url": "https://pay.redleafcreative.com/RC-1842",
    "bank": "Royal Bank of Canada",
    "account": "004-512-8831",
    "routing": "003000004",
    "terms": "Net 14"
  }
}

Clone through the API

POST /v1/templates
curl https://api.relaypdf.com/v1/templates \
  -H "Authorization: Bearer $RELAYPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Simple Invoice Template","galleryId":"invoice"}'

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

Keep exploring.