USPS-REST - Address Validation

Carrier
USPS-REST
Action
Address Validation
{
  "carrier": "USPS-REST",
  "action": "addressvalidate",
  "params": {
    "key": "your-key-from-authenticate-request",
    "to_name": "John Doe",
    "to_addr1": "2920 Zoo ",
    "to_state": "CA",
    "to_city": "San Diego",
    "to_code": "92101",
    "to_country": "US",
    "test": true
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'USPS-REST',
  'action' => 'addressvalidate',
  'params' => 
  array (
    'key' => 'your-key-from-authenticate-request',
    'to_name' => 'John Doe',
    'to_addr1' => '2920 Zoo ',
    'to_state' => 'CA',
    'to_city' => 'San Diego',
    'to_code' => '92101',
    'to_country' => 'US',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'addressvalidate',
 'carrier': 'USPS-REST',
 'params': {'key': 'your-key-from-authenticate-request',
            'test': True,
            'to_addr1': '2920 Zoo ',
            'to_city': 'San Diego',
            'to_code': '92101',
            'to_country': 'US',
            'to_name': 'John Doe',
            'to_state': 'CA'}}

)

rs.request(
  {"carrier"=>"USPS-REST",
 "action"=>"addressvalidate",
 "params"=>
  {"key"=>"your-key-from-authenticate-request",
   "to_name"=>"John Doe",
   "to_addr1"=>"2920 Zoo ",
   "to_state"=>"CA",
   "to_city"=>"San Diego",
   "to_code"=>"92101",
   "to_country"=>"US",
   "test"=>true}}

)

rocketshipit.request(
  {
  "carrier": "USPS-REST",
  "action": "addressvalidate",
  "params": {
    "key": "your-key-from-authenticate-request",
    "to_name": "John Doe",
    "to_addr1": "2920 Zoo ",
    "to_state": "CA",
    "to_city": "San Diego",
    "to_code": "92101",
    "to_country": "US",
    "test": true
  }
}
)

← All USPS-REST examples