{
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true,
"shipper": "d",
"ship_addr1": "1452 56TH ST",
"ship_city": "BROOKLYN",
"ship_state": "NY",
"ship_code": "11219-4682",
"ship_phone": "1212121212",
"ship_country": "US",
"to_code": "28365",
"to_country": "US",
"packages": [
{
"weight": 10,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 450,
"insured_currency": "USD",
"dry_ice": {
"weight": 1,
"medical_use": false
},
"signature_type": "DIRECT"
}
],
"debug": 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',
'test' => true,
'shipper' => 'd',
'ship_addr1' => '1452 56TH ST',
'ship_city' => 'BROOKLYN',
'ship_state' => 'NY',
'ship_code' => '11219-4682',
'ship_phone' => '1212121212',
'ship_country' => 'US',
'to_code' => '28365',
'to_country' => 'US',
'packages' =>
array (
0 =>
array (
'weight' => 10,
'length' => 5,
'width' => 5,
'height' => 5,
'insured_value' => 450,
'insured_currency' => 'USD',
'dry_ice' =>
array (
'weight' => 1,
'medical_use' => false,
),
'signature_type' => 'DIRECT',
),
),
'debug' => true,
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'FedEx',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'debug': True,
'key': 'YOUR_KEY',
'meter_number': 'YOUR_METER_NUMBER',
'packages': [{'dry_ice': {'medical_use': False, 'weight': 1},
'height': 5,
'insured_currency': 'USD',
'insured_value': 450,
'length': 5,
'signature_type': 'DIRECT',
'weight': 10,
'width': 5}],
'password': 'YOUR_PASSWORD',
'ship_addr1': '1452 56TH ST',
'ship_city': 'BROOKLYN',
'ship_code': '11219-4682',
'ship_country': 'US',
'ship_phone': '1212121212',
'ship_state': 'NY',
'shipper': 'd',
'test': True,
'to_code': '28365',
'to_country': 'US'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"GetAllRates",
"params"=>
{"account_number"=>"YOUR_ACCOUNT_NUMBER",
"meter_number"=>"YOUR_METER_NUMBER",
"key"=>"YOUR_KEY",
"password"=>"YOUR_PASSWORD",
"test"=>true,
"shipper"=>"d",
"ship_addr1"=>"1452 56TH ST",
"ship_city"=>"BROOKLYN",
"ship_state"=>"NY",
"ship_code"=>"11219-4682",
"ship_phone"=>"1212121212",
"ship_country"=>"US",
"to_code"=>"28365",
"to_country"=>"US",
"packages"=>
[{"weight"=>10,
"length"=>5,
"width"=>5,
"height"=>5,
"insured_value"=>450,
"insured_currency"=>"USD",
"dry_ice"=>{"weight"=>1, "medical_use"=>false},
"signature_type"=>"DIRECT"}],
"debug"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"account_number": "YOUR_ACCOUNT_NUMBER",
"meter_number": "YOUR_METER_NUMBER",
"key": "YOUR_KEY",
"password": "YOUR_PASSWORD",
"test": true,
"shipper": "d",
"ship_addr1": "1452 56TH ST",
"ship_city": "BROOKLYN",
"ship_state": "NY",
"ship_code": "11219-4682",
"ship_phone": "1212121212",
"ship_country": "US",
"to_code": "28365",
"to_country": "US",
"packages": [
{
"weight": 10,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 450,
"insured_currency": "USD",
"dry_ice": {
"weight": 1,
"medical_use": false
},
"signature_type": "DIRECT"
}
],
"debug": true
}
}
)