OnTrac-REST - Label

Carrier
OnTrac-REST
Action
Label
{
  "carrier": "OnTrac-REST",
  "action": "submitshipment",
  "params": {
    "username": "your-wsid",
    "password": "your-wskey",
    "account_number": "FAKECSBR",
    "test": true,
    "service": "GRND",
    "image_type": "rs_zpl",
    "po_number": "ORDER-1001",
    "reference_value": "INV-2001",
    "shipper": "RocketShipIt",
    "ship_contact": "Warehouse Manager",
    "ship_addr1": "7400 W Buckeye Rd",
    "ship_city": "Phoenix",
    "ship_state": "AZ",
    "ship_code": "85043",
    "ship_phone": "6025551234",
    "to_name": "Jane Doe",
    "to_addr1": "132 N F St",
    "to_city": "Lake Worth",
    "to_state": "FL",
    "to_code": "33460",
    "to_phone": "7037619031",
    "to_email": "[email protected]",
    "special_instructions": "Please leave on back porch",
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packages": [
      {
        "weight": 2.5,
        "length": 10,
        "width": 8,
        "height": 4,
        "description": "Groceries"
      }
    ]
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'OnTrac-REST',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'your-wsid',
    'password' => 'your-wskey',
    'account_number' => 'FAKECSBR',
    'test' => true,
    'service' => 'GRND',
    'image_type' => 'rs_zpl',
    'po_number' => 'ORDER-1001',
    'reference_value' => 'INV-2001',
    'shipper' => 'RocketShipIt',
    'ship_contact' => 'Warehouse Manager',
    'ship_addr1' => '7400 W Buckeye Rd',
    'ship_city' => 'Phoenix',
    'ship_state' => 'AZ',
    'ship_code' => '85043',
    'ship_phone' => '6025551234',
    'to_name' => 'Jane Doe',
    'to_addr1' => '132 N F St',
    'to_city' => 'Lake Worth',
    'to_state' => 'FL',
    'to_code' => '33460',
    'to_phone' => '7037619031',
    'to_email' => '[email protected]',
    'special_instructions' => 'Please leave on back porch',
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 2.5,
        'length' => 10,
        'width' => 8,
        'height' => 4,
        'description' => 'Groceries',
      ),
    ),
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'OnTrac-REST',
 'params': {'account_number': 'FAKECSBR',
            'image_type': 'rs_zpl',
            'length_unit': 'IN',
            'packages': [{'description': 'Groceries',
                          'height': 4,
                          'length': 10,
                          'weight': 2.5,
                          'width': 8}],
            'password': 'your-wskey',
            'po_number': 'ORDER-1001',
            'reference_value': 'INV-2001',
            'service': 'GRND',
            'ship_addr1': '7400 W Buckeye Rd',
            'ship_city': 'Phoenix',
            'ship_code': '85043',
            'ship_contact': 'Warehouse Manager',
            'ship_phone': '6025551234',
            'ship_state': 'AZ',
            'shipper': 'RocketShipIt',
            'special_instructions': 'Please leave on back porch',
            'test': True,
            'to_addr1': '132 N F St',
            'to_city': 'Lake Worth',
            'to_code': '33460',
            'to_email': '[email protected]',
            'to_name': 'Jane Doe',
            'to_phone': '7037619031',
            'to_state': 'FL',
            'username': 'your-wsid',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"OnTrac-REST",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"your-wsid",
   "password"=>"your-wskey",
   "account_number"=>"FAKECSBR",
   "test"=>true,
   "service"=>"GRND",
   "image_type"=>"rs_zpl",
   "po_number"=>"ORDER-1001",
   "reference_value"=>"INV-2001",
   "shipper"=>"RocketShipIt",
   "ship_contact"=>"Warehouse Manager",
   "ship_addr1"=>"7400 W Buckeye Rd",
   "ship_city"=>"Phoenix",
   "ship_state"=>"AZ",
   "ship_code"=>"85043",
   "ship_phone"=>"6025551234",
   "to_name"=>"Jane Doe",
   "to_addr1"=>"132 N F St",
   "to_city"=>"Lake Worth",
   "to_state"=>"FL",
   "to_code"=>"33460",
   "to_phone"=>"7037619031",
   "to_email"=>"[email protected]",
   "special_instructions"=>"Please leave on back porch",
   "weight_unit"=>"LBS",
   "length_unit"=>"IN",
   "packages"=>
    [{"weight"=>2.5,
      "length"=>10,
      "width"=>8,
      "height"=>4,
      "description"=>"Groceries"}]}}

)

rocketshipit.request(
  {
  "carrier": "OnTrac-REST",
  "action": "submitshipment",
  "params": {
    "username": "your-wsid",
    "password": "your-wskey",
    "account_number": "FAKECSBR",
    "test": true,
    "service": "GRND",
    "image_type": "rs_zpl",
    "po_number": "ORDER-1001",
    "reference_value": "INV-2001",
    "shipper": "RocketShipIt",
    "ship_contact": "Warehouse Manager",
    "ship_addr1": "7400 W Buckeye Rd",
    "ship_city": "Phoenix",
    "ship_state": "AZ",
    "ship_code": "85043",
    "ship_phone": "6025551234",
    "to_name": "Jane Doe",
    "to_addr1": "132 N F St",
    "to_city": "Lake Worth",
    "to_state": "FL",
    "to_code": "33460",
    "to_phone": "7037619031",
    "to_email": "[email protected]",
    "special_instructions": "Please leave on back porch",
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packages": [
      {
        "weight": 2.5,
        "length": 10,
        "width": 8,
        "height": 4,
        "description": "Groceries"
      }
    ]
  }
}
)

← All OnTrac-REST examples