DHL - Label GlobalMail

Carrier
DHL
Action
Label GlobalMail
{
  "carrier": "DHL-GlobalMail",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_PICKUP_ID",
	"key": "YOUR_CLIENT_ID",
    "service": "81",
    "packages": [
      {
        "weight": 0.3
      }
    ],
    "shipper": "Mr. Returns",
    "ship_addr1": "1500 South Point Dr.",
    "ship_city": "Forrest Park",
    "ship_state": "GA",
    "ship_code": "30297",
    "ship_phone": "123-123-1234",
    "to_name": "Joe Bloggs",
    "to_addr1": "1234 Main Street",
    "to_state": "GA",
    "to_city": "Anytown",
    "to_code": "30297",
    "to_phone": "123-123-1234"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL-GlobalMail',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_PICKUP_ID',
    'key' => 'YOUR_CLIENT_ID',
    'service' => '81',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 0.3,
      ),
    ),
    'shipper' => 'Mr. Returns',
    'ship_addr1' => '1500 South Point Dr.',
    'ship_city' => 'Forrest Park',
    'ship_state' => 'GA',
    'ship_code' => '30297',
    'ship_phone' => '123-123-1234',
    'to_name' => 'Joe Bloggs',
    'to_addr1' => '1234 Main Street',
    'to_state' => 'GA',
    'to_city' => 'Anytown',
    'to_code' => '30297',
    'to_phone' => '123-123-1234',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'DHL-GlobalMail',
 'params': {'account_number': 'YOUR_ACCOUNT_PICKUP_ID',
            'key': 'YOUR_CLIENT_ID',
            'packages': [{'weight': 0.3}],
            'password': 'YOUR_PASSWORD',
            'service': '81',
            'ship_addr1': '1500 South Point Dr.',
            'ship_city': 'Forrest Park',
            'ship_code': '30297',
            'ship_phone': '123-123-1234',
            'ship_state': 'GA',
            'shipper': 'Mr. Returns',
            'to_addr1': '1234 Main Street',
            'to_city': 'Anytown',
            'to_code': '30297',
            'to_name': 'Joe Bloggs',
            'to_phone': '123-123-1234',
            'to_state': 'GA',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"DHL-GlobalMail",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_PICKUP_ID",
   "key"=>"YOUR_CLIENT_ID",
   "service"=>"81",
   "packages"=>[{"weight"=>0.3}],
   "shipper"=>"Mr. Returns",
   "ship_addr1"=>"1500 South Point Dr.",
   "ship_city"=>"Forrest Park",
   "ship_state"=>"GA",
   "ship_code"=>"30297",
   "ship_phone"=>"123-123-1234",
   "to_name"=>"Joe Bloggs",
   "to_addr1"=>"1234 Main Street",
   "to_state"=>"GA",
   "to_city"=>"Anytown",
   "to_code"=>"30297",
   "to_phone"=>"123-123-1234"}}

)

rocketshipit.request(
  {
  "carrier": "DHL-GlobalMail",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_PICKUP_ID",
	"key": "YOUR_CLIENT_ID",
    "service": "81",
    "packages": [
      {
        "weight": 0.3
      }
    ],
    "shipper": "Mr. Returns",
    "ship_addr1": "1500 South Point Dr.",
    "ship_city": "Forrest Park",
    "ship_state": "GA",
    "ship_code": "30297",
    "ship_phone": "123-123-1234",
    "to_name": "Joe Bloggs",
    "to_addr1": "1234 Main Street",
    "to_state": "GA",
    "to_city": "Anytown",
    "to_code": "30297",
    "to_phone": "123-123-1234"
  }
}
)

← All DHL examples