i have registered myself with usps.com/webtools and get username/password.
when i am sending test request to usps test server, i am getting error "Error getting USERID attribute"
http://testing.shippingapis.com/ShippingAPITest.dll?API=[API_Name]&XML=[XML_String_containing_User_ID]"
i am sending request like this (userid is dummy in this case)
http://testing.shippingapis.com/ShippingAPITest.dll?API=ZipCodeLookup&XML=
<userid>
018BITOC5420</userid>
how to sent test request with xml userid?
Try this:
http://production.shippingapis.com/ShippingAPITest.dll?API=ZipCodeLookup&XML=<ZipCodeLookupRequest USERID="xxxxxxx"><Address ID="0"><Address1></Address1><Address2>6406 Ivy Lane</Address2><City>Greenbelt</City><State>MD</State></Address></ZipCodeLookupRequest>
Source: https://www.usps.com/business/web-tools-apis/address-information-v3-1d.htm