Table Download | HTTP Request
Automatic table downloads can be easily developed using our HTTP table download feature through https://tables.Zip2Tax.com. Pass in your username and password as request variables in the query string.
For a quick demonstration, point your browser to
https://tables.zip2tax.com?usr=<USERNAME>&pwd=<PASSWORD>&id=<ID>
Instead of a web page, you will receive a file to save or
open.
This is intended to be non-interactive, so you may use the programming language of your choice to make the HTTP request. To request the list of table(s) you have purchased (including their ID numbers), use an ID of 0. Successive ID numbers will download your corresponding table(s). These items will be sent in .csv format with a heading row. Various error messages may also be returned as strings of plain text. Lines are terminated <CR><LF>.
Optionally, if you need to retrieve tables for a previous month,
append the desired date to the query string like this:
&date=<YYYY>-<MM>
Note: Opening table files with MS-Excel (using Excel's default settings) modifies some versions of the tables in ways that will make them incompatible with certain shopping carts. You may open the files for your viewing with Excel, but do not save the tables from Excel. Instead, choose "Save As" rather than the "Open" when downloading the tables.
Examples:
- List my tables:
https://tables.zip2tax.com?usr=sample&pwd=password&id=0
Substitute your login for "sample" and your password for "password". - Download a table:
https://tables.zip2tax.com?usr=sample&pwd=password&id=1
To download the listed table, substitute the desired table's ID for "1". - Download a previous month's table:
For example, to download your July, 2011 table:
https://tables.zip2tax.com?usr=sample&pwd=password&date=2011-07&id=1 - Similarly, to list the tables available from July, 2011:
https://tables.zip2tax.com?usr=sample&pwd=password&date=2011-07&id=0
This interface is intended for developers to automate the
download process. An interactive version is available under
the "My Account" section of the Zip2Tax website (available
after you log in).
"My Accounts/TaxTable Downloads" feature.
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