Setting your label format
Specify your preferred label format by setting thelabel_file_type parameter to one of the label tokens when calling the transaction endpoint to purchase your label.
Each carrier supports different label size options. Refer to our carrier capabilities for carrier specific details.
If you don’t set the label_file_type, the Shippo API will use the default format set in the Shippo dashboard.
cURL