Purolator - Label

Carrier: Purolator
Action: Label
Description: Example implementation for Purolator Label
{
      "carrier": "Purolator",
      "action": "SubmitShipment",
      "params": {
        "username": "YOUR_USERNAME",
        "password": "YOUR_PASSWORD",
        "key": "YOUR_API_USER_TOKEN",
        "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',
    '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': {'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",
   "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",
        "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
      }
    }
)
← Back to All Examples

Other Purolator Examples

Label International
Example implementation for Purolator Label International
Label Saturday Delivery
Example implementation for Purolator Label Saturday Delivery
Label Signature Required
Example implementation for Purolator Label Signature Required
Label Third Party Billing
Example implementation for Purolator Label Third Party Billing
Label with References
Example implementation for Purolator Label with References
Rates
Example implementation for Purolator Rates
Tracking
Example implementation for Purolator Tracking
Void
Example implementation for Purolator Void