BoxLang 🚀 A New JVM Dynamic Language Learn More...

CFTaxjar

v0.2.1 Modules

TaxJar API Integration

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

Getting Started

ColdBox Setup

  1. Install cftaxjar - box install cfTaxjar
  2. Add a module setting to set the api key:
moduleSettings = {
    cfTaxjar: {
        APIToken: "MY_API_KEY"
    }
}
  1. Inject cftaxjar - property name="cftaxjar" inject="taxjar@cftaxjar";

Vanilla CFML Setup

  1. Install cftaxjar - `box install cfTaxjar
  2. Initialize the taxjar component- var cfTaxjar = new cftaxjar.models.taxjar()
  3. Set the API key - cfTaxjar.setAPIToken( 'MY_API_KEY' )

Docs

Load Integration & Set API Key

TaxJar = New taxjar.taxjar( application.apiKey );

Get Tax Rates

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

TaxJar.getTaxRatesByLocation( ... );

Get By Zip

TaxJar.getTaxRatesByLocation( myZipCode );

Get By Address

Please note that zip is still required.

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

TODO

  • Add ColdBox support ✅
  • Add DocBox-style documentation ❌
  • Write TestBox tests ❌

$ box install cftaxjar

No collaborators yet.
  • {{ getFullDate("2019-09-25T07:26:41Z") }}
  • {{ getFullDate("2019-09-25T07:29:07Z") }}
  • 1,660
  • 1,577