USPS - Rate International

Carrier
USPS
Action
Rate International
{
  "carrier": "USPS",
  "action": "getallrates",
  "params": {
    "packages": [
      {
        "weight": 6,
        "length": 5,
        "width": 3,
        "height": 10
      }
    ],
    "ship_code": "59759",
    "to_country": "AU"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'USPS',
  'action' => 'getallrates',
  'params' => 
  array (
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 6,
        'length' => 5,
        'width' => 3,
        'height' => 10,
      ),
    ),
    'ship_code' => '59759',
    'to_country' => 'AU',
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'USPS',
 'params': {'packages': [{'height': 10, 'length': 5, 'weight': 6, 'width': 3}],
            'ship_code': '59759',
            'to_country': 'AU'}}

)

rs.request(
  {"carrier"=>"USPS",
 "action"=>"getallrates",
 "params"=>
  {"packages"=>[{"weight"=>6, "length"=>5, "width"=>3, "height"=>10}],
   "ship_code"=>"59759",
   "to_country"=>"AU"}}

)

rocketshipit.request(
  {
  "carrier": "USPS",
  "action": "getallrates",
  "params": {
    "packages": [
      {
        "weight": 6,
        "length": 5,
        "width": 3,
        "height": 10
      }
    ],
    "ship_code": "59759",
    "to_country": "AU"
  }
}
)

← All USPS examples