OD-REST - Create Pickup

Carrier
OD-REST
Action
Create Pickup
{
  "carrier": "OD-REST",
  "action": "createpickup",
  "params": {
    "username": "YOUR_ODFL_USERNAME",
    "password": "YOUR_ODFL_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "pickup_date": "20261231",
    "ready_time": "0800",
    "close_time": "1700",
    "pickup_company_name": "Acme Inc",
    "pickup_contact_name": "John Doe",
    "pickup_phone": "8705551234",
    "pickup_email": "[email protected]",
    "pickup_addr1": "1202 Chalet Ln",
    "pickup_city": "Harrison",
    "pickup_state": "AR",
    "pickup_code": "72601",
    "pickup_country": "US",
    "to_company": "ABC Widget Co",
    "to_addr1": "1234 Main St",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "shipment_id": "77777777777",
    "packages": [
      {
        "description": "furniture",
        "packaging_type": "SKID",
        "pieces": 4,
        "weight": 200,
        "length": 48,
        "width": 40,
        "height": 36,
        "freight_class": "50"
      }
    ],
    "special_instructions": "Call the dock before arrival",
    "weight_unit": "LB"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'OD-REST',
  'action' => 'createpickup',
  'params' => 
  array (
    'username' => 'YOUR_ODFL_USERNAME',
    'password' => 'YOUR_ODFL_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'pickup_date' => '20261231',
    'ready_time' => '0800',
    'close_time' => '1700',
    'pickup_company_name' => 'Acme Inc',
    'pickup_contact_name' => 'John Doe',
    'pickup_phone' => '8705551234',
    'pickup_email' => '[email protected]',
    'pickup_addr1' => '1202 Chalet Ln',
    'pickup_city' => 'Harrison',
    'pickup_state' => 'AR',
    'pickup_code' => '72601',
    'pickup_country' => 'US',
    'to_company' => 'ABC Widget Co',
    'to_addr1' => '1234 Main St',
    'to_city' => 'Akron',
    'to_state' => 'OH',
    'to_code' => '44333',
    'to_country' => 'US',
    'shipment_id' => '77777777777',
    'packages' => 
    array (
      0 => 
      array (
        'description' => 'furniture',
        'packaging_type' => 'SKID',
        'pieces' => 4,
        'weight' => 200,
        'length' => 48,
        'width' => 40,
        'height' => 36,
        'freight_class' => '50',
      ),
    ),
    'special_instructions' => 'Call the dock before arrival',
    'weight_unit' => 'LB',
  ),
)
);

rs.request(
  {'action': 'createpickup',
 'carrier': 'OD-REST',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'close_time': '1700',
            'packages': [{'description': 'furniture',
                          'freight_class': '50',
                          'height': 36,
                          'length': 48,
                          'packaging_type': 'SKID',
                          'pieces': 4,
                          'weight': 200,
                          'width': 40}],
            'password': 'YOUR_ODFL_PASSWORD',
            'pickup_addr1': '1202 Chalet Ln',
            'pickup_city': 'Harrison',
            'pickup_code': '72601',
            'pickup_company_name': 'Acme Inc',
            'pickup_contact_name': 'John Doe',
            'pickup_country': 'US',
            'pickup_date': '20261231',
            'pickup_email': '[email protected]',
            'pickup_phone': '8705551234',
            'pickup_state': 'AR',
            'ready_time': '0800',
            'shipment_id': '77777777777',
            'special_instructions': 'Call the dock before arrival',
            'to_addr1': '1234 Main St',
            'to_city': 'Akron',
            'to_code': '44333',
            'to_company': 'ABC Widget Co',
            'to_country': 'US',
            'to_state': 'OH',
            'username': 'YOUR_ODFL_USERNAME',
            'weight_unit': 'LB'}}

)

rs.request(
  {"carrier"=>"OD-REST",
 "action"=>"createpickup",
 "params"=>
  {"username"=>"YOUR_ODFL_USERNAME",
   "password"=>"YOUR_ODFL_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "pickup_date"=>"20261231",
   "ready_time"=>"0800",
   "close_time"=>"1700",
   "pickup_company_name"=>"Acme Inc",
   "pickup_contact_name"=>"John Doe",
   "pickup_phone"=>"8705551234",
   "pickup_email"=>"[email protected]",
   "pickup_addr1"=>"1202 Chalet Ln",
   "pickup_city"=>"Harrison",
   "pickup_state"=>"AR",
   "pickup_code"=>"72601",
   "pickup_country"=>"US",
   "to_company"=>"ABC Widget Co",
   "to_addr1"=>"1234 Main St",
   "to_city"=>"Akron",
   "to_state"=>"OH",
   "to_code"=>"44333",
   "to_country"=>"US",
   "shipment_id"=>"77777777777",
   "packages"=>
    [{"description"=>"furniture",
      "packaging_type"=>"SKID",
      "pieces"=>4,
      "weight"=>200,
      "length"=>48,
      "width"=>40,
      "height"=>36,
      "freight_class"=>"50"}],
   "special_instructions"=>"Call the dock before arrival",
   "weight_unit"=>"LB"}}

)

rocketshipit.request(
  {
  "carrier": "OD-REST",
  "action": "createpickup",
  "params": {
    "username": "YOUR_ODFL_USERNAME",
    "password": "YOUR_ODFL_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "pickup_date": "20261231",
    "ready_time": "0800",
    "close_time": "1700",
    "pickup_company_name": "Acme Inc",
    "pickup_contact_name": "John Doe",
    "pickup_phone": "8705551234",
    "pickup_email": "[email protected]",
    "pickup_addr1": "1202 Chalet Ln",
    "pickup_city": "Harrison",
    "pickup_state": "AR",
    "pickup_code": "72601",
    "pickup_country": "US",
    "to_company": "ABC Widget Co",
    "to_addr1": "1234 Main St",
    "to_city": "Akron",
    "to_state": "OH",
    "to_code": "44333",
    "to_country": "US",
    "shipment_id": "77777777777",
    "packages": [
      {
        "description": "furniture",
        "packaging_type": "SKID",
        "pieces": 4,
        "weight": 200,
        "length": 48,
        "width": 40,
        "height": 36,
        "freight_class": "50"
      }
    ],
    "special_instructions": "Call the dock before arrival",
    "weight_unit": "LB"
  }
}
)

← All OD-REST examples