Shipping Label Template

Generate this PDF document with a simple API request

Shipping Label (4x3)

Example JSON

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

    
        {
    "template": "shipping_label_4x3",
    "data": {
        "logo": "https://docamatic.s3-eu-west-1.amazonaws.com/assets/360_logo.png",
        "sender": "360 Footwear, 787 Brunswick, Los Angeles CA 50028",
        "recipient": {
            "name": "Casey Williams",
            "address1": "57 Parkway, 5th Floor",
            "address2": "New York",
            "address3": "NY 10013",
            "address4": "USA"
        },
        "reference": "1893",
        "weight": "1.5KG",
        "barcode": "18935949030329293"
    }
}
    

Styling

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

    
        {
    "template": "shipping_label_4x3",
    "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": "shipping_label_4x3",
    "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 shipping label above!

Back to templates