USPS-REST - Address Validation City/State from Zip

Carrier: USPS-REST
Action: Address Validation City/State from Zip
Description: Example implementation for USPS-REST Address Validation City/State from Zip
{
    "carrier": "USPS-REST",
    "action": "AddressValidate",
    "params": {
      "key": "your-key-from-authenticate-request",
      "to_code": "92101",
      "test": true
    }
  }

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'USPS-REST',
  'action' => 'AddressValidate',
  'params' => 
  array (
    'key' => 'your-key-from-authenticate-request',
    'to_code' => '92101',
    'test' => true,
  ),
)
);

rs.request(
  {'action': 'AddressValidate',
 'carrier': 'USPS-REST',
 'params': {'key': 'your-key-from-authenticate-request',
            'test': True,
            'to_code': '92101'}}

)

rs.request(
  {"carrier"=>"USPS-REST",
 "action"=>"AddressValidate",
 "params"=>
  {"key"=>"your-key-from-authenticate-request",
   "to_code"=>"92101",
   "test"=>true}}

)

rocketshipit.request(
  {
    "carrier": "USPS-REST",
    "action": "AddressValidate",
    "params": {
      "key": "your-key-from-authenticate-request",
      "to_code": "92101",
      "test": true
    }
  }
)
← Back to All Examples

Other USPS-REST Examples

Address Validation
Example implementation for USPS-REST Address Validation
Authenticate
Example implementation for USPS-REST Authenticate
Authenticate using apis endpoint
Example implementation for USPS-REST Authenticate using apis endpoint
Create Manifest
Example implementation for USPS-REST Create Manifest
Get Purchase Token
Example implementation for USPS-REST Get Purchase Token
Label
Example implementation for USPS-REST Label
Label Return
Example implementation for USPS-REST Label Return
Rate Single with rate indicator
Example implementation for USPS-REST Rate Single with rate indicator
Rates
Example implementation for USPS-REST Rates
Tracking
Example implementation for USPS-REST Tracking
Void Shipment
Example implementation for USPS-REST Void Shipment