UPS-REST - Time in Transit International

Carrier
UPS-REST
Action
Time in Transit International
{
  "carrier": "UPS-REST",
  "action": "timeintransit",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "ship_city": "Emeryville",
    "ship_code": "94608",
    "ship_country": "US",
    "to_code": "M1B5K7",
    "to_country": "CA",
    "documents_only": true,
    "num_of_packages": 4,
    "weight": 5,
    "weight_unit": "LBS",
    "monetary_value": 20,
    "currency": "USD"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'UPS-REST',
  'action' => 'timeintransit',
  'params' => 
  array (
    'test' => true,
    'key' => 'your-key-from-authenticate-request',
    'ship_city' => 'Emeryville',
    'ship_code' => '94608',
    'ship_country' => 'US',
    'to_code' => 'M1B5K7',
    'to_country' => 'CA',
    'documents_only' => true,
    'num_of_packages' => 4,
    'weight' => 5,
    'weight_unit' => 'LBS',
    'monetary_value' => 20,
    'currency' => 'USD',
  ),
)
);

rs.request(
  {'action': 'timeintransit',
 'carrier': 'UPS-REST',
 'params': {'currency': 'USD',
            'documents_only': True,
            'key': 'your-key-from-authenticate-request',
            'monetary_value': 20,
            'num_of_packages': 4,
            'ship_city': 'Emeryville',
            'ship_code': '94608',
            'ship_country': 'US',
            'test': True,
            'to_code': 'M1B5K7',
            'to_country': 'CA',
            'weight': 5,
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"UPS-REST",
 "action"=>"timeintransit",
 "params"=>
  {"test"=>true,
   "key"=>"your-key-from-authenticate-request",
   "ship_city"=>"Emeryville",
   "ship_code"=>"94608",
   "ship_country"=>"US",
   "to_code"=>"M1B5K7",
   "to_country"=>"CA",
   "documents_only"=>true,
   "num_of_packages"=>4,
   "weight"=>5,
   "weight_unit"=>"LBS",
   "monetary_value"=>20,
   "currency"=>"USD"}}

)

rocketshipit.request(
  {
  "carrier": "UPS-REST",
  "action": "timeintransit",
  "params": {
    "test": true,
    "key": "your-key-from-authenticate-request",
    "ship_city": "Emeryville",
    "ship_code": "94608",
    "ship_country": "US",
    "to_code": "M1B5K7",
    "to_country": "CA",
    "documents_only": true,
    "num_of_packages": 4,
    "weight": 5,
    "weight_unit": "LBS",
    "monetary_value": 20,
    "currency": "USD"
  }
}
)

← All UPS-REST examples