https://github.com/avadev/avatax-calc-rest-javascript
https://github.com/avadev/avatax-calc-rest-javascript
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/avadev/avatax-calc-rest-javascript
- Owner: avadev
- License: other
- Created: 2014-05-10T01:24:48.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-06T23:46:01.000Z (over 11 years ago)
- Last Synced: 2024-03-27T01:28:10.524Z (over 2 years ago)
- Language: JavaScript
- Size: 211 KB
- Stars: 4
- Watchers: 12
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
AvaTax-REST-JavaScript
=====================
[Other Samples](http://developer.avalara.com/api-docs/api-sample-code)
This is a barebones JavaScript sample demonstrating the [AvaTax REST API](http://developer.avalara.com/api-docs/rest) methods:
[tax/get POST](http://developer.avalara.com/api-docs/rest/tax/post/), [tax/get GET](http://developer.avalara.com/api-docs/rest/tax/get), [tax/cancel POST](http://developer.avalara.com/api-docs/rest/tax/cancel), and [address/validate GET](http://developer.avalara.com/api-docs/rest/address-validation). Calculation output is minimally parsed and output to the browser.
For more information on the use of these methods and the AvaTax product, please visit our [developer site](http://developer.avalara.com/) or [homepage](http://www.avalara.com/)
Dependencies:
-----------
- PHP 5.0 or later
Requirements:
----------
- Authentication requires an valid **Account Number** and **License Key**, which should be entered in AvaTax.php
- If you do not have an AvaTax account, a free trial account can be acquired through our [developer site](http://developer.avalara.com/api-get-started)
Contents:
----------
Sample Files
CancelTaxTest.htmlDemonstrates the CancelTax method used to void a document.
EstimateTaxTest.htmlDemonstrates the EstimateTax method used for product- and line- indifferent tax estimates.
GetTaxTest.htmlDemonstrates the GetTax method used for product- and line- specific calculation.
PingTest.htmlUses a hardcoded EstimateTax call to test connectivity and credential information.
ValidateAddressTest.htmlDemonstrates the ValidateAddress method to normalize an address.
Other Files
AvaTax.jsContains the core classes and builds method-specific URIs, etc to call the service with AvaTax.php.
AvaTax.phpProvides a server-side php proxy to make the service calls, contains the AvaTax account credentials used for all calls.
.gitattributes-
.gitignore-
LICENSE.md-
README.md-