Quotation Template

Generate this PDF document with a simple API request

Quotation (minimal)

Example JSON

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

    
        {
    "template": "quotation1",
    "data": {
        "quotation_number": "232",
        "quotation_date": "09/01/2020",
        "valid_to": "09/01/2020",
        "customer_reference": "AF4782",
        "prepared_by": "Claire Simms",
        "company": {
            "logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png",
            "name": "360 Footwear",
            "address": "787 Brunswick, Los Angeles, CA 50028",
            "contact": "support@360footwear.co / 4444 555 555",
            "website": "360footwear.co"
        },
        "customer": {
            "name": "Casey Williams",
            "address1": "57 Parkway",
            "address2": "5th Floor",
            "address3": "New York, NY 10013",
            "telephone": "+1 212-608-5983"
        },
        "lines": [
            {
                "description": "Pursuit Running Shoes",
                "quantity": "10",
                "unit_price": "59.50",
                "total": "595.00"
            },
            {
                "description": "Shelby Boots",
                "quantity": "10",
                "unit_price": "39.50",
                "total": "395.00"
            }
        ],
        "subtotal": "$990.00",
        "sales_tax": "$59.40",
        "sales_tax_percentage": "6%",
        "shipping": "$37.88",
        "other": "$0.00",
        "total": "$1087.28",
        "comments": "Payment will be due prior to delivery of service and goods.",
        "color": "#000000"
    }
}
    

Styling

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

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

Generate as PDF or Image

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

    
        {
    "template": "quotation1",
    "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 quotation above!

Back to templates