FedEx - Rate COD

Carrier
FedEx
Action
Rate COD
{
  "carrier": "FedEx",
  "action": "getallrates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "cod_fund_type": "PERSONAL_CHECK",
    "cod_amount": 774.60,
    "currency": "USD",
    "packages": [
      {
        "weight": 9,
        "width": 20,
        "height": 6,
        "length": 30
      }
    ],
    "customs": [],
    "shipper": "My Company",
    "ship_city": "Vancouver",
    "ship_state": "WA",
    "ship_code": "98685",
    "ship_country": "US",
    "to_state": "CA",
    "to_country": "US",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "REGULAR_PICKUP",
    "test": 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',
    'cod_fund_type' => 'PERSONAL_CHECK',
    'cod_amount' => 774.6,
    'currency' => 'USD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 9,
        'width' => 20,
        'height' => 6,
        'length' => 30,
      ),
    ),
    'customs' => 
    array (
    ),
    'shipper' => 'My Company',
    'ship_city' => 'Vancouver',
    'ship_state' => 'WA',
    'ship_code' => '98685',
    'ship_country' => 'US',
    'to_state' => 'CA',
    'to_country' => 'US',
    'to_code' => '90210',
    'weight_unit' => 'LB',
    'packaging_type' => 'YOUR_PACKAGING',
    'dropoff_type' => 'REGULAR_PICKUP',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'getallrates',
 'carrier': 'FedEx',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'cod_amount': 774.6,
            'cod_fund_type': 'PERSONAL_CHECK',
            'currency': 'USD',
            'customs': [],
            'dropoff_type': 'REGULAR_PICKUP',
            'key': 'YOUR_KEY',
            'meter_number': 'YOUR_METER_NUMBER',
            'packages': [{'height': 6, 'length': 30, 'weight': 9, 'width': 20}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'ship_city': 'Vancouver',
            'ship_code': '98685',
            'ship_country': 'US',
            'ship_state': 'WA',
            'shipper': 'My Company',
            '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",
   "cod_fund_type"=>"PERSONAL_CHECK",
   "cod_amount"=>774.6,
   "currency"=>"USD",
   "packages"=>[{"weight"=>9, "width"=>20, "height"=>6, "length"=>30}],
   "customs"=>[],
   "shipper"=>"My Company",
   "ship_city"=>"Vancouver",
   "ship_state"=>"WA",
   "ship_code"=>"98685",
   "ship_country"=>"US",
   "to_state"=>"CA",
   "to_country"=>"US",
   "to_code"=>"90210",
   "weight_unit"=>"LB",
   "packaging_type"=>"YOUR_PACKAGING",
   "dropoff_type"=>"REGULAR_PICKUP",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "FedEx",
  "action": "getallrates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "meter_number": "YOUR_METER_NUMBER",
    "key": "YOUR_KEY",
    "password": "YOUR_PASSWORD",
    "cod_fund_type": "PERSONAL_CHECK",
    "cod_amount": 774.60,
    "currency": "USD",
    "packages": [
      {
        "weight": 9,
        "width": 20,
        "height": 6,
        "length": 30
      }
    ],
    "customs": [],
    "shipper": "My Company",
    "ship_city": "Vancouver",
    "ship_state": "WA",
    "ship_code": "98685",
    "ship_country": "US",
    "to_state": "CA",
    "to_country": "US",
    "to_code": "90210",
    "weight_unit": "LB",
    "packaging_type": "YOUR_PACKAGING",
    "dropoff_type": "REGULAR_PICKUP",
    "test": true
  }
}
)

← All FedEx examples