> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slm.m1amdocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tax Related Decision Rules

There are three relevant Tax decision rules :

| Decision rule type | Object | Answers |
| - | - | - |
| SalesTax | Entity::Transaction, TransactionBilling | rule=\* |
| SalesTax\_Avalara | Entity::Chargeback, Entity::MerchantCustomer, Entity::Refund, Entity::Transaction, TransactionBilling | rule=\* |
| SalesTax\_Vertex | Entity::Chargeback, Entity::MerchantCustomer, Entity::Refund, Entity::Transaction, TransactionBilling | rule=\* |

The following can be configured with the different Decision Rules

**SalesTax**

* "@" uses any taxable class
* "\_" data:
  * **tax** is the found **SalesTaxJurisdiction**
  * **distilled** is a hashref whose contents require reading the code (Obj/SalesTaxJurisdiction.pm)
* Returns **rule** = specially formatted string

*Example:*

IF \_.tax.country = 'US' AND \_.tax.district IN ('AL','AZ','IN','KY','NC','TN','TX','WI') THEN rule = 'nexus=y;class=OtherTaxable' STOP

**Vertex Decision Rules**

* @" uses any taxable class
* "\_" data is tax vendor data
* Returns **rule** = tax vendor hashref

*Example :*

IF \_.caller = 'calculate\_tax' THEN rule = \{'\_.Currency' => null,'\_.Dispatcher' => null,'\_.\*Seller' => \{'Company' => 'OTT', 'Division' => 'NFLX'}} STOP

**Parent topic:**[Taxes](../topics/taxesAbout)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.