{
"carrier": "OD-REST",
"action": "getallrates",
"params": {
"username": "YOUR_ODFL_USERNAME",
"password": "YOUR_ODFL_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"service": "LTL",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "THIRD_PARTY_OD_ACCOUNT"
}
],
"packages": [
{
"packaging_type": "SKID",
"weight": 500,
"freight_class": "70"
}
],
"ship_code": "72601",
"ship_country": "US",
"to_code": "44333",
"to_country": "US",
"weight_unit": "LB"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'OD-REST',
'action' => 'getallrates',
'params' =>
array (
'username' => 'YOUR_ODFL_USERNAME',
'password' => 'YOUR_ODFL_PASSWORD',
'account_number' => 'YOUR_ACCOUNT_NUMBER',
'service' => 'LTL',
'billing' =>
array (
0 =>
array (
'type' => 'transportation',
'payment_type' => 'third_party',
'account' => 'THIRD_PARTY_OD_ACCOUNT',
),
),
'packages' =>
array (
0 =>
array (
'packaging_type' => 'SKID',
'weight' => 500,
'freight_class' => '70',
),
),
'ship_code' => '72601',
'ship_country' => 'US',
'to_code' => '44333',
'to_country' => 'US',
'weight_unit' => 'LB',
),
)
);
rs.request(
{'action': 'getallrates',
'carrier': 'OD-REST',
'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
'billing': [{'account': 'THIRD_PARTY_OD_ACCOUNT',
'payment_type': 'third_party',
'type': 'transportation'}],
'packages': [{'freight_class': '70',
'packaging_type': 'SKID',
'weight': 500}],
'password': 'YOUR_ODFL_PASSWORD',
'service': 'LTL',
'ship_code': '72601',
'ship_country': 'US',
'to_code': '44333',
'to_country': 'US',
'username': 'YOUR_ODFL_USERNAME',
'weight_unit': 'LB'}}
)
rs.request(
{"carrier"=>"OD-REST",
"action"=>"getallrates",
"params"=>
{"username"=>"YOUR_ODFL_USERNAME",
"password"=>"YOUR_ODFL_PASSWORD",
"account_number"=>"YOUR_ACCOUNT_NUMBER",
"service"=>"LTL",
"billing"=>
[{"type"=>"transportation",
"payment_type"=>"third_party",
"account"=>"THIRD_PARTY_OD_ACCOUNT"}],
"packages"=>
[{"packaging_type"=>"SKID", "weight"=>500, "freight_class"=>"70"}],
"ship_code"=>"72601",
"ship_country"=>"US",
"to_code"=>"44333",
"to_country"=>"US",
"weight_unit"=>"LB"}}
)
rocketshipit.request(
{
"carrier": "OD-REST",
"action": "getallrates",
"params": {
"username": "YOUR_ODFL_USERNAME",
"password": "YOUR_ODFL_PASSWORD",
"account_number": "YOUR_ACCOUNT_NUMBER",
"service": "LTL",
"billing": [
{
"type": "transportation",
"payment_type": "third_party",
"account": "THIRD_PARTY_OD_ACCOUNT"
}
],
"packages": [
{
"packaging_type": "SKID",
"weight": 500,
"freight_class": "70"
}
],
"ship_code": "72601",
"ship_country": "US",
"to_code": "44333",
"to_country": "US",
"weight_unit": "LB"
}
}
)