The Communications REST v2 Tax Override object (ovr
) allows you to change the rate of a tax in the AFC tax engine within the context of a CalcTaxes
request.
We recommend using a client profile with a custom override file applied even though the CalcTaxes
request gives you the flexibility to input Override information for each transaction. This results in better performance from the AFC Tax Engine because your override settings are cached before tax calculation begins.
A Tax Override (ovr
) can only be applied to a tax type (tid
) that applies to the specified location (loc
) and tax level (lvl
).
Tax Override fields used for overriding a tax type rate:
Key | Name | Definition |
---|---|---|
loc | Location | Override location information There are several ways to input location information. See the Location for more information |
scp | Scope | Scope to which the override is applied: Country, State, County, or City |
tid | Tax Type ID | Tax Type to override. A list of Tax Type IDs is available in the /api/v2/afc/taxtype/{taxType} endpoint |
lvl | Tax Level ID | Tax Level to override
|
lvlExm | Level Exemptible | Indicates if the tax can be exempted using level exemptions
|
brkt | Tax Bracket | List of tax brackets for the override |
Scope (scp
) defines the tax level in which the taxes will be considered as candidates for override:
0
: Country1
: State2
: County3
: CityTax Bracket sets the rate and bracket information for the override.
Key | Name | Definition |
---|---|---|
rate | Tax Rate | Tax rate for this tax bracket
|
rate | Max Base | The maximum base that this rate applies to
|
This request contains these overrides:
tid
) 162 is overridden to a 0 rate (rate
within tax bracket (brkt
)) for all tax brackets (max
within tax bracket (brkt
) set to the "unlimited" value (2147483647
)) for all jurisdictions within the USA (ctry
within location (loc
))tid
) 163 is overridden to a 0.195 rate (rate
within tax bracket (brkt
)) for all tax brackets (max
within tax bracket (brkt
) set to the "unlimited" value (2147483647
)) for all jurisdictions within the USA (ctry
within location (loc
))Tax Type (tid
) 163 uses the overridden rate (rate
) of 0.195 for all line items (txs
) and the summarized taxes (summ
). Tax Type 162 is not returned as a tax for this transaction since the rate has been overridden to 0.