There are multiple formats and methods that can be used to download labels created with ShipEngine’s API.
ShipEngine supports the following label formats PDF, PNG, and ZPL.
By default, label sizes are 4x6. The option to print 8.5x11 labels is available by specifying the label_layout
as letter
when creating a label.
If no label_format is specified when creating a label, you will receive multiple label URLs in the Create Label response. Label URLs are valid for 90 days.
"label_download": { "pdf": "https://api.shipengine.com/v1/downloads/10/0TxPaRq-ZU2p-dwI_aD7og/label-10793267.pdf", "png": "https://api.shipengine.com/v1/downloads/10/0TxPaRq-ZU2p-dwI_aD7og/label-10793267.png", "zpl": "https://api.shipengine.com/v1/downloads/10/0TxPaRq-ZU2p-dwI_aD7og/label-10793267.zpl", "href": "https://api.shipengine.com/v1/downloads/10/0TxPaRq-ZU2p-dwI_aD7og/label-10793267.pdf" }
Specify the label_download_type
as inline to streamline the label download process. The inline label download type will provide a single, Base64 encoded label in the response.