Commercial Invoice Template

Generate this PDF document with a simple API request.

Commercial Invoice

Example JSON

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

    
        {
    "template": "commercial_invoice",
    "data": {
        "type": "Commercial Invoice",
        "international_airwaybill_number": "23723111837",
        "exportation_date": "Oct-21-2019",
        "shippers_export_reference": "ORD32829",
        "shipper": "Address",
        "consignee": "Address",
        "country_of_export": "USA",
        "importer": "",
        "eori": "4832882",
        "reason_for_export": "Goods Sold",
        "country_of_ultimate_destination": "Germany",
        "lines": [
            {
                "goods_description": "T-Shirt",
                "country_of_manufacture": "China",
                "hs_code": "583948392",
                "unit_of_measure": "EA",
                "qty": "100",
                "unit_weight": "0.1",
                "unit_value": "10.00",
                "total_value": "1000.00"
            },
            {
                "goods_description": "Shorts",
                "country_of_manufacture": "China",
                "hs_code": "583948392",
                "unit_of_measure": "EA",
                "qty": "100",
                "unit_weight": "0.1",
                "unit_value": "10.00",
                "total_value": "1000.00"
            }
        ],
        "total_value": "2000.00",
        "currency": "USD",
        "total_packages": "4",
        "total_weight": "20KG",
        "incoterm": "DAP",
        "color": "#000000",
        "logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png"
    }
}
    

Styling

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

    
        {
    "template": "commercial_invoice",
    "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": "commercial_invoice",
    "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 commercial invoice above!

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

Back to templates