v1

latestOpenAPI 3.0.12026-07-242073551.1 MB
Shipments

Print Label

Generate and return the label for the DX Freight shipment. This endpoint is utilised after a DX Freight 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.

get/v4/shipments/printLabel/dxf/{shipmentId}

Path parameters

shipmentIdstring required

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

labelFormat'PDF'

Specifies the format of the shipping label that will be returned in the createShipment response. The current accepted format is PDF, which will return a Base 64-encoded PDF of the shipping label. <br /> <br />Note: By default, this field is set to 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 label. <br /> <br />Note: By default, this field is set to PDF.

Response

Returns the printed label in the format specified.

ShipmentIdstring uuid required

A unique identifier assigned to the shipment by the carrier for which the label is requested. This reaffirms the specific shipment being referenced.

TrackingNumberstring nullable

A unique number assigned to the shipment that allows both the sender and the receiver to track the shipment's status and location throughout its transit. This number is essential for monitoring the delivery progress.

CarrierTrackingUrlstring uri nullable

A URL link provided by the carrier that directs users to a webpage where they can track the shipment in real-time. This link provides detailed status updates and visibility into the shipment's journey.

Labelstring nullable

The generated base64-encoded string of the shipping label in the format requested in the LabelFormat field. This label includes essential shipping information, barcodes, and addresses, necessary for the proper handling and delivery of the shipment.

LabelFormat'PDF' required

Specifies the format in which the generated shipping label was requested, for example, PDF.

Example response

{
  "ShipmentId": "c4e60776-288f-464e-b35b-ff0f3252c0f0",
  "TrackingNumber": "TT12384739GB",
  "CarrierTrackingUrl": "http://shipmentcarrier.com/tracking/DF12384739GB",
  "Label": "iVBORw0KGgoAAAANSUhEUgAA ... A4QAAAXcCAYAAAB6Q0CbAAAAAXNSR0IArs4"
}