v1
latestOpenAPI 3.0.12026-07-242073551.1 MBPrint Label
Generate and return the label for the DX shipment. This endpoint is utilised after a DX shipment has been created and is meant to facilitate the printing of the label required for that shipment. <br /> <br />Note: This endpoint changes the status of the shipment to label printed.This endpoint should be called at the time of actual printing or label creation, depending on how your business operates.Shipments must be updated to label printed status prior to manifesting.
Path parameters
A unique identifier (shipmentId) or tracking number returned in the Create shipment response. This ID is used to reference and track specific shipments within the system.
Query parameters
Specifies the format in which the generated shipping label was requested, for example, PDF.
The desired format for the shipping label that is to be generated and retrieved by the createShipment API response, such as PDF that returns a Base64-encoded PDF label. <br /><br />Note: By default, this field is set to PDF.
Response
Returns the printed label in the format specified.
Example response
{
"ShipmentId": "c4e60776-288f-464e-b35b-ff0f3252c0f0",
"TrackingNumber": "TT12384739GB",
"CarrierTrackingUrl": "http://shipmentcarrier.com/tracking/DF12384739GB",
"Label": "iVBORw0KGgoAAAANSUhEUgAA ... A4QAAAXcCAYAAAB6Q0CbAAAAAXNSR0IArs4"
}