DHL - Rates International

Carrier: DHL
Action: Rates International
Description: Example implementation for DHL Rates International
{
    "carrier": "DHL",
    "action": "GetAllRates",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "customs_value": 100.20,
      "currency": "EUR",
      "packages": [
        {
          "weight": 0.5,
          "length": 15.0,
          "width": 10.0,
          "height": 4.0
        }
      ],
      "weight_unit": "KG",
      "length_unit": "CM",
      "shipper": "Tom1again SRL",
      "ship_addr1": "Dieselstrasse 5B",
      "ship_code": "61476",
      "ship_city": "Kronberg",
      "ship_country": "DE",
      "to_country": "RO",
      "to_code": "920004",
      "test": true
    }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'DHL',
  'action' => 'GetAllRates',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'customs_value' => 100.2,
    'currency' => 'EUR',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 0.5,
        'length' => 15.0,
        'width' => 10.0,
        'height' => 4.0,
      ),
    ),
    'weight_unit' => 'KG',
    'length_unit' => 'CM',
    'shipper' => 'Tom1again SRL',
    'ship_addr1' => 'Dieselstrasse 5B',
    'ship_code' => '61476',
    'ship_city' => 'Kronberg',
    'ship_country' => 'DE',
    'to_country' => 'RO',
    'to_code' => '920004',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'GetAllRates',
 'carrier': 'DHL',
 'params': {'currency': 'EUR',
            'customs_value': 100.2,
            'length_unit': 'CM',
            'packages': [{'height': 4.0,
                          'length': 15.0,
                          'weight': 0.5,
                          'width': 10.0}],
            'password': 'YOUR_PASSWORD',
            'ship_addr1': 'Dieselstrasse 5B',
            'ship_city': 'Kronberg',
            'ship_code': '61476',
            'ship_country': 'DE',
            'shipper': 'Tom1again SRL',
            'test': True,
            'to_code': '920004',
            'to_country': 'RO',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'KG'}}

)

rs.request(
  {"carrier"=>"DHL",
 "action"=>"GetAllRates",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "customs_value"=>100.2,
   "currency"=>"EUR",
   "packages"=>[{"weight"=>0.5, "length"=>15.0, "width"=>10.0, "height"=>4.0}],
   "weight_unit"=>"KG",
   "length_unit"=>"CM",
   "shipper"=>"Tom1again SRL",
   "ship_addr1"=>"Dieselstrasse 5B",
   "ship_code"=>"61476",
   "ship_city"=>"Kronberg",
   "ship_country"=>"DE",
   "to_country"=>"RO",
   "to_code"=>"920004",
   "test"=>true}}

)

rocketshipit.request(
  {
    "carrier": "DHL",
    "action": "GetAllRates",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "customs_value": 100.20,
      "currency": "EUR",
      "packages": [
        {
          "weight": 0.5,
          "length": 15.0,
          "width": 10.0,
          "height": 4.0
        }
      ],
      "weight_unit": "KG",
      "length_unit": "CM",
      "shipper": "Tom1again SRL",
      "ship_addr1": "Dieselstrasse 5B",
      "ship_code": "61476",
      "ship_city": "Kronberg",
      "ship_country": "DE",
      "to_country": "RO",
      "to_code": "920004",
      "test": true
    }
}
)
← Back to All Examples

Other DHL Examples

CreateManifest GlobalMail
Example implementation for DHL CreateManifest GlobalMail
GlobalMail International
Example implementation for DHL GlobalMail International
Label
Example implementation for DHL Label
Label Email Notifications
Example implementation for DHL Label Email Notifications
Label GlobalMail
Example implementation for DHL Label GlobalMail
Label International
Example implementation for DHL Label International
Label International CI
Example implementation for DHL Label International CI
Label International CI Duties and Taxes Paid
Example implementation for DHL Label International CI Duties and Taxes Paid
Label International EOR VAT for EU ICS2 and VAT22
Example implementation for DHL Label International EOR VAT for EU ICS2 and VAT22
Label International Local Product Code
Example implementation for DHL Label International Local Product Code
Label Third Party Billing
Example implementation for DHL Label Third Party Billing
Label with Insurance
Example implementation for DHL Label with Insurance
Label with Waybill Doc
Example implementation for DHL Label with Waybill Doc
Label with reference
Example implementation for DHL Label with reference
Pickup Cancel
Example implementation for DHL Pickup Cancel
Pickup Schedule
Example implementation for DHL Pickup Schedule
Rates
Example implementation for DHL Rates
Rates Multi-package
Example implementation for DHL Rates Multi-package
Rates with Insurance
Example implementation for DHL Rates with Insurance
Time in Transit
Example implementation for DHL Time in Transit
Tracking
Example implementation for DHL Tracking