Overview
Shipping Labels & Stamps API
This API allows you to create shipping labels and stamps for your shipments.
Authentication
All endpoints require a valid API key passed in the X-API-Key
header.
Endpoint
Stamps
Create a shipping stamp
POST
https://api.sh.example.com/v1
/stamps
Creates a new shipping stamp for a shipment.
The generated stamp will be available for download through the returned URL for 24 hours.
Request Body
shipmentId
stringformat
string
id
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Responses
shipmentId
stringformat
stringid
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Labels
Create a shipping label
POST
https://api.sh.example.com/v1
/labels
Creates a new shipping label for a shipment.
The generated label will be available for download through the returned URL for 24 hours.
Request Body
shipmentId
stringformat
string
id
stringoptionalsize
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Responses
shipmentId
stringformat
stringid
stringoptionalsize
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Get tracking number
GET
https://api.sh.example.com/v1
/labels/{id}/trackingnumber
Retrieves the tracking number associated with a shipping label.
path Parameters
id
stringrequiredThe ID of the shipping label
query Parameters
format
stringThe format of the response
limit
integerMaximum number of tracking events to return
Responses
trackingNumber
stringcarrier
stringtrackingUrl
stringoptional
Get shipping label
GET
https://api.sh.example.com/v1
/labels/{id}
Retrieves a shipping label by ID. The label can be requested in different formats.
path Parameters
id
stringrequiredThe ID of the shipping label
query Parameters
format
stringThe desired format of the label
Responses
shipmentId
stringformat
stringid
stringoptionalsize
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional