Zip2Tax Logo
Sales & Use Tax Rates
  for State, County, City
     and Special Districts
Zip2Tax Logo

Developers Information

Return Data Using XML

 

Rather Than returning the information in a plain string, you may prefer to have data passed back using the XML Format

Quick XML Link

The simpliest way to view XML is to click on the link below (use the browser's back button to return to here).

http://www.zip2tax.com/Link/Lookup_XML.asp?zip=90210&usr=sample&pwd=password

Or you can paste this line of code into any browser's URL box.

When XML is returned to your browser it will look differently depending on your browser brand (IE, Firefox) and version. But, the information is the same. In a practical application you would typically read the results into a requestXML object.

You may wish to try other zip codes (between 90001 and 92999) to see the results.

This example shows our basic version of tax information giving you the total rate. You may require our full breakout information which returns all the components (State, County, City and Special District) of the total. By clicking the link below you can view this.

http://www.zip2tax.com/Link/Lookup_XML_Extended.asp?zip=90210&usr=sample&pwd=password

Error Handling

Two fields have been added for error handling, error_code and error_message. Below is a list of possible results . . .

0"No Errors"
1"Missing Zip Code"
2"Missing Password"
3"Connection Error"
4"Zip Code Less than 5 Characters"
5"Zip Code Out of Range for Sample"
6"Incorrect Username/Password"
7"Zip Code Not Found"
8"Missing Username"
99"Error Unknown"

Login

User Name:
Password:
  Submit

Do not log in if you wish to use the free trial lookups. Simply enter a ZIP code in the box below.

Having trouble? Call 1-866-492-8494 for help.

Look Up The Tax

Zip Code:
  Lookup

Try it for FREE. Enter a ZIP code to get the sales tax rate. 50 Free Lookups (Max. 10 per day)