Note that there are some explanatory texts on larger screens.

plurals
  1. POAuthorization failure in USPS Address verification API
    primarykey
    data
    text
    <p>Just i have a Registered with <a href="https://www.usps.com/business/web-tools-apis/welcome.htm" rel="nofollow">USPS</a> which provides the <code>US Address Validation API</code>. I am using the following code to get the <code>XML Response</code>. </p> <p>But, unfortunately the <code>Response</code> says:</p> <blockquote> <p>Authorization Failure User 'xxxxxxxxx' is not authorized to use API Verify.USPSCOM::DoAuth.</p> </blockquote> <p>Do i missing something?</p> <p>Code:</p> <pre><code>void IsValidAddress() { string USPS = "http://production.shippingapis.com/ShippingAPITest.dll?API=Verify&amp;XML=&lt;AddressValidateRequest%20USERID='xxxxxxx'&gt;&lt;Address ID='1'&gt;&lt;Address1&gt;&lt;/Address1&gt;&lt;Address2&gt;8 Wildwood Drive&lt;/Address2&gt;&lt;City&gt;Old Lyme&lt;/City&gt;&lt;State&gt;CT&lt;/State&gt;&lt;Zip5&gt;06371&lt;/Zip5&gt;&lt;Zip4&gt;&lt;/Zip4&gt;&lt;/Address&gt;&lt;/AddressValidateRequest&gt;"; WebClient wsClient = new WebClient(); byte[] responseData = wsClient.DownloadData(USPS); string response = string.Empty; foreach (byte item in responseData) { //this will return the xml response response += (char)item; } string result = response; Response.Write(result); } </code></pre> <p>Please see: <a href="https://www.usps.com/business/web-tools-apis/address-information-v3-1d.htm#_Toc131231398" rel="nofollow">How to Validate Address on USPS</a></p> <p><strong>Note:</strong> the <code>User ID</code> is my personal User ID that is issued by USPS Service Provider.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload