Let’s dive in. We’re going to send a simple CalcTaxes
call using Postman and then inspect the results.
Add these mandatory headers to your request:
Authorization
using basic HTTP authenticationclient_id
Content-Type: application/json
For the body of the POST
request, copy and paste this example:
cmpn
)inv
) detailsdoc
) is included so we can commit this transaction latercmmt
) is set to false
. If you want to commit immediately, set the Commit flag to true
in the invoice.bill
) is a Location object and is specified in different ways. We pass a combination of Country (ctry
), City(city
), State (st
), and Postal Code (zip
), but we can also pass a single PCode (pcd
), FIPS (fips
), or NPANXX (npa
) value.date
key is important because it affects which rules are used by our tax engine to calculate taxes. Tax rules change frequently, and our Content Team continuously updates our tax engine to reflect these changes.itms
) is contained within the Invoice
. This is where you enter information such as Charge (chg
), Transaction/Service Pair (tran
and serv
), and number of Lines (line
).The CalcTaxes response contains a list of detailed tax amounts (txs
):
Each detailed tax record returned contains additional information including:
bill
: Is the tax billable? Or, can this tax be passed on to the end-customer?cmpl
: Will this tax be included in compliance reporting?tm
: Taxable Measurecat
: Tax Categoryrate
: Tax Ratelvl
: Tax Level (Federal, State, County, Local)tax
: Tax AmountFor more information, see CalcTaxes Response.