Create Label
Create a label for a label request.
Required API key scopes
- Labels (Write)
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
- Option 1
- Option 2
The label request id this label applies to.
67329889100573
The tracking number associated with the label.
256"9400136105440512280610"
The carrier associated with the label.
32"USPS"
The URL containing the printable PDF of the labels.
Required unless qrcode_url is provided.
2048"https://s3.amazonaws.com/example-bucket/label.pdf"
[
{ "amount": 50000, "currency_code": "USD" },
{ "amount": 25000, "currency_code": "CAD" },
{ "amount": 1500, "currency_code": "EUR" }
]
The tracking URL associated with the label.
2048"https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=9400136105440512280610"
The QR Code URL containing the printable PDF of the labels.
512"https://s3.amazonaws.com/example-bucket/qrcode.pdf"
Response
Created
The id of the label you created.
67329889100573
The tracking number associated with the label.
"9400136105440512280610"
The carrier associated with the label.
"USPS"
[
{ "amount": 50000, "currency_code": "USD" },
{ "amount": 25000, "currency_code": "CAD" },
{ "amount": 1500, "currency_code": "EUR" }
]
The current status of the label.
queueable, queued, queued_for_purchase, purchase_failed, new, pre_transit, in_transit, out_for_delivery, delivered, available_for_pickup, cancelled, unknown, return_to_sender, failure, error, refund_requested "new"
The date the label was created.
"2023-04-25T13:25:00-05:00"
The tracking URL associated with the label.
"https://tools.usps.com/go/TrackConfirmAction_input?strOrigTrackNum=9400136105440512280610"
The URL containing the printable PDF of the labels.
"https://s3.amazonaws.com/example-bucket/label.pdf"
The QR Code URL containing the printable PDF of the labels.
"https://s3.amazonaws.com/example-bucket/qrcode.pdf"