DHL - Pickup Schedule

Carrier
DHL
Action
Pickup Schedule
{
  "carrier": "DHL",
  "action": "createpickup",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "803921577",
    "packages": [
      {
        "weight": 5,
        "width": 10,
        "length": 10,
        "height": 10
      }
    ],
    "shipper": "Acme Inc.",
    "ship_contact": "John Doe",
    "ship_country": "US",
    "ship_phone": "123-123-1234",
    "ship_city": "San Francisco",
    "ship_code": "94115",
    "ship_addr1": "101 Main st",
    "to_code": "90210",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'createpickup',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => '803921577',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'width' => 10,
        'length' => 10,
        'height' => 10,
      ),
    ),
    'shipper' => 'Acme Inc.',
    'ship_contact' => 'John Doe',
    'ship_country' => 'US',
    'ship_phone' => '123-123-1234',
    'ship_city' => 'San Francisco',
    'ship_code' => '94115',
    'ship_addr1' => '101 Main st',
    'to_code' => '90210',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'createpickup',
 'carrier': 'DHL',
 'params': {'account_number': '803921577',
            'packages': [{'height': 10,
                          'length': 10,
                          'weight': 5,
                          'width': 10}],
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '101 Main st',
            'ship_city': 'San Francisco',
            'ship_code': '94115',
            'ship_contact': 'John Doe',
            'ship_country': 'US',
            'ship_phone': '123-123-1234',
            'shipper': 'Acme Inc.',
            'test': True,
            'to_code': '90210',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"createpickup",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"803921577",
   "packages"=>[{"weight"=>5, "width"=>10, "length"=>10, "height"=>10}],
   "shipper"=>"Acme Inc.",
   "ship_contact"=>"John Doe",
   "ship_country"=>"US",
   "ship_phone"=>"123-123-1234",
   "ship_city"=>"San Francisco",
   "ship_code"=>"94115",
   "ship_addr1"=>"101 Main st",
   "to_code"=>"90210",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "DHL",
  "action": "createpickup",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "803921577",
    "packages": [
      {
        "weight": 5,
        "width": 10,
        "length": 10,
        "height": 10
      }
    ],
    "shipper": "Acme Inc.",
    "ship_contact": "John Doe",
    "ship_country": "US",
    "ship_phone": "123-123-1234",
    "ship_city": "San Francisco",
    "ship_code": "94115",
    "ship_addr1": "101 Main st",
    "to_code": "90210",
    "test": true
  }
}
)

← All DHL examples