Quotation Template

Generate this PDF document with a simple API request

Quotation (detailed)

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": "quotation2",
    "page_numbers": true,
    "data": {
        "company": {
            "logo": "https://docamatic.s3.eu-west-1.amazonaws.com/assets/logo.png",
            "name": "Acme",
            "address": "787 Brunswick, Los Angeles, CA 50028",
            "contact": "support@acme.com / 4444 555 555",
            "website": "acme.com"
        },
        "title": "Quotation",
        "subtitle": "This quote is confidential information. Please do not share",
        "quote_name": "Claire Simms",
        "quote_number": "658437",
        "quote_date": "Feb 29, 2024",
        "quote_expiration": "Mar 29, 2024",
        "account_rep": "Casey Williams",
        "phone": "4444 555 555",
        "email": "casey@acme.com",
        "notes": "Please contact sales.",
        "purchasing_information": [
            {
                "attribute": "Contract Name",
                "value": "NYC-X324242593-3392"
            },
            {
                "attribute": "Purchasing Instructions",
                "value": "Please forward your PO to orders@acme.com and attach this quotation."
            }
        ],
        "lines": [
            {
                "description": {
                    "title": "Bulk deal pallet",
                    "subtitle": "Contents:",
                    "configuration": [
                        {
                            "description": "Men's Pursuit Running Shoes - 10/M - BLACK",
                            "sku": "PRS3f000011-AH",
                            "quantity": 15
                        },
                        {
                            "description": "Men's Shelby Leather Boots - 10/M",
                            "sku": "SBX44733742-BF",
                            "quantity": 20
                        },
                        {
                            "description": "Gel Venture Trail Runners - 11/M - BLUE",
                            "sku": "KTR34534535-GT",
                            "quantity": 15
                        }
                    ]
                },
                "quantity": "2",
                "unit_price": "$1,000.00",
                "total": "$2,000.00"
            },
            {
                "description": {
                    "title": "Women's Blaze Trail Runners - 9/F - BLACK",
                    "subtitle": "SKU: UL7RFJEf84E-TT"
                },
                "quantity": "10",
                "unit_price": "$40.00",
                "original_unit_price": "$50.00",
                "special_price_valid_to": "Special price valid until 03/14/24",
                "total": "$400.00"
            }
        ],
        "comments": "Thank you for your business!",
        "sales_tax_percentage": "6%",
        "sales_tax": "$144.00",
        "subtotal": "$2,400.00",
        "total": "$2,544.00",
        "terms_and_conditions": [
            "Payment will be due prior to delivery of service and goods.",
            "This quotation is not a contract or a bill. It is our best guess at the total price for the goods described above."
        ],
        "color": "#000000",
        "accent_color": "#eee"
    }
}
    

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": "quotation2",
    "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": "quotation2",
    "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