{
"carrier": "CHRobinson",
"action": "GetAllRates",
"params": {
"key": "your-key-from-authenticate-request",
"ship_date": "2024-01-22",
"account_number": "1231234",
"test": true,
"packages": [
{
"weight": 200,
"freight_class": "50"
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "14800 Charlson Rd",
"ship_addr2": "Building 1",
"ship_city": "Eden Prairie",
"ship_state": "MN",
"ship_code": "55347",
"ship_country": "US",
"to_addr1": "800 Washington Avenue North",
"to_country": "US",
"to_city": "Minneapolis",
"to_state": "MN",
"to_code": "55401",
"weight_unit": "LB"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'CHRobinson',
'action' => 'GetAllRates',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'ship_date' => '2024-01-22',
'account_number' => '1231234',
'test' => true,
'packages' =>
array (
0 =>
array (
'weight' => 200,
'freight_class' => '50',
),
),
'customs' =>
array (
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '14800 Charlson Rd',
'ship_addr2' => 'Building 1',
'ship_city' => 'Eden Prairie',
'ship_state' => 'MN',
'ship_code' => '55347',
'ship_country' => 'US',
'to_addr1' => '800 Washington Avenue North',
'to_country' => 'US',
'to_city' => 'Minneapolis',
'to_state' => 'MN',
'to_code' => '55401',
'weight_unit' => 'LB',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'CHRobinson',
'params': {'account_number': '1231234',
'customs': [],
'key': 'your-key-from-authenticate-request',
'packages': [{'freight_class': '50', 'weight': 200}],
'ship_addr1': '14800 Charlson Rd',
'ship_addr2': 'Building 1',
'ship_city': 'Eden Prairie',
'ship_code': '55347',
'ship_country': 'US',
'ship_date': '2024-01-22',
'ship_state': 'MN',
'shipper': 'RocketShipIt',
'test': True,
'to_addr1': '800 Washington Avenue North',
'to_city': 'Minneapolis',
'to_code': '55401',
'to_country': 'US',
'to_state': 'MN',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"CHRobinson",
"action"=>"GetAllRates",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"ship_date"=>"2024-01-22",
"account_number"=>"1231234",
"test"=>true,
"packages"=>[{"weight"=>200, "freight_class"=>"50"}],
"customs"=>[],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"14800 Charlson Rd",
"ship_addr2"=>"Building 1",
"ship_city"=>"Eden Prairie",
"ship_state"=>"MN",
"ship_code"=>"55347",
"ship_country"=>"US",
"to_addr1"=>"800 Washington Avenue North",
"to_country"=>"US",
"to_city"=>"Minneapolis",
"to_state"=>"MN",
"to_code"=>"55401",
"weight_unit"=>"LB"}}
)
rocketshipit.request(
{
"carrier": "CHRobinson",
"action": "GetAllRates",
"params": {
"key": "your-key-from-authenticate-request",
"ship_date": "2024-01-22",
"account_number": "1231234",
"test": true,
"packages": [
{
"weight": 200,
"freight_class": "50"
}
],
"customs": [],
"shipper": "RocketShipIt",
"ship_addr1": "14800 Charlson Rd",
"ship_addr2": "Building 1",
"ship_city": "Eden Prairie",
"ship_state": "MN",
"ship_code": "55347",
"ship_country": "US",
"to_addr1": "800 Washington Avenue North",
"to_country": "US",
"to_city": "Minneapolis",
"to_state": "MN",
"to_code": "55401",
"weight_unit": "LB"
}
}
)