Old Dominion - Freight Rate

Carrier: Old Dominion
Action: Freight Rate
Description: Example implementation for Old Dominion Freight Rate
{
  "carrier": "od",
  "action": "GetAllRates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 200,
        "freight_class": "200"
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_country": "US",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "weight_unit": "LB",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'od',
  'action' => 'GetAllRates',
  'params' => 
  array (
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 200,
        'freight_class' => '200',
      ),
    ),
    'customs' => 
    array (
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '1202 Chalet Ln',
    'ship_addr2' => 'Do Not Delete - Test Account',
    'ship_city' => 'Harrison',
    'ship_state' => 'AR',
    'ship_code' => '72601',
    'ship_country' => 'US',
    'to_country' => 'US',
    'to_city' => 'Akron',
    'to_state' => 'OH',
    'to_code' => '44333',
    'weight_unit' => 'LB',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'GetAllRates',
 'carrier': 'od',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'customs': [],
            'packages': [{'freight_class': '200', 'weight': 200}],
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '1202 Chalet Ln',
            'ship_addr2': 'Do Not Delete - Test Account',
            'ship_city': 'Harrison',
            'ship_code': '72601',
            'ship_country': 'US',
            'ship_state': 'AR',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_city': 'Akron',
            'to_code': '44333',
            'to_country': 'US',
            'to_state': 'OH',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"od",
 "action"=>"GetAllRates",
 "params"=>
  {"account_number"=>"YOUR_ACCOUNT_NUMBER",
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>200, "freight_class"=>"200"}],
   "customs"=>[],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"1202 Chalet Ln",
   "ship_addr2"=>"Do Not Delete - Test Account",
   "ship_city"=>"Harrison",
   "ship_state"=>"AR",
   "ship_code"=>"72601",
   "ship_country"=>"US",
   "to_country"=>"US",
   "to_city"=>"Akron",
   "to_state"=>"OH",
   "to_code"=>"44333",
   "weight_unit"=>"LB",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "od",
  "action": "GetAllRates",
  "params": {
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 200,
        "freight_class": "200"
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "1202 Chalet Ln",
    "ship_addr2": "Do Not Delete - Test Account",
    "ship_city": "Harrison",
    "ship_state": "AR",
    "ship_code": "72601",
    "ship_country": "US",
    "to_country": "US",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "weight_unit": "LB",
    "test": true
  }
}
)
← Back to All Examples

Other Old Dominion Examples

Freight Shipment
Example implementation for Old Dominion Freight Shipment