Stamps.com - Label Non-Machinable

Carrier
Stamps.com
Action
Label Non-Machinable
{
  "carrier": "stamps",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8,
        "non_machinable": true,
        "packaging_type": "Package"
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Dont ship st",
    "to_state": "MT",
    "to_city": "Whitehall",
    "to_code": "59759",
    "test": true,
    "service": "US-PM",
    "reference_value": "asdf"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'stamps',
  'action' => 'submitshipment',
  'params' => 
  array (
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 5,
        'length' => 6,
        'width' => 7,
        'height' => 8,
        'non_machinable' => true,
        'packaging_type' => 'Package',
      ),
    ),
    'shipper' => 'RocketShipIt',
    'ship_addr1' => '123 Main St',
    'ship_city' => 'Whitehall',
    'ship_state' => 'MT',
    'ship_code' => '59759',
    'ship_phone' => '1231231234',
    'to_name' => 'John Doe',
    'to_addr1' => '123 Dont ship st',
    'to_state' => 'MT',
    'to_city' => 'Whitehall',
    'to_code' => '59759',
    'test' => true,
    'service' => 'US-PM',
    'reference_value' => 'asdf',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'stamps',
 'params': {'packages': [{'height': 8,
                          'length': 6,
                          'non_machinable': True,
                          'packaging_type': 'Package',
                          'weight': 5,
                          'width': 7}],
            'password': 'YOUR_PASSWORD',
            'reference_value': 'asdf',
            'service': 'US-PM',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Dont ship st',
            'to_city': 'Whitehall',
            'to_code': '59759',
            'to_name': 'John Doe',
            'to_state': 'MT',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"stamps",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "packages"=>
    [{"weight"=>5,
      "length"=>6,
      "width"=>7,
      "height"=>8,
      "non_machinable"=>true,
      "packaging_type"=>"Package"}],
   "shipper"=>"RocketShipIt",
   "ship_addr1"=>"123 Main St",
   "ship_city"=>"Whitehall",
   "ship_state"=>"MT",
   "ship_code"=>"59759",
   "ship_phone"=>"1231231234",
   "to_name"=>"John Doe",
   "to_addr1"=>"123 Dont ship st",
   "to_state"=>"MT",
   "to_city"=>"Whitehall",
   "to_code"=>"59759",
   "test"=>true,
   "service"=>"US-PM",
   "reference_value"=>"asdf"}}

)

rocketshipit.request(
  {
  "carrier": "stamps",
  "action": "submitshipment",
  "params": {
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "packages": [
      {
        "weight": 5,
        "length": 6,
        "width": 7,
        "height": 8,
        "non_machinable": true,
        "packaging_type": "Package"
      }
    ],
    "shipper": "RocketShipIt",
    "ship_addr1": "123 Main St",
    "ship_city": "Whitehall",
    "ship_state": "MT",
    "ship_code": "59759",
    "ship_phone": "1231231234",
    "to_name": "John Doe",
    "to_addr1": "123 Dont ship st",
    "to_state": "MT",
    "to_city": "Whitehall",
    "to_code": "59759",
    "test": true,
    "service": "US-PM",
    "reference_value": "asdf"
  }
}
)

← All Stamps.com examples