ZipTax API Integration

Use ZipTax for retrieving tax rates by county, state, country, etc.

Getting Started

  1. Clone repo. git clone [email protected]:mborn319/ziptax.git
  2. Copy config file and set up api key. cp config-sample.cfm config.cfm
  3. Start server. box start

Docs

Load Integration & Set API Key

ZipTax = New cfc.ziptax( application.apiKey );

Get Tax Rates

Right now there's only a single method to retrieve tax rates: getTaxRatesByLocation().

ZipTax.getTaxRatesByLocation( ... );

Get By Zip

ZipTax.getTaxRatesByLocation( myZipCode );

Get By Address

Please note that zip is still required.

ZipTax.getTaxRatesByLocation(
    street = "Pennsylvania Ave",
    city = "Washington",
    country = "US",
    zip = "20500"
);

TODO

  • Mockbox and testbox for tests
  • DocBox for documenting the ziptax cfc
  • CFLint cuz it's useful

 

 
  •   Michael Born
  • Published
  • 0.1.0 is the latest of 1 release(s)
    Published
  • Published on May 05 2018 04:20 PM
$ box install ziptaxcfc
No collaborators yet.
  • May 05 2018 04:20 PM
  • May 05 2018 04:20 PM
  • 59
  • 37
  • 1