The Tax Calculation API allows you to retrieve the available tax calculators for a site and to calculate tax. Use the Tax Calculations API together with the Tax Groups API and the Tax Regions API to customize the application of tax for your business.
It's important to note the following before starting to code:
appId
for an available tax calculator. Use listTaxCalculators()
to retrieve a list of available tax calculators for a site, then create and manage your tax regions before calculating tax.To use the Tax Calculation API, import { taxCalculation }
from the wix-billing.v2
module:
import { taxCalculation } from "wix-billing.v2";