Return Data Using XML

Rather Than returning the informationin 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).

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 90999) 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.

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"

Sample ZIP Code Range

In the sample ZIP code range (90001 - 90999), the following ZIP codes contain multiple tax rates; which can be used to test the return of multiple rows:

  • 90304
  • 90601
  • 90631
Terms of service: At Zip2Tax, your security and confidentiality are our highest priority. We will never share your e-mail address or any other personally identifiable information (PII) with any other person or company. Please review our full privacy policy. License: Please refer to our end user license agreement. Cancellation and Refund Policy: Please refer to our refund policy prior to purchase.
Copyright © 2006-2020 Zip2Tax, LLC. All rights reserved. Zip2Tax™, SalesTax+4™ and Spot-On™ are trademarks of Zip2Tax, LLC.

IP Address:
JavaScript: Fail
loggedd: none

Don't have an account?

Sign up for a free trial here
If you do not have an account, please provide the information below.

Already have an account?
Free trial close Thank You!

Please check your email for your Username and Password.

If you do not receive your email shortly, check your SPAM folder for mail from "" or call us at 1-866-492-8494, Monday - Friday 8am - 5pm EST.
Zip2Tax Password recovery close Password recovery

Please provide your registered email to verify and send password.