Shipment API
This API allows you to create and track shipments through the Ship Happens platform.
Authentication
All endpoints require a valid API key passed in the X-API-Key
header.
Create a new shipment
Creates a new shipment with the provided details
Request Body
recipientAddress
objectsenderAddress
objectpackages
object[]
id
stringoptionalstatus
stringoptionaltrackingNumber
stringoptionalcreatedAt
stringoptional
Responses
recipientAddress
objectsenderAddress
objectpackages
object[]id
stringoptionalstatus
stringoptionaltrackingNumber
stringoptionalcreatedAt
stringoptional
Track a shipment
Get the current status and tracking information for a shipment
path Parameters
trackingNumber
stringrequired
Responses
recipientAddress
objectsenderAddress
objectpackages
object[]id
stringoptionalstatus
stringoptionaltrackingNumber
stringoptionalcreatedAt
stringoptional
Hold shipment
Place a shipment on hold at a facility
path Parameters
shipmentId
stringrequired
Request Body
holdUntil
string
reason
stringoptionalfacilityId
stringoptional
Responses
status
stringoptionalholdLocation
stringoptionalholdUntil
stringoptional
Calculate shipping rates
Calculate available shipping rates for a shipment based on service level, destination, and package details
path Parameters
shipmentId
stringrequired
Request Body
serviceLevel
string
insurance
objectoptional
Responses
baseRate
numberoptionalfees
object[]optionaltotalRate
numberoptionalcurrency
stringoptionaltransitTime
objectoptional
Update customs documentation
Update or add customs documentation for international shipments
path Parameters
shipmentId
stringrequired
Request Body
items
object[]
purpose
stringoptionalincoterm
stringoptional
Responses
id
stringoptionalstatus
stringoptionalcustomsValue
numberoptionalcurrency
stringoptionaldocuments
object[]optional
Pay import duties
Pay import duties and taxes for an international shipment
path Parameters
shipmentId
stringrequired
Request Body
paymentMethod
string
paymentDetails
objectoptional
Responses
amount
numberoptionalcurrency
stringoptionalreceipt
stringoptional
Get shipping label
Get the shipping label for a shipment in various formats. Supports both JSON and XML responses. XML format follows the EDIFACT D96A standard for shipping label interchange, while JSON is provided for modern API integrations.
path Parameters
shipmentId
stringrequired
query Parameters
format
stringLabel format
Headers
Accept
stringResponse format. Use application/xml for EDI-compliant responses following EDIFACT D96A standard.
Responses
shipmentId
stringformat
stringid
stringoptionalurl
stringoptionalcreatedAt
stringoptionalexpiresAt
stringoptional
Set up notifications
Configure notification preferences for shipment status updates
path Parameters
shipmentId
stringrequired
Request Body
email
string[]optionalsms
string[]optionalwebhooks
string[]optionalevents
string[]optional
Responses
status
stringoptionalchannels
string[]optional
Get estimated delivery time
Get estimated delivery time between two facilities for a specific service level
path Parameters
originFacilityId
stringrequiredID of the origin facility
destinationFacilityId
stringrequiredID of the destination facility
serviceLevel
stringrequiredService level for the route
Responses
estimatedDeliveryTime
objectoptionaldistance
objectoptionalroute
objectoptional