Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

dhl api integration in php - create a shipment

$shipment = $dhlparcel->shipments->create($parcel);

$shipment->id;
// For shipments with multiple pieces:
$shipment->pieces->each(function ($item) {
    $item->label_id;
    $item->barcode;
})
// For a shipment with one single piece:
$shipment->label_id;
$shipment->barcode;
Source by github.com #
 
PREVIOUS NEXT
Tagged: #dhl #api #integration #php #create #shipment
ADD COMMENT
Topic
Name
9+7 =