NoteInstalabel creation is currently only available for a select set of carriers through Shippo. To see if your carrier is supported, see our carrier capabilities page.
Setup and configuration
- If you are using your own carrier accounts, make sure to go through the Carrier Account tutorial to add your carrier credentials and connect them with Shippo first.
- Retrieve the unique carrier account object_id for the carrier that you’d like to use for the single-call request.
- Take a look at our list of available service level tokens to select the one that you’d like to use for the request.
Creating labels with one API call
Creating a label with one API call is a POST request to the Transaction endpoint with the nested shipment information, the carrier account and the service token. A sample request looks like this:cURL
Shipment object. Shippo automatically creates the corresponding rate object, which you can use to retrieve the amount of the label.