Overview
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.
Endpoint
Get shipping label
GET
https://api.sh.example.com/v1
/shipments/{shipmentId}/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