FedEx-REST - Freight Rating

Carrier
FedEx-REST
Action
Freight Rating
{
  "carrier": "FedEx-REST",
  "action": "getallrates",
  "params": {
    "key": "your-key-from-authenticate-request",
    "freight_account_number": "abc123",
    "packages": [
      {
        "description": "furniture",
        "sub_packaging_type": "PALLET",
        "weight": 200,
        "freight_class": "50"
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_country": "US",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "weight_unit": "LB",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-REST',
  'action' => 'getallrates',
  'params' => 
  array (
    'key' => 'your-key-from-authenticate-request',
    'freight_account_number' => 'abc123',
    'packages' => 
    array (
      0 => 
      array (
        'description' => 'furniture',
        'sub_packaging_type' => 'PALLET',
        'weight' => 200,
        'freight_class' => '50',
      ),
    ),
    'customs' => 
    array (
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '1202 Chalet Ln',
    'ship_addr2' => 'Do Not Delete - Test Account',
    'ship_city' => 'Harrison',
    'ship_state' => 'AR',
    'ship_code' => '72601',
    'ship_country' => 'US',
    'to_country' => 'US',
    'to_city' => 'Akron',
    'to_state' => 'OH',
    'to_code' => '44333',
    'weight_unit' => 'LB',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'FedEx-REST',
 'params': {'customs': [],
            'freight_account_number': 'abc123',
            'key': 'your-key-from-authenticate-request',
            'packages': [{'description': 'furniture',
                          'freight_class': '50',
                          'sub_packaging_type': 'PALLET',
                          'weight': 200}],
            'ship_addr1': '1202 Chalet Ln',
            'ship_addr2': 'Do Not Delete - Test Account',
            'ship_city': 'Harrison',
            'ship_code': '72601',
            'ship_country': 'US',
            'ship_state': 'AR',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_city': 'Akron',
            'to_code': '44333',
            'to_country': 'US',
            'to_state': 'OH',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-REST",
 "action"=>"getallrates",
 "params"=>
  {"key"=>"your-key-from-authenticate-request",
   "freight_account_number"=>"abc123",
   "packages"=>
    [{"description"=>"furniture",
      "sub_packaging_type"=>"PALLET",
      "weight"=>200,
      "freight_class"=>"50"}],
   "customs"=>[],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"1202 Chalet Ln",
   "ship_addr2"=>"Do Not Delete - Test Account",
   "ship_city"=>"Harrison",
   "ship_state"=>"AR",
   "ship_code"=>"72601",
   "ship_country"=>"US",
   "to_country"=>"US",
   "to_city"=>"Akron",
   "to_state"=>"OH",
   "to_code"=>"44333",
   "weight_unit"=>"LB",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-REST",
  "action": "getallrates",
  "params": {
    "key": "your-key-from-authenticate-request",
    "freight_account_number": "abc123",
    "packages": [
      {
        "description": "furniture",
        "sub_packaging_type": "PALLET",
        "weight": 200,
        "freight_class": "50"
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_country": "US",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "weight_unit": "LB",
    "test": true
  }
}
)

← All FedEx-REST examples