Stamps.com - Label Alternate Return Address

Carrier
Stamps.com
Action
Label Alternate Return Address
{
    "carrier": "Stamps",
    "action": "submitshipment",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "packages": [
        {
          "weight": 15
        }
      ],
      "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 Main St",
      "to_state": "CA",
      "to_city": "Beverly Hills",
      "to_code": "90210",
      "to_phone": "1231231234",
      "packaging_type": "YOUR_PACKAGING",
      "label": {
        "printed_origin": {
          "phone": "123-123-1234",
          "name": "John Doe",
          "addr1": "940 Presidio Ave",
          "state": "CA",
          "city": "San Francisco",
          "code": "94112",
          "country": "US"
        }
      },
      "test": true
    }
  }

<?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' => 15,
      ),
    ),
    '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 Main St',
    'to_state' => 'CA',
    'to_city' => 'Beverly Hills',
    'to_code' => '90210',
    'to_phone' => '1231231234',
    'packaging_type' => 'YOUR_PACKAGING',
    'label' => 
    array (
      'printed_origin' => 
      array (
        'phone' => '123-123-1234',
        'name' => 'John Doe',
        'addr1' => '940 Presidio Ave',
        'state' => 'CA',
        'city' => 'San Francisco',
        'code' => '94112',
        'country' => 'US',
      ),
    ),
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'Stamps',
 'params': {'label': {'printed_origin': {'addr1': '940 Presidio Ave',
                                         'city': 'San Francisco',
                                         'code': '94112',
                                         'country': 'US',
                                         'name': 'John Doe',
                                         'phone': '123-123-1234',
                                         'state': 'CA'}},
            'packages': [{'weight': 15}],
            'packaging_type': 'YOUR_PACKAGING',
            'password': 'YOUR_PASSWORD',
            'ship_addr1': '123 Main St',
            'ship_city': 'Whitehall',
            'ship_code': '59759',
            'ship_phone': '1231231234',
            'ship_state': 'MT',
            'shipper': 'RocketShipIt',
            'test': True,
            'to_addr1': '123 Main St',
            'to_city': 'Beverly Hills',
            'to_code': '90210',
            'to_name': 'John Doe',
            'to_phone': '1231231234',
            'to_state': 'CA',
            'username': 'YOUR_USERNAME'}}

)

rs.request(
  {"carrier"=>"Stamps",
 "action"=>"submitshipment",
 "params"=>
  {"username"=>"YOUR_USERNAME",
   "password"=>"YOUR_PASSWORD",
   "packages"=>[{"weight"=>15}],
   "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 Main St",
   "to_state"=>"CA",
   "to_city"=>"Beverly Hills",
   "to_code"=>"90210",
   "to_phone"=>"1231231234",
   "packaging_type"=>"YOUR_PACKAGING",
   "label"=>
    {"printed_origin"=>
      {"phone"=>"123-123-1234",
       "name"=>"John Doe",
       "addr1"=>"940 Presidio Ave",
       "state"=>"CA",
       "city"=>"San Francisco",
       "code"=>"94112",
       "country"=>"US"}},
   "test"=>true}}

)

rocketshipit.request(
  {
    "carrier": "Stamps",
    "action": "submitshipment",
    "params": {
      "username": "YOUR_USERNAME",
      "password": "YOUR_PASSWORD",
      "packages": [
        {
          "weight": 15
        }
      ],
      "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 Main St",
      "to_state": "CA",
      "to_city": "Beverly Hills",
      "to_code": "90210",
      "to_phone": "1231231234",
      "packaging_type": "YOUR_PACKAGING",
      "label": {
        "printed_origin": {
          "phone": "123-123-1234",
          "name": "John Doe",
          "addr1": "940 Presidio Ave",
          "state": "CA",
          "city": "San Francisco",
          "code": "94112",
          "country": "US"
        }
      },
      "test": true
    }
  }
)

← All Stamps.com examples