{
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 2,
"insured_value": 200
}
],
"ship_date": "2042-09-15T08:00:00-00:00",
"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",
"length_unit": "IN",
"packaging_type": "YOUR_PACKAGING",
"dropoff_type": "REGULAR_PICKUP",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx',
'action' => 'GetAllRates',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 2,
'insured_value' => 200,
),
),
'ship_date' => '2042-09-15T08:00:00-00:00',
'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',
'length_unit' => 'IN',
'packaging_type' => 'YOUR_PACKAGING',
'dropoff_type' => 'REGULAR_PICKUP',
'test' => true,
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'FedEx',
'params': {'customs': [],
'dropoff_type': 'REGULAR_PICKUP',
'length_unit': 'IN',
'packages': [{'insured_value': 200, 'weight': 2}],
'packaging_type': 'YOUR_PACKAGING',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_country': 'US',
'ship_date': '2042-09-15T08:00:00-00:00',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_code': '90210',
'to_country': 'US',
'to_state': 'CA',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"FedEx",
"action"=>"GetAllRates",
"params"=>
{"packages"=>[{"weight"=>2, "insured_value"=>200}],
"ship_date"=>"2042-09-15T08:00:00-00:00",
"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",
"length_unit"=>"IN",
"packaging_type"=>"YOUR_PACKAGING",
"dropoff_type"=>"REGULAR_PICKUP",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 2,
"insured_value": 200
}
],
"ship_date": "2042-09-15T08:00:00-00:00",
"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",
"length_unit": "IN",
"packaging_type": "YOUR_PACKAGING",
"dropoff_type": "REGULAR_PICKUP",
"test": true
}
}
)