Invoice Template

Generate this PDF document with a simple API request.

Invoice (services)

Example JSON

Below is the JSON used to create the invoice above. All of the attributes within the data parameter are non mandatory. Supply only what you want to populate on the document.

    
        {
    "template": "invoice3",
    "data": {
        "logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png",
        "title": "Invoice",
        "invoice_number": "101842",
        "date": "December, 8, 2020",
        "date_due": "January, 8, 2021",
        "company": "787 Brunswick\nLos Angeles\nCA 50028\nVAT Number: 234234\nTelephone: 4444 555 555\nsupport@360footwear.co",
        "bill_to": "Casey Williams\n57 Parkway, 5th Floor\nNew York, NY 10013\ncasey@test.com",
        "due": "$300 due January, 8, 2021",
        "items": [
            {
                "name": "Pursuit Running Shoes",
                "description": "Men's Pursuit Running Shoes - 10/M",
                "qty": "1",
                "unit_price": "$149.00",
                "price": "$149.00"
            },
            {
                "name": "Shelby Boots",
                "description": "Men's Shelby Leather Boots - 10/M",
                "qty": "2",
                "unit_price": "$99.00",
                "price": "$99.00",
                "original_price": "$119.00"
            }
        ],
        "notes": "Payment will be due prior to delivery of service and goods.",
        "discount": "-$40.00",
        "subtotal": "$347.00",
        "shipping": "$10.00",
        "sales_tax_label": "Sales Tax 10%",
        "sales_tax": "$34.70",
        "total": "$391.70",
        "color": "#000000",
        "payment_instructions": "Please remit to IBAN XXX0303443439492 / BIC CODE TZ43823843",
        "message": "Questions? Contact 360 Footwear at billing@360footwear.co or call +1 4444-555-555."
    }
}
    

Styling

It's easy to change the look and feel of the invoice. The template API allows you to easily insert your own logo and specify a custom font.

    
        {
    "template": "invoice3",
    "font": "Open Sans",
    "font_size": 0.9,
    "font_color": "#32325d",
    "data" : {...}
}
    

Generate as PDF or PNG

By default all templates are generated as a PDF document. If you would like to generate as a PNG image, supply the file_type parameter in your API request:

    
        {
    "template": "invoice3",
    "file_type": "png",
    "data" : {...}
}
    

Need a custom template?

If you prefer to build your own templates or require more flexibility, be sure to try our HTML to PDF API . We are using the same HTML to PDF API to generate the invoice above!

If you need a custom template please contact us to see if we can assist.

Back to templates