{
"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
}
}
)