{
"carrier": "FedEx-REST",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 2
}
],
"customs": [],
"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",
"test": true,
"dropoff_type": "USE_SCHEDULED_PICKUP",
"service": "FEDEX_EXPRESS_SAVER",
"packaging_type": "FEDEX_SMALL_BOX",
"fedex_one_rate": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx-REST',
'action' => 'GetAllRates',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 2,
),
),
'customs' =>
array (
),
'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',
'test' => true,
'dropoff_type' => 'USE_SCHEDULED_PICKUP',
'service' => 'FEDEX_EXPRESS_SAVER',
'packaging_type' => 'FEDEX_SMALL_BOX',
'fedex_one_rate' => true,
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'FedEx-REST',
'params': {'customs': [],
'dropoff_type': 'USE_SCHEDULED_PICKUP',
'fedex_one_rate': True,
'packages': [{'weight': 2}],
'packaging_type': 'FEDEX_SMALL_BOX',
'service': 'FEDEX_EXPRESS_SAVER',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_country': 'US',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_code': '90210',
'to_country': 'US',
'to_state': 'CA',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"FedEx-REST",
"action"=>"GetAllRates",
"params"=>
{"packages"=>[{"weight"=>2}],
"customs"=>[],
"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",
"test"=>true,
"dropoff_type"=>"USE_SCHEDULED_PICKUP",
"service"=>"FEDEX_EXPRESS_SAVER",
"packaging_type"=>"FEDEX_SMALL_BOX",
"fedex_one_rate"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx-REST",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 2
}
],
"customs": [],
"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",
"test": true,
"dropoff_type": "USE_SCHEDULED_PICKUP",
"service": "FEDEX_EXPRESS_SAVER",
"packaging_type": "FEDEX_SMALL_BOX",
"fedex_one_rate": true
}
}
)