Generate a Shipping Label

Creates the shipment with the carrier: charges your balance and returns the tracking number and the printable label. Use this when the buyer has chosen a rate.

  • settings.printFormat and settings.printSize are required and case-sensitive: PDF, not pdf.
  • number is required in both addresses, in every country, although a quote works without it.
  • A service can be quote-only: the label refuses it with 1172 SERVICE_QUOTE_ONLY. Try the next service from the same quote.
  • The label is charged in your account's currency. To get the charge back for a label that will not ship, cancel it.

Next: track the shipment, or schedule a pickup.

The label is for the first service with the carrier and service you send, and it is charged at that service's price. There is no field to choose a serviceId: when a quote returned the same service twice, the label is the first of them.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
origin
object
required

Origin address information

destination
object
required

Destination address information

packages
array of objects
required

List of packages

packages*
settings
object
required

Shipping settings. printFormat and printSize are required for label generation.

shipment
object
required

Carrier and service from the Quote response. type: 1=parcel, 2=LTL, 3=FTL.

customsSettings
object

Customs settings for international shipments

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/html