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