DHL - Label Email Notifications

Carrier
DHL
Action
Label Email Notifications
{
    "carrier": "DHL",
    "action": "submitshipment",
    "params": {
      "account_number": "803921577",
      "notify": [
        {
          "email": "[email protected]"
        }
      ],
      "packages": [
        {
          "weight": 4,
          "length": 7,
          "width": 4,
          "height": 4
        }
      ],
      "service": "D",
      "shipper": "RocketShipIt",
      "ship_addr1": "1401 Park Ave",
      "ship_city": "Emeryville",
      "ship_state": "CA",
      "ship_code": "94608",
      "ship_phone": "1231231234",
      "ship_country": "US",
      "to_name": "John Doe",
      "to_addr1": "940 Presidio Ave",
      "to_addr2": "#103",
      "to_state": "CA",
      "to_city": "San Francisco",
      "to_code": "94115",
      "to_country": "US",
      "image_type": "PDF",
      "test": true
    }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'submitshipment',
  'params' => 
  array (
    'account_number' => '803921577',
    'notify' => 
    array (
      0 => 
      array (
        'email' => '[email protected]',
      ),
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 4,
        'length' => 7,
        'width' => 4,
        'height' => 4,
      ),
    ),
    'service' => 'D',
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '1401 Park Ave',
    'ship_city' => 'Emeryville',
    'ship_state' => 'CA',
    'ship_code' => '94608',
    'ship_phone' => '1231231234',
    'ship_country' => 'US',
    'to_name' => 'John Doe',
    'to_addr1' => '940 Presidio Ave',
    'to_addr2' => '#103',
    'to_state' => 'CA',
    'to_city' => 'San Francisco',
    'to_code' => '94115',
    'to_country' => 'US',
    'image_type' => 'PDF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'DHL',
 'params': {'account_number': '803921577',
            'image_type': 'PDF',
            'notify': [{'email': '[email protected]'}],
            'packages': [{'height': 4, 'length': 7, 'weight': 4, 'width': 4}],
            'service': 'D',
            'ship_addr1': '1401 Park Ave',
            'ship_city': 'Emeryville',
            'ship_code': '94608',
            'ship_country': 'US',
            'ship_phone': '1231231234',
            'ship_state': 'CA',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '940 Presidio Ave',
            'to_addr2': '#103',
            'to_city': 'San Francisco',
            'to_code': '94115',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"submitshipment",
 "params"=>
  {"account_number"=>"803921577",
   "notify"=>[{"email"=>"[email protected]"}],
   "packages"=>[{"weight"=>4, "length"=>7, "width"=>4, "height"=>4}],
   "service"=>"D",
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"1401 Park Ave",
   "ship_city"=>"Emeryville",
   "ship_state"=>"CA",
   "ship_code"=>"94608",
   "ship_phone"=>"1231231234",
   "ship_country"=>"US",
   "to_name"=>"John Doe",
   "to_addr1"=>"940 Presidio Ave",
   "to_addr2"=>"#103",
   "to_state"=>"CA",
   "to_city"=>"San Francisco",
   "to_code"=>"94115",
   "to_country"=>"US",
   "image_type"=>"PDF",
   "test"=>true}}

)

rocketshipit.request(
  {
    "carrier": "DHL",
    "action": "submitshipment",
    "params": {
      "account_number": "803921577",
      "notify": [
        {
          "email": "[email protected]"
        }
      ],
      "packages": [
        {
          "weight": 4,
          "length": 7,
          "width": 4,
          "height": 4
        }
      ],
      "service": "D",
      "shipper": "RocketShipIt",
      "ship_addr1": "1401 Park Ave",
      "ship_city": "Emeryville",
      "ship_state": "CA",
      "ship_code": "94608",
      "ship_phone": "1231231234",
      "ship_country": "US",
      "to_name": "John Doe",
      "to_addr1": "940 Presidio Ave",
      "to_addr2": "#103",
      "to_state": "CA",
      "to_city": "San Francisco",
      "to_code": "94115",
      "to_country": "US",
      "image_type": "PDF",
      "test": true
    }
}
)

← All DHL examples