Stamps.com - Label Return POUR

Carrier
Stamps.com
Action
Label Return POUR
{
  "carrier": "stamps",
  "action": "submitshipment",
  "params": {
    "addons": [
      "US-A-POUR"
    ],
    "packages": [
      {
        "weight": 0.4,
        "length": 6,
        "width": 7,
        "height": 8,
        "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-FC"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'stamps',
  'action' => 'submitshipment',
  'params' => 
  array (
    'addons' => 
    array (
      0 => 'US-A-POUR',
    ),
    'packages' => 
    array (
      0 => 
      array (
        'weight' => 0.4,
        'length' => 6,
        'width' => 7,
        'height' => 8,
        '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-FC',
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'stamps',
 'params': {'addons': ['US-A-POUR'],
            'packages': [{'height': 8,
                          'length': 6,
                          'packaging_type': 'Package',
                          'weight': 0.4,
                          'width': 7}],
            'service': 'US-FC',
            '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'}}

)

rs.request(
  {"carrier"=>"stamps",
 "action"=>"submitshipment",
 "params"=>
  {"addons"=>["US-A-POUR"],
   "packages"=>
    [{"weight"=>0.4,
      "length"=>6,
      "width"=>7,
      "height"=>8,
      "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-FC"}}

)

rocketshipit.request(
  {
  "carrier": "stamps",
  "action": "submitshipment",
  "params": {
    "addons": [
      "US-A-POUR"
    ],
    "packages": [
      {
        "weight": 0.4,
        "length": 6,
        "width": 7,
        "height": 8,
        "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-FC"
  }
}
)

← All Stamps.com examples