DHL-PL - Label

Carrier: DHL-PL
Action: Label
Description: Example implementation for DHL-PL Label
{
  "carrier": "dhl-pl",
  "action": "SubmitShipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
	"service": "AH",
	"shipment_description": "Toys",
	"image_type": "LBLP",
	"packages": [
      {
        "weight": 15,
        "length": 10,
        "width": 10,
        "height": 10
      }
    ],
    "shipper": "Thomas Test",
    "ship_addr1": "Osmanska",
    "ship_addr2": "2",
    "ship_city": "Warszawa",
    "ship_code": "02823",
    "ship_phone": "123456789",
    "to_name": "John Doe",
    "to_addr1": "7 Wroblewskiego",
    "to_addr2": "7",
    "to_city": "Pulawy",
    "to_code": "24100",
    "to_phone": "123456789",
    "to_country": "PL",
    "to_email": "receiver@dhl.com",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'dhl-pl',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'service' => 'AH',
    'shipment_description' => 'Toys',
    'image_type' => 'LBLP',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 15,
        'length' => 10,
        'width' => 10,
        'height' => 10,
      ),
    ),
    'shipper' => 'Thomas Test',
    'ship_addr1' => 'Osmanska',
    'ship_addr2' => '2',
    'ship_city' => 'Warszawa',
    'ship_code' => '02823',
    'ship_phone' => '123456789',
    'to_name' => 'John Doe',
    'to_addr1' => '7 Wroblewskiego',
    'to_addr2' => '7',
    'to_city' => 'Pulawy',
    'to_code' => '24100',
    'to_phone' => '123456789',
    'to_country' => 'PL',
    'to_email' => 'receiver@dhl.com',
    'packaging_type' => 'YOUR_PACKAGING',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'dhl-pl',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'image_type': 'LBLP',
            'packages': [{'height': 10,
                          'length': 10,
                          'weight': 15,
                          'width': 10}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'service': 'AH',
            'ship_addr1': 'Osmanska',
            'ship_addr2': '2',
            'ship_city': 'Warszawa',
            'ship_code': '02823',
            'ship_phone': '123456789',
            'shipment_description': 'Toys',
            'shipper': 'Thomas Test',
            'test': True,
            'to_addr1': '7 Wroblewskiego',
            'to_addr2': '7',
            'to_city': 'Pulawy',
            'to_code': '24100',
            'to_country': 'PL',
            'to_email': 'receiver@dhl.com',
            'to_name': 'John Doe',
            'to_phone': '123456789',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"dhl-pl",
 "action"=>"SubmitShipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "service"=>"AH",
   "shipment_description"=>"Toys",
   "image_type"=>"LBLP",
   "packages"=>[{"weight"=>15, "length"=>10, "width"=>10, "height"=>10}],
   "shipper"=>"Thomas Test",
   "ship_addr1"=>"Osmanska",
   "ship_addr2"=>"2",
   "ship_city"=>"Warszawa",
   "ship_code"=>"02823",
   "ship_phone"=>"123456789",
   "to_name"=>"John Doe",
   "to_addr1"=>"7 Wroblewskiego",
   "to_addr2"=>"7",
   "to_city"=>"Pulawy",
   "to_code"=>"24100",
   "to_phone"=>"123456789",
   "to_country"=>"PL",
   "to_email"=>"receiver@dhl.com",
   "packaging_type"=>"YOUR_PACKAGING",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "dhl-pl",
  "action": "SubmitShipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
	"service": "AH",
	"shipment_description": "Toys",
	"image_type": "LBLP",
	"packages": [
      {
        "weight": 15,
        "length": 10,
        "width": 10,
        "height": 10
      }
    ],
    "shipper": "Thomas Test",
    "ship_addr1": "Osmanska",
    "ship_addr2": "2",
    "ship_city": "Warszawa",
    "ship_code": "02823",
    "ship_phone": "123456789",
    "to_name": "John Doe",
    "to_addr1": "7 Wroblewskiego",
    "to_addr2": "7",
    "to_city": "Pulawy",
    "to_code": "24100",
    "to_phone": "123456789",
    "to_country": "PL",
    "to_email": "receiver@dhl.com",
    "packaging_type": "YOUR_PACKAGING",
    "test": true
  }
}
)
← Back to All Examples

Other DHL-PL Examples

Pickup
Example implementation for DHL-PL Pickup
Track
Example implementation for DHL-PL Track
Void
Example implementation for DHL-PL Void