BoxLang 🚀 A New JVM Dynamic Language Learn More...
Use TaxJar for retrieving tax rates by county, state, country, etc.
box install cfTaxjar
moduleSettings = {
cfTaxjar: {
APIToken: "MY_API_KEY"
}
}
property name="cftaxjar" inject="taxjar@cftaxjar";
var cfTaxjar = new cftaxjar.models.taxjar()
cfTaxjar.setAPIToken( 'MY_API_KEY' )
TaxJar = New taxjar.taxjar( application.apiKey );
Right now there's only a single method to retrieve tax rates: getTaxRatesByLocation()
.
TaxJar.getTaxRatesByLocation( ... );
TaxJar.getTaxRatesByLocation( myZipCode );
Please note that zip
is still required.
TaxJar.getTaxRatesByLocation(
street = "Pennsylvania Ave",
city = "Washington",
country = "US",
zip = "20500"
);
$
box install cftaxjar