Existing customer? Sign In
Generate this PDF document with a simple API request or via Zapier
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_4x6",
"data": {
"logo": "https://docamatic.s3.eu-west-1.amazonaws.com/assets/logo.png",
"sender_label": "Sender:",
"sender_name": "Acme",
"sender_address1": "787 Brunswick",
"sender_address2": "Los Angeles",
"sender_address3": "CA 50028",
"sender_telephone": "4444 555 555",
"tel_label": "Tel.",
"recipient_name": "Casey Williams",
"recipient_address1": "57 Parkway, 5th Floor",
"recipient_address2": "New York",
"recipient_address3": "NY 10013",
"recipient_address4": "USA",
"order_no_label": "Order No:",
"order_number": "1893",
"reference_label": "Reference:",
"reference": "PO456461",
"weight_label": "Weight:",
"weight": "1.5KG",
"barcode": "18935949030329293",
"delivery_instruction_label": "Delivery Instruction:",
"instructions": "Please leave with reception"
}
}
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_4x6",
"font": "Open Sans",
"font_size": 0.9,
"font_color": "#32325d",
"data" : {...}
}
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_4x6",
"file_type": "png",
"data" : {...}
}
Not a developer? No problem! Docamatic's Zapier integration allows you to easily generate shipping labels without coding.
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