FedEx - Rates SmartPost

Carrier
FedEx
Action
Rates SmartPost
{
  "carrier": "FedEx",
  "action": "getallrates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 2
      }
    ],
    "customs": [],
    "service": "SMART_POST",
    "smart_post_indicia": "PARCEL_SELECT",
    "smart_post_hub_id": "5531",
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_country": "US",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "REGULAR_PICKUP",
    "test": true,
    "negotiated_rates": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'FedEx',
  'action' => 'getallrates',
  'params' => 
  array (
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'meter_number' => 'YOUR_METER_NUMBER',
    'key' => 'YOUR_KEY',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 2,
      ),
    ),
    'customs' => 
    array (
    ),
    'service' => 'SMART_POST',
    'smart_post_indicia' => 'PARCEL_SELECT',
    'smart_post_hub_id' => '5531',
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_country' => 'US',
    'to_country' => 'US',
    'to_state' => 'CA',
    'to_code' => '90210',
    'weight_unit' => 'LB',
    'packaging_type' => 'YOUR_PACKAGING',
    'dropoff_type' => 'REGULAR_PICKUP',
    'test' => true,
    'negotiated_rates' => true,
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'FedEx',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'customs': [],
            'dropoff_type': 'REGULAR_PICKUP',
            'key': 'YOUR_KEY',
            'meter_number': 'YOUR_METER_NUMBER',
            'negotiated_rates': True,
            'packages': [{'weight': 2}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'service': 'SMART_POST',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_country': 'US',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'smart_post_hub_id': '5531',
            'smart_post_indicia': 'PARCEL_SELECT',
            'test': True,
            'to_code': '90210',
            'to_country': 'US',
            'to_state': 'CA',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"FedEx",
 "action"=>"getallrates",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT_NUMBER",
   "meter_number"=>"YOUR_METER_NUMBER",
   "key"=>"YOUR_KEY",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>2}],
   "customs"=>[],
   "service"=>"SMART_POST",
   "smart_post_indicia"=>"PARCEL_SELECT",
   "smart_post_hub_id"=>"5531",
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_country"=>"US",
   "to_country"=>"US",
   "to_state"=>"CA",
   "to_code"=>"90210",
   "weight_unit"=>"LB",
   "packaging_type"=>"YOUR_PACKAGING",
   "dropoff_type"=>"REGULAR_PICKUP",
   "test"=>true,
   "negotiated_rates"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx",
  "action": "getallrates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 2
      }
    ],
    "customs": [],
    "service": "SMART_POST",
    "smart_post_indicia": "PARCEL_SELECT",
    "smart_post_hub_id": "5531",
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_country": "US",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "REGULAR_PICKUP",
    "test": true,
    "negotiated_rates": true
  }
}
)

← All FedEx examples