Skip to content
CastPDF

A free invoice template that fills itself

Send the order. Get the invoice. You send quantities, prices, discounts and VAT rates. CastPDF works out every line and the total, and hands back a finished PDF with your logo.

Making them from your own data? Read the invoice PDF API guide.

  • A4, portrait
  • 2 pages in the sample
  • Free to start
The invoice template filled with sample data. A complete invoice: your logo, seller and buyer details, line items with discounts and a VAT rate per line, a VAT breakdown, totals and payment details. Long invoices continue on more pages with the table header repeated and page numbers.

What this invoice template is for

This template turns order or project data into a clean, professional invoice. It suits freelancers, design studios, agencies and software businesses that bill customers every month.

You send the quantities, prices, any discount and the VAT rate of each line. The template works out every line, shows the VAT for each rate and prints the total due.

What a good invoice includes

  • A unique invoice number, so you and your customer can refer to it.
  • The date of issue and the date payment is due.
  • Your details and your customer’s: names, addresses and contacts.
  • Each line item, with the quantity and the price.
  • Any discount, shown on its line, and the tax for each rate, shown apart from the subtotal.
  • The total due, and clear instructions on how to pay.
  • Your tax or company number, where the law asks for one.
The data

The fields it fills

Each field fills one part of your invoice. Send new details and your invoice keeps its design, or change both.

Fields of the invoice template and what each one fills
FieldWhat it fills
General
currencyCurrency for every amount, such as EUR or USD.
localeHow numbers and dates are written, such as en-IE or de-DE.
Seller
seller.nameYour business name (your brand settings win).
seller.initialsThe letters in the logo mark, when you have no logo.
seller.taglineA short line under your name.
seller.addressYour address, one line per line.
seller.emailYour billing email address.
seller.tax_idYour VAT or tax number.
Customer
customer.nameThe customer’s business name.
customer.contactThe person the invoice is for (optional).
customer.addressThe customer’s address, one line per line.
customer.tax_idThe customer’s VAT number (optional).
Invoice
invoice.numberThe invoice number.
invoice.issuedThe date of issue.
invoice.dueThe date payment is due.
invoice.referenceThe customer’s order or purchase order number (optional).
invoice.notesA note to the customer.
invoice.termsYour payment terms.
Payment
payment.bankYour bank’s name.
payment.account_nameThe name on your bank account.
payment.ibanYour IBAN.
payment.bicYour bank’s BIC (SWIFT) code.
Items
items[].descriptionWhat you sold, one line each.
items[].detailA short note under the line (optional).
items[].quantityHow many.
items[].unitThe unit, such as days or hrs (optional).
items[].unit_priceThe price of one unit, before VAT.
items[].vat_rateThe VAT or sales tax rate of the line, in percent.
items[].discountA discount on the line, in percent (optional).
How to use it

How to make your invoice PDF

Two ways to get your invoice. Make one by hand in the dashboard today. Connect your app when you want every invoice made automatically.

No code: make it in the dashboard

  1. 1Sign up free. You don’t need a card.
  2. 2Pick the invoice template.
  3. 3Put your own details into the invoice’s sample data, and change the words and colours.
  4. 4Watch the free preview as you type. Every page carries a small “Preview” label.
  5. 5Verify your email and press Generate PDF for a clean copy. It counts as one PDF on your plan.

To make each invoice from your own app instead, send your data with a live key, as shown here.

Automatic: one request from your app

Copy the template ID from the editor. Save your invoice data in a file with that ID, then send it in one request. The reply is the finished PDF.

curl
curl https://api.castpdf.com/v1/pdf \
  -H "Authorization: Bearer $CASTPDF_API_KEY" \
  -H "Content-Type: application/json" \
  -d @request.json \
  --output invoice.pdf
request.json (the sample data)
{
  "template_id": "YOUR_TEMPLATE_ID",
  "data": {
    "currency": "EUR",
    "locale": "en-IE",
    "seller": {
      "name": "Halden & Moss Studio B.V.",
      "initials": "HM",
      "tagline": "Brand and packaging design",
      "address": "Keizersgracht 218\n1016 DZ Amsterdam\nThe Netherlands",
      "email": "[email protected]",
      "tax_id": "NL859371640B01"
    },
    "customer": {
      "name": "Brightwater Coffee Co. Ltd",
      "contact": "Priya Raman",
      "address": "14 Merchants Quay\nDublin D08 X2Y4\nIreland",
      "tax_id": "IE6388047V"
    },
    "invoice": {
      "number": "INV-2026-0142",
      "issued": "2026-09-30",
      "due": "2026-10-30",
      "reference": "PO BW-7731",
      "notes": "Thank you for working with us on the autumn range. Questions about this invoice? Reply to [email protected].",
      "terms": "Payment due within 30 days. EU B2B services: VAT is charged at the Dutch rates shown; reverse charge applies where your VAT ID qualifies."
    },
    "payment": {
      "bank": "Harbourline Bank N.V.",
      "account_name": "Halden & Moss Studio B.V.",
      "iban": "NL91 ABNA 0417 1643 00",
      "bic": "ABNANL2A"
    },
    "items": [
      {
        "description": "Brand strategy workshop",
        "detail": "Half-day session with your leadership team, notes and summary deck",
        "quantity": 1,
        "unit": "",
        "unit_price": 2400,
        "vat_rate": 21
      },
      {
        "description": "Brand identity refresh",
        "detail": "Logo refinement, colour palette and typography system",
        "discount": 10,
        "quantity": 1,
        "unit": "",
        "unit_price": 6400,
        "vat_rate": 21
      },
      {
        "description": "Logo lockups and clear-space rules",
        "quantity": 1,
        "unit": "",
        "unit_price": 950,
        "vat_rate": 21
      },
      {
        "description": "Packaging design: single origin bags",
        "detail": "Three bag designs for the autumn single-origin range",
        "quantity": 3,
        "unit": "",
        "unit_price": 1850,
        "vat_rate": 21
      }
    ]
  }
}

The full sample has 25 lines. Four are shown here to keep it short.

Read the quickstart

Make it yours

  • Add your logo, brand colour, font and company details once in the brand settings. Every template uses them.
  • Leave out what you do not need: a line without a discount or detail simply skips it.
  • Switch from A4 to US Letter in the template settings. The layout fits both.
  • Every save is a new version, and your last 50 versions are kept.

Long invoices, handled

Long invoices are handled for you. On a second page the table header repeats, no line is split in two, and every page says "Page X of Y".

The totals and payment details form one block. It stays together on one page where possible, so a total never sits alone.

FAQ

Questions about invoice PDFs

What should an invoice include?

At least a unique number, the dates, your details and your customer’s, what you sold with prices, any tax, and the total due. Many countries also ask for your tax number. This template has a place for each of them.

How do I number invoices automatically?

Your own system keeps the count and sends the next number with each invoice, such as INV-2026-0142. CastPDF prints the number you send. That keeps the sequence in one place: your records and your PDFs always agree.

Can I create an invoice PDF from JSON data?

Yes. JSON is a common text format that apps use for data. Send your invoice data in that format with one request, and the PDF comes back. The sample data on this page shows the exact shape the template expects.

Can I create an invoice PDF without coding?

Yes. Pick this template, type your details into the sample data and press Generate PDF in the dashboard. To send invoices automatically, your app or any tool that can send a web request calls CastPDF once per invoice.

Can I add my logo and change the colours?

Yes. Upload your logo and pick your colours and font in the brand settings, with no code.

What if an invoice has more items than fit on one page?

The invoice runs onto a second page. The table header repeats, the totals stay together and the pages are numbered. The 25-line sample shows it.

Is a PDF invoice valid for tax purposes?

In many countries, yes, as long as it has the details local rules require. Rules differ, so check with your accountant. This is general information, not tax or legal advice.
More templates

All templates

Make your first invoice PDF

Sign up free and this template is ready for you. Add your logo and details, and download your first invoice in minutes. You get 100 free PDFs every month, and you don’t need a card.