Back to template library

Dynamic PDF Template

Invoice Template

This template is designed to help businesses and freelancers present a clear and professional bill to their clients.

The layout provides organized spaces for all essential details, including itemized services/products, quantities, prices, and total amounts. With a dedicated section for both the provider and client's contact details, this invoice ensures transparency and clarity in financial transactions. Suitable for any industry, it also features fields for tax calculations.

Dynamic PDF API

Dynamic Data Integration

Each of our template comes with a set of dynamic data that you can customize to your needs.

Here is the list of the default data with their type and example:

Name Type Example
first_name string John
last_name string Doe
phone string 123456789
address string 569 Therese Springs Apt. 583
invoice_nr string A50012
date string 2023-08-01
items[] array
items[0][item_name] string Retro Bicycle
items[0][item_qty] string 1
items[0][item_price] string $ 1'099.00
subtotal string $ 1'298.00
tax string $ 129.80
total string $ 1'427.80
bank_name string Bank of America
account_name string Bicycle Inc.
account_nr string 123456789
expiration_date string 2023-08-31
{
    "data": {
        "first_name": "John",
        "last_name": "Doe",
        "phone": "123456789",
        "address": "569 Therese Springs Apt. 583",
        "invoice_nr": "A50012",
        "date": "2023-08-01",
        "items": [
            {
                "item_name": "Retro Bicycle",
                "item_qty": "1",
                "item_price": "$ 1'099.00"
            },
            {
                "item_name": "Bike Helmet",
                "item_qty": "2",
                "item_price": "$ 199.00"
            }
        ],
        "subtotal": "$ 1'298.00",
        "tax": "$ 129.80",
        "total": "$ 1'427.80",
        "bank_name": "Bank of America",
        "account_name": "Bicycle Inc.",
        "account_nr": "123456789",
        "expiration_date": "2023-08-31"
    }
}
curl -X POST "https://pdf-api.io/api/templates/{templateId}/pdf" \
    -H "Content-Type: application/json" \
    -H "Accept: application/pdf" \
    -H "Authorization: Bearer {token}"
    -d '{
    "data": {
        "first_name": "John",
        "last_name": "Doe",
        "phone": "123456789",
        "address": "569 Therese Springs Apt. 583",
        "invoice_nr": "A50012",
        "date": "2023-08-01",
        "items": [
            {
                "item_name": "Retro Bicycle",
                "item_qty": "1",
                "item_price": "$ 1'099.00"
            },
            {
                "item_name": "Bike Helmet",
                "item_qty": "2",
                "item_price": "$ 199.00"
            }
        ],
        "subtotal": "$ 1'298.00",
        "tax": "$ 129.80",
        "total": "$ 1'427.80",
        "bank_name": "Bank of America",
        "account_name": "Bicycle Inc.",
        "account_nr": "123456789",
        "expiration_date": "2023-08-31"
    }
}'