Dicom - Rate

Carrier: Dicom
Action: Rate
Description: Example implementation for Dicom Rate
{
  "carrier": "Dicom",
  "action": "GetAllRates",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "packages": [
      {
        "packaging_type": "Box",
        "weight": 50,
        "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_country": "CA",
    "to_state": "BC",
    "to_code": "V4W1N7",
    "division": "express"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'Dicom',
  'action' => 'GetAllRates',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'account_number' => 'YOUR_ACCOUNT_NUMBER',
    'packages' => 
    array (
      0 => 
      array (
        'packaging_type' => 'Box',
        'weight' => 50,
        '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_country' => 'CA',
    'to_state' => 'BC',
    'to_code' => 'V4W1N7',
    'division' => 'express',
  ),
)
);

rs.request(
  {'action': 'GetAllRates',
 'carrier': 'Dicom',
 'params': {'account_number': 'YOUR_ACCOUNT_NUMBER',
            'customs': [],
            'division': 'express',
            'packages': [{'height': 5,
                          'length': 5,
                          'packaging_type': 'Box',
                          'weight': 50,
                          'width': 5}],
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_country': 'US',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'to_code': 'V4W1N7',
            'to_country': 'CA',
            'to_state': 'BC',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"Dicom",
 "action"=>"GetAllRates",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "account_number"=>"YOUR_ACCOUNT_NUMBER",
   "packages"=>
    [{"packaging_type"=>"Box",
      "weight"=>50,
      "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_country"=>"CA",
   "to_state"=>"BC",
   "to_code"=>"V4W1N7",
   "division"=>"express"}}

)

rocketshipit.request(
  {
  "carrier": "Dicom",
  "action": "GetAllRates",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "account_number": "YOUR_ACCOUNT_NUMBER",
    "packages": [
      {
        "packaging_type": "Box",
        "weight": 50,
        "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_country": "CA",
    "to_state": "BC",
    "to_code": "V4W1N7",
    "division": "express"
  }
}
)
← Back to All Examples

Other Dicom Examples

Label
Example implementation for Dicom Label
Tracking
Example implementation for Dicom Tracking