{
"carrier": "UPS-REST",
"action": "LandedCost",
"params": {
"key": "your-key-from-authenticate-request",
"currency": "USD",
"to_country": "CA",
"ship_country": "US",
"customs": [
{
"customs_description": "Rubber tubes",
"customs_hs_tariff": "400932",
"customs_quantity": 24,
"customs_quantity_units": "Each",
"customs_value": 125,
"customs_origin_country": "US"
}
],
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'UPS-REST',
'action' => 'LandedCost',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'currency' => 'USD',
'to_country' => 'CA',
'ship_country' => 'US',
'customs' =>
array (
0 =>
array (
'customs_description' => 'Rubber tubes',
'customs_hs_tariff' => '400932',
'customs_quantity' => 24,
'customs_quantity_units' => 'Each',
'customs_value' => 125,
'customs_origin_country' => 'US',
),
),
'test' => true,
),
)
);
rs.request(
{'action': 'LandedCost',
'carrier': 'UPS-REST',
'params': {'currency': 'USD',
'customs': [{'customs_description': 'Rubber tubes',
'customs_hs_tariff': '400932',
'customs_origin_country': 'US',
'customs_quantity': 24,
'customs_quantity_units': 'Each',
'customs_value': 125}],
'key': 'your-key-from-authenticate-request',
'ship_country': 'US',
'test': True,
'to_country': 'CA'}}
)
rs.request(
{"carrier"=>"UPS-REST",
"action"=>"LandedCost",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"currency"=>"USD",
"to_country"=>"CA",
"ship_country"=>"US",
"customs"=>
[{"customs_description"=>"Rubber tubes",
"customs_hs_tariff"=>"400932",
"customs_quantity"=>24,
"customs_quantity_units"=>"Each",
"customs_value"=>125,
"customs_origin_country"=>"US"}],
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "UPS-REST",
"action": "LandedCost",
"params": {
"key": "your-key-from-authenticate-request",
"currency": "USD",
"to_country": "CA",
"ship_country": "US",
"customs": [
{
"customs_description": "Rubber tubes",
"customs_hs_tariff": "400932",
"customs_quantity": 24,
"customs_quantity_units": "Each",
"customs_value": 125,
"customs_origin_country": "US"
}
],
"test": true
}
}
)