Dicom - Label

Carrier: Dicom
Action: Label
Description: Example implementation for Dicom Label
{
  "carrier": "Dicom",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 5,
        "length": 5,
        "width": 5,
        "height": 5
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_country": "US",
    "to_city": "Emeryville",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packaging_type": "BX"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'Dicom',
  'action' => 'SubmitShipment',
  'params' => 
  array (
    'test' => true,
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'length' => 5,
        'width' => 5,
        'height' => 5,
      ),
    ),
    'customs' => 
    array (
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_country' => 'US',
    'to_name' => 'John Doe',
    'to_addr1' => '123 Main St',
    'to_country' => 'US',
    'to_city' => 'Emeryville',
    'to_state' => 'CA',
    'to_code' => '90210',
    'weight_unit' => 'LBS',
    'length_unit' => 'IN',
    'packaging_type' => 'BX',
  ),
)
);

rs.request(
  {'action': 'SubmitShipment',
 'carrier': 'Dicom',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'customs': [],
            'length_unit': 'IN',
            'packages': [{'height': 5, 'length': 5, 'weight': 5, 'width': 5}],
            'packaging_type': 'BX',
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_country': 'US',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Main St',
            'to_city': 'Emeryville',
            'to_code': '90210',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA',
            'username': 'YOUR_USERNAME',
            'weight_unit': 'LBS'}}

)

rs.request(
  {"carrier"=>"Dicom",
 "action"=>"SubmitShipment",
 "params"=>
  {"test"=>true,
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>5, "length"=>5, "width"=>5, "height"=>5}],
   "customs"=>[],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_country"=>"US",
   "to_name"=>"John Doe",
   "to_addr1"=>"123 Main St",
   "to_country"=>"US",
   "to_city"=>"Emeryville",
   "to_state"=>"CA",
   "to_code"=>"90210",
   "weight_unit"=>"LBS",
   "length_unit"=>"IN",
   "packaging_type"=>"BX"}}

)

rocketshipit.request(
  {
  "carrier": "Dicom",
  "action": "SubmitShipment",
  "params": {
    "test": true,
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 5,
        "length": 5,
        "width": 5,
        "height": 5
      }
    ],
    "customs": [],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_country": "US",
    "to_name": "John Doe",
    "to_addr1": "123 Main St",
    "to_country": "US",
    "to_city": "Emeryville",
    "to_state": "CA",
    "to_code": "90210",
    "weight_unit": "LBS",
    "length_unit": "IN",
    "packaging_type": "BX"
  }
}
)
← Back to All Examples

Other Dicom Examples

Rate
Example implementation for Dicom Rate
Tracking
Example implementation for Dicom Tracking