{
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 200,
"freight_class": "50"
}
],
"customs": [],
"lift_gate_required": true,
"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',
'action' => 'GetAllRates',
'params' =>
array (
'freight_account_number' => 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'meter_number' => 'YOUR_METER_NUMBER',
'key' => 'YOUR_KEY',
'password' => 'YOUR_PASSWORD',
'packages' =>
array (
0 =>
array (
'weight' => 200,
'freight_class' => '50',
),
),
'customs' =>
array (
),
'lift_gate_required' => true,
'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',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'customs': [],
'freight_account_number': 'YOUR_FREIGHT_ACCOUNT_NUMBER',
'key': 'YOUR_KEY',
'lift_gate_required': True,
'meter_number': 'YOUR_METER_NUMBER',
'packages': [{'freight_class': '50', 'weight': 200}],
'password': 'YOUR_PASSWORD',
'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",
"action"=>"GetAllRates",
"params"=>
{"freight_account_number"=>"YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"packages"=>[{"weight"=>200, "freight_class"=>"50"}],
"customs"=>[],
"lift_gate_required"=>true,
"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",
"action": "GetAllRates",
"params": {
"freight_account_number": "YOUR_FREIGHT_ACCOUNT_NUMBER",
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"packages": [
{
"weight": 200,
"freight_class": "50"
}
],
"customs": [],
"lift_gate_required": true,
"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
}
}
)