A 4 x 6 inch shipping label in black and white. It has the carrier and service, the sender and recipient addresses with a phone number, the weight, the package count and reference, a routing code, a tracking barcode, a QR code with the tracking link, and a fragile marking when it applies. Download the Word file to adapt it to your carrier and printer, then generate a label for every parcel.
Upload the label template, then send the structured data to get the finished document. Make sure to replace YOUR_API_KEY with your unique key and YOUR_TEMPLATE_ID with the ID of your template.
Send an array of JSON objects and get one document for each object, returned in a ZIP archive. Use the output_name parameter to customize each filename with the merge tags from your template.
Upload an Excel spreadsheet and every row becomes a document, with the column headers matching your merge tags. Use the sheet parameter to read a specific sheet from the Excel file.
curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"data": {
"carrier": "UPS",
"service": "GROUND",
"from_name": "Wildgrove Outdoors",
"from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217",
"ship_date": "Oct 16, 2026",
"weight": "2.4 kg",
"package_number": "1",
"package_count": "1",
"reference": "WG-58233",
"ship_to_name": "Marcus Webb",
"ship_to_address": "1450 NW Overton Street, Unit 12",
"ship_to_city": "PORTLAND OR 97209-3318",
"ship_to_country": "United States",
"ship_to_phone": "(503) 555-0148",
"routing_code": "PDX 972",
"tracking_number": "1Z999AA10123456784",
"tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784",
"is_fragile": true
}
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "YOUR_TEMPLATE_ID",
"output_format": ".pdf",
"single_file": false,
"output_name": "Shipping Label [reference]",
"data": [
{ "carrier": "UPS", "service": "GROUND", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 16, 2026", "weight": "2.4 kg", "package_number": "1", "package_count": "1", "reference": "WG-58233", "ship_to_name": "Marcus Webb", "ship_to_address": "1450 NW Overton Street, Unit 12", "ship_to_city": "PORTLAND OR 97209-3318", "ship_to_country": "United States", "ship_to_phone": "(503) 555-0148", "routing_code": "PDX 972", "tracking_number": "1Z999AA10123456784", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10123456784", "is_fragile": true },
{ "carrier": "UPS", "service": "GROUND", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 17, 2026", "weight": "3.1 kg", "package_number": "1", "package_count": "1", "reference": "WG-58237", "ship_to_name": "Priya Desai", "ship_to_address": "3920 N Williams Avenue", "ship_to_city": "PORTLAND OR 97227-1204", "ship_to_country": "United States", "ship_to_phone": "(503) 555-0161", "routing_code": "PDX 972", "tracking_number": "1Z999AA10198765430", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10198765430", "is_fragile": false },
{ "carrier": "FedEx", "service": "HOME DELIVERY", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 18, 2026", "weight": "1.2 kg", "package_number": "1", "package_count": "1", "reference": "WG-58241", "ship_to_name": "Jonas Lindqvist", "ship_to_address": "612 Pine Street, Apt 8", "ship_to_city": "SEATTLE WA 98101-2214", "ship_to_country": "United States", "ship_to_phone": "(206) 555-0134", "routing_code": "SEA 981", "tracking_number": "794644790138", "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=794644790138", "is_fragile": false },
{ "carrier": "USPS", "service": "PRIORITY MAIL", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 19, 2026", "weight": "1.8 kg", "package_number": "1", "package_count": "1", "reference": "WG-58245", "ship_to_name": "Carla Mendes", "ship_to_address": "45 Elm Court", "ship_to_city": "SALEM OR 97302-5530", "ship_to_country": "United States", "ship_to_phone": "(503) 555-0188", "routing_code": "PDX 973", "tracking_number": "9400111899223033005282", "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223033005282", "is_fragile": false },
{ "carrier": "UPS", "service": "GROUND", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 20, 2026", "weight": "6.4 kg", "package_number": "1", "package_count": "1", "reference": "WG-58250", "ship_to_name": "Ethan Brooks", "ship_to_address": "2208 Summit Drive", "ship_to_city": "BOISE ID 83702-4410", "ship_to_country": "United States", "ship_to_phone": "(208) 555-0145", "routing_code": "BOI 837", "tracking_number": "1Z999AA10312345678", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10312345678", "is_fragile": true },
{ "carrier": "UPS", "service": "2ND DAY AIR", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 21, 2026", "weight": "2.7 kg", "package_number": "1", "package_count": "1", "reference": "WG-58254", "ship_to_name": "Yuki Sato", "ship_to_address": "1180 SW Morrison Street", "ship_to_city": "PORTLAND OR 97205-2610", "ship_to_country": "United States", "ship_to_phone": "(503) 555-0152", "routing_code": "PDX 972", "tracking_number": "1Z999AA10245671984", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10245671984", "is_fragile": false },
{ "carrier": "FedEx", "service": "GROUND", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 22, 2026", "weight": "1.5 kg", "package_number": "1", "package_count": "1", "reference": "WG-58259", "ship_to_name": "Fatima Hassan", "ship_to_address": "77 Harbor Lane", "ship_to_city": "TACOMA WA 98402-3317", "ship_to_country": "United States", "ship_to_phone": "(253) 555-0129", "routing_code": "SEA 984", "tracking_number": "794712350864", "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=794712350864", "is_fragile": false },
{ "carrier": "USPS", "service": "PRIORITY MAIL", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 23, 2026", "weight": "2.9 kg", "package_number": "1", "package_count": "1", "reference": "WG-58263", "ship_to_name": "Noah Evans", "ship_to_address": "905 Birch Street", "ship_to_city": "CORVALLIS OR 97330-4821", "ship_to_country": "United States", "ship_to_phone": "(541) 555-0176", "routing_code": "PDX 973", "tracking_number": "9400111899223033007163", "tracking_url": "https://tools.usps.com/go/TrackConfirmAction?tLabels=9400111899223033007163", "is_fragile": true },
{ "carrier": "UPS", "service": "GROUND", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 24, 2026", "weight": "3.6 kg", "package_number": "1", "package_count": "1", "reference": "WG-58268", "ship_to_name": "Isabella Rossi", "ship_to_address": "3301 Cascade Avenue", "ship_to_city": "BEND OR 97702-1135", "ship_to_country": "United States", "ship_to_phone": "(541) 555-0113", "routing_code": "PDX 977", "tracking_number": "1Z999AA10456789012", "tracking_url": "https://www.ups.com/track?tracknum=1Z999AA10456789012", "is_fragile": false },
{ "carrier": "FedEx", "service": "HOME DELIVERY", "from_name": "Wildgrove Outdoors", "from_address": "Fulfillment Center, 4800 Harbor Way, Portland, OR 97217", "ship_date": "Oct 25, 2026", "weight": "2.2 kg", "package_number": "1", "package_count": "1", "reference": "WG-58272", "ship_to_name": "Liam Foster", "ship_to_address": "14 Ridge Road", "ship_to_city": "HOOD RIVER OR 97031-9902", "ship_to_country": "United States", "ship_to_phone": "(541) 555-0198", "routing_code": "PDX 970", "tracking_number": "794798216540", "tracking_url": "https://www.fedex.com/fedextrack/?trknbr=794798216540", "is_fragile": false }
]
}' curl -X 'POST' \
'https://api.docugenerate.com/v1/document' \
-H 'Accept: application/json' \
-H 'Authorization: YOUR_API_KEY' \
-H 'Content-Type: multipart/form-data' \
-F 'template_id=YOUR_TEMPLATE_ID' \
-F 'file=@Shipping Label Batch.xlsx' \
-F 'output_format=.pdf' \
-F 'single_file=false' \
-F 'output_name=Shipping Label [reference]' Questions frequently asked about our label templates
Get started with 20 free documents per month and our ready-to-use label templates.