FedEx-Freight - Rates

Carrier
FedEx-Freight
Action
Rates
{
  "carrier": "FedEx-Freight",
  "action": "getallrates",
  "params": {
    "client_id": "your-client-id",
    "client_secret": "your-client-secret",
    "account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "packages": [
      {
        "description": "furniture",
        "sub_packaging_type": "PALLET",
        "weight": 200,
        "length": 48,
        "width": 40,
        "height": 36,
        "freight_class": "50",
        "pieces": 1
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_addr1": "1234 Main St",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "weight_unit": "LB",
    "length_unit": "IN",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx-Freight',
  'action' => 'getallrates',
  'params' => 
  array (
    'client_id' => 'your-client-id',
    'client_secret' => 'your-client-secret',
    'account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
    'packages' => 
    array (
      0 => 
      array (
        'description' => 'furniture',
        'sub_packaging_type' => 'PALLET',
        'weight' => 200,
        'length' => 48,
        'width' => 40,
        'height' => 36,
        'freight_class' => '50',
        'pieces' => 1,
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '1202 Chalet Ln',
    'ship_city' => 'Harrison',
    'ship_state' => 'AR',
    'ship_code' => '72601',
    'ship_country' => 'US',
    'to_addr1' => '1234 Main St',
    'to_city' => 'Akron',
    'to_state' => 'OH',
    'to_code' => '44333',
    'to_country' => 'US',
    'weight_unit' => 'LB',
    'length_unit' => 'IN',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'FedEx-Freight',
 'params': {'account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
            'client_id': 'your-client-id',
            'client_secret': 'your-client-secret',
            'length_unit': 'IN',
            'packages': [{'description': 'furniture',
                          'freight_class': '50',
                          'height': 36,
                          'length': 48,
                          'pieces': 1,
                          'sub_packaging_type': 'PALLET',
                          'weight': 200,
                          'width': 40}],
            'ship_addr1': '1202 Chalet Ln',
            'ship_city': 'Harrison',
            'ship_code': '72601',
            'ship_country': 'US',
            'ship_state': 'AR',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '1234 Main St',
            'to_city': 'Akron',
            'to_code': '44333',
            'to_country': 'US',
            'to_state': 'OH',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx-Freight",
 "action"=>"getallrates",
 "params"=>
  {"client_id"=>"your-client-id",
   "client_secret"=>"your-client-secret",
   "account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
   "packages"=>
    [{"description"=>"furniture",
      "sub_packaging_type"=>"PALLET",
      "weight"=>200,
      "length"=>48,
      "width"=>40,
      "height"=>36,
      "freight_class"=>"50",
      "pieces"=>1}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"1202 Chalet Ln",
   "ship_city"=>"Harrison",
   "ship_state"=>"AR",
   "ship_code"=>"72601",
   "ship_country"=>"US",
   "to_addr1"=>"1234 Main St",
   "to_city"=>"Akron",
   "to_state"=>"OH",
   "to_code"=>"44333",
   "to_country"=>"US",
   "weight_unit"=>"LB",
   "length_unit"=>"IN",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx-Freight",
  "action": "getallrates",
  "params": {
    "client_id": "your-client-id",
    "client_secret": "your-client-secret",
    "account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
    "packages": [
      {
        "description": "furniture",
        "sub_packaging_type": "PALLET",
        "weight": 200,
        "length": 48,
        "width": 40,
        "height": 36,
        "freight_class": "50",
        "pieces": 1
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_addr1": "1234 Main St",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "weight_unit": "LB",
    "length_unit": "IN",
    "test": true
  }
}
)

← All FedEx-Freight examples