UPS-REST - Landed Cost

Carrier
UPS-REST
Action
Landed Cost
{
  "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
  }
}
)

← All UPS-REST examples