DHL - Label International

Carrier
DHL
Action
Label International
{
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "shipment_description": "Fashion goods",
    "customs_value": 45.99,
    "currency": "EUR",
    "trade_terms": "DAP",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8,
        "reference_value": "asdf"
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "5684 Bay St",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "Toronto Zoo",
    "to_addr1": "2000 Meadowvale Road",
    "to_state": "MB",
    "to_city": "Toronto",
    "to_code": "M1B5K7",
    "to_phone": "1231231234",
    "to_country": "CA",
    "test": true,
    "service": "P"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'shipment_description' => 'Fashion goods',
    'customs_value' => 45.99,
    'currency' => 'EUR',
    'trade_terms' => 'DAP',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'length' => 6,
        'width' => 7,
        'height' => 8,
        'reference_value' => 'asdf',
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '5684 Bay St',
    'ship_city' => 'Emeryville',
    'ship_state' => 'CA',
    'ship_code' => '94608',
    'ship_phone' => '1231231234',
    'ship_country' => 'US',
    'to_name' => 'Toronto Zoo',
    'to_addr1' => '2000 Meadowvale Road',
    'to_state' => 'MB',
    'to_city' => 'Toronto',
    'to_code' => 'M1B5K7',
    'to_phone' => '1231231234',
    'to_country' => 'CA',
    'test' => true,
    'service' => 'P',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'DHL',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'currency': 'EUR',
            'customs_value': 45.99,
            'packages': [{'height': 8,
                          'length': 6,
                          'reference_value': 'asdf',
                          'weight': 5,
                          'width': 7}],
            'password': 'YOUR_PASSWORD',
            'service': 'P',
            'ship_addr1': '5684 Bay St',
            'ship_city': 'Emeryville',
            'ship_code': '94608',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'CA',
            'shipment_description': 'Fashion goods',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '2000 Meadowvale Road',
            'to_city': 'Toronto',
            'to_code': 'M1B5K7',
            'to_country': 'CA',
            'to_name': 'Toronto Zoo',
            'to_phone': '1231231234',
            'to_state': 'MB',
            'trade_terms': 'DAP',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "shipment_description"=>"Fashion goods",
   "customs_value"=>45.99,
   "currency"=>"EUR",
   "trade_terms"=>"DAP",
   "packages"=>
    [{"weight"=>5,
      "length"=>6,
      "width"=>7,
      "height"=>8,
      "reference_value"=>"asdf"}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"5684 Bay St",
   "ship_city"=>"Emeryville",
   "ship_state"=>"CA",
   "ship_code"=>"94608",
   "ship_phone"=>"1231231234",
   "ship_country"=>"US",
   "to_name"=>"Toronto Zoo",
   "to_addr1"=>"2000 Meadowvale Road",
   "to_state"=>"MB",
   "to_city"=>"Toronto",
   "to_code"=>"M1B5K7",
   "to_phone"=>"1231231234",
   "to_country"=>"CA",
   "test"=>true,
   "service"=>"P"}}

)

rocketshipit.request(
  {
  "carrier": "DHL",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "shipment_description": "Fashion goods",
    "customs_value": 45.99,
    "currency": "EUR",
    "trade_terms": "DAP",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8,
        "reference_value": "asdf"
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "5684 Bay St",
    "ship_city": "Emeryville",
    "ship_state": "CA",
    "ship_code": "94608",
    "ship_phone": "1231231234",
    "ship_country": "US",
    "to_name": "Toronto Zoo",
    "to_addr1": "2000 Meadowvale Road",
    "to_state": "MB",
    "to_city": "Toronto",
    "to_code": "M1B5K7",
    "to_phone": "1231231234",
    "to_country": "CA",
    "test": true,
    "service": "P"
  }
}
)

← All DHL examples