Purolator - Label Third Party Billing

Carrier
Purolator
Action
Label Third Party Billing
{
      "carrier": "Purolator",
      "action": "submitshipment",
      "params": {
        "username": "YOUR_USERNAME",
        "password": "YOUR_PASSWORD",
        "key": "YOUR_API_USER_TOKEN",
        "billing": [
          {
            "type": "transportation",
            "payment_type": "third_party",
            "account": "abc123"
          }
        ],
        "packages": [
          {
            "weight": 4,
            "length": 7,
            "width": 5,
            "height": 5
          }
        ],
        "service": "PurolatorGround",
        "shipper": "RocketShipIt",
        "ship_addr1": "5048 264 St",
        "ship_city": "Aldergrove",
        "ship_state": "BC",
        "ship_code": "V4W 1N7",
        "ship_phone": "1231231234",
        "ship_country": "CA",
        "to_name": "John Doe",
        "to_addr1": "5048 264 St, Aldergrove",
        "to_state": "BC",
        "to_city": "Aldergrove",
        "to_code": "V4W 1N7",
        "to_country": "CA",
        "image_type": "PDF",
        "test": true
      }
    }

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'Purolator',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'key' => 'YOUR_API_USER_TOKEN',
    'billing' => 
    array (
      0 => 
      array (
        'type' => 'transportation',
        'payment_type' => 'third_party',
        'account' => 'abc123',
      ),
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 4,
        'length' => 7,
        'width' => 5,
        'height' => 5,
      ),
    ),
    'service' => 'PurolatorGround',
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '5048 264 St',
    'ship_city' => 'Aldergrove',
    'ship_state' => 'BC',
    'ship_code' => 'V4W 1N7',
    'ship_phone' => '1231231234',
    'ship_country' => 'CA',
    'to_name' => 'John Doe',
    'to_addr1' => '5048 264 St, Aldergrove',
    'to_state' => 'BC',
    'to_city' => 'Aldergrove',
    'to_code' => 'V4W 1N7',
    'to_country' => 'CA',
    'image_type' => 'PDF',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'Purolator',
 'params': {'billing': [{'account': 'abc123',
                         'payment_type': 'third_party',
                         'type': 'transportation'}],
            'image_type': 'PDF',
            'key': 'YOUR_API_USER_TOKEN',
            'packages': [{'height': 5, 'length': 7, 'weight': 4, 'width': 5}],
            'password': 'YOUR_PASSWORD',
            'service': 'PurolatorGround',
            'ship_addr1': '5048 264 St',
            'ship_city': 'Aldergrove',
            'ship_code': 'V4W 1N7',
            'ship_country': 'CA',
            'ship_phone': '1231231234',
            'ship_state': 'BC',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '5048 264 St, Aldergrove',
            'to_city': 'Aldergrove',
            'to_code': 'V4W 1N7',
            'to_country': 'CA',
            'to_name': 'John Doe',
            'to_state': 'BC',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"Purolator",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "key"=>"YOUR_API_USER_TOKEN",
   "billing"=>
    [{"type"=>"transportation",
      "payment_type"=>"third_party",
      "account"=>"abc123"}],
   "packages"=>[{"weight"=>4, "length"=>7, "width"=>5, "height"=>5}],
   "service"=>"PurolatorGround",
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"5048 264 St",
   "ship_city"=>"Aldergrove",
   "ship_state"=>"BC",
   "ship_code"=>"V4W 1N7",
   "ship_phone"=>"1231231234",
   "ship_country"=>"CA",
   "to_name"=>"John Doe",
   "to_addr1"=>"5048 264 St, Aldergrove",
   "to_state"=>"BC",
   "to_city"=>"Aldergrove",
   "to_code"=>"V4W 1N7",
   "to_country"=>"CA",
   "image_type"=>"PDF",
   "test"=>true}}

)

rocketshipit.request(
  {
      "carrier": "Purolator",
      "action": "submitshipment",
      "params": {
        "username": "YOUR_USERNAME",
        "password": "YOUR_PASSWORD",
        "key": "YOUR_API_USER_TOKEN",
        "billing": [
          {
            "type": "transportation",
            "payment_type": "third_party",
            "account": "abc123"
          }
        ],
        "packages": [
          {
            "weight": 4,
            "length": 7,
            "width": 5,
            "height": 5
          }
        ],
        "service": "PurolatorGround",
        "shipper": "RocketShipIt",
        "ship_addr1": "5048 264 St",
        "ship_city": "Aldergrove",
        "ship_state": "BC",
        "ship_code": "V4W 1N7",
        "ship_phone": "1231231234",
        "ship_country": "CA",
        "to_name": "John Doe",
        "to_addr1": "5048 264 St, Aldergrove",
        "to_state": "BC",
        "to_city": "Aldergrove",
        "to_code": "V4W 1N7",
        "to_country": "CA",
        "image_type": "PDF",
        "test": true
      }
    }
)

← All Purolator examples