The latest Default Pricing Model includes a function to calculate sales tax if there are states and percentages setup in the model inputs.
The pricing model needs to be setup with Model Input to know which states and what percentage to apply taxes.
To add a Model Input:
Click the +Add button
Under Name, enter
pricingSettings
Select "String" type
In the string field, construct the following:
{"stateTaxes":{"STATEID":percentage}}
For example,
{"stateTaxes":{"CO":0.06}}
.Each state can be comma separated. For example,
{"stateTaxes":{"CO":0.06,"KS":0.04,"MO":0.075}}
The percentages should be represented in decimal format. For example, 6% tax rate is 0.06.