> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/utilities/manage-tax-services-avalara-integration/configuration-setup.md).

# Configuration Setup

***

Currently, Xoro supports Avalara to get automatic Sales tax calculations. However, more services will be added in the future.

To manage all your tax-related services, go to **Menu > Utilities > Manage Tax Services**

<figure><img src="https://docs.xorosoft.com/~gitbook/image?url=https%3A%2F%2F3188343778-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fkf8DNCjEfcSm64PCPcmf%252Fuploads%252FHUuoxgHC35kGA729YhyK%252Fimage.png%3Falt%3Dmedia%26token%3D3f6b52af-ef3a-4f73-aa0b-e1e4f5eefd7c&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=ba836ab8&#x26;sv=2" alt=""><figcaption></figcaption></figure>

Let us find out how the Avalara Tax Service works within the Xoro system.

#### Step 1: Generate Credentials <a href="#step-1-generate-credentials" id="step-1-generate-credentials"></a>

A license key is required to connect Xoro to Avalara Tax. If you generate a new license key, update it in Xoro because your old license key won’t work anymore.

To generate a License key follow the steps below:

* Login to your Avalara account.

  <figure><img src="https://docs.xorosoft.com/~gitbook/image?url=https%3A%2F%2F3188343778-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fkf8DNCjEfcSm64PCPcmf%252Fuploads%252FqyWOCz8g5CY90stxxK46%252Fimage.png%3Falt%3Dmedia%26token%3D0ddc5212-62d9-4b1f-b415-d779cf8c21cb&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=a36d3c79&#x26;sv=2" alt=""><figcaption></figcaption></figure>

  <figure><img src="https://docs.xorosoft.com/~gitbook/image?url=https%3A%2F%2F3188343778-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fkf8DNCjEfcSm64PCPcmf%252Fuploads%252FO7svqjLMsMXNDY2SVAAE%252Fimage.png%3Falt%3Dmedia%26token%3D2e9564af-0502-4def-abbf-1864f059ba31&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=c109c10&#x26;sv=2" alt=""><figcaption></figcaption></figure>

* Add/Reset the License Key.&#x20;

* You will receive the credentials through your registered email.

* Once the credentials are generated you can use them in Xoro for the integration process.

<figure><img src="https://docs.xorosoft.com/~gitbook/image?url=https%3A%2F%2F3188343778-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fkf8DNCjEfcSm64PCPcmf%252Fuploads%252FfxFFbC7tHVIC8evfQ2db%252Fimage.png%3Falt%3Dmedia%26token%3Ddfcbf4f7-2b83-4dde-a1f4-ad1e331efce7&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=e8c2e06d&#x26;sv=2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://docs.xorosoft.com/~gitbook/image?url=https%3A%2F%2F3188343778-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fkf8DNCjEfcSm64PCPcmf%252Fuploads%252FUaCT6ifyJHoHYHDKcTYX%252Fimage.png%3Falt%3Dmedia%26token%3Db89a6f39-1558-449d-8f63-784d74791e0b&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=269f32e6&#x26;sv=2" alt=""><figcaption></figcaption></figure>

***

#### **Important Notes:**

* Regenerating the license key invalidates the previous key
* Always update the latest credentials in XoroERP

***

### **Integrating Avalara with XoroERP**

***

#### **Navigation**

**Menu → Utilities → Manage Tax Services**

<figure><img src="/files/Fhv4pVST5hBIdi5ILhO0" alt=""><figcaption></figcaption></figure>

***

#### **Add Service**

* Click **Add Services**
* Select **Connect Avalara**

***

#### **Configuration Fields**

After connecting **Avalara** in the **Manage Tax Services** module, you will see a set of configuration options. These settings help you control how tax is calculated and saved when you create transactions in XoroERP.

<figure><img src="/files/uSDz0iOm4FcedrrgVk81" alt=""><figcaption></figcaption></figure>

***

**Account Name**

* Internal reference name

***

**AvaTax Account ID**

* Numeric ID provided by Avalara

***

**AvaTax License Key**

* Authentication key

***

**AvaTax Company Code**

* Company identifier in Avalara

***

**Connection Type**

* Sandbox (testing)
* Production (live)

***

**Country**

* Defines the tax jurisdiction

***

### **Functional Settings**

<figure><img src="/files/3E40lAogzVASsqqk2NiO" alt=""><figcaption></figcaption></figure>

***

Each setting affects what happens when you click **Save** on a transaction and review the tax in the **Tax Summary pop-up**.

***

#### **Enable AvaTax for Sales**

Use this setting to decide whether Avalara should calculate tax for your **Sales transactions**.

When this option is enabled, XoroERP automatically uses Avalara to calculate tax whenever you create or save Sales documents such as Sales Orders, and Invoices. You do not need to manually manage tax rates, as Avalara will calculate the correct tax based on location, product type, and customer details.

When this option is disabled, Avalara will not be used for Sales. In that case, tax will be calculated using the default or manually configured tax settings within XoroERP.

{% hint style="info" %}
Toggling this ON means the system will automatically calculate accurate tax for your sales order transactions.
{% endhint %}

***

#### **Enable AvaTax for Purchase**

This setting controls whether Avalara should be used for **Purchase transactions**.

When enabled, XoroERP calculates tax automatically for Purchase Orders using Avalara. This helps ensure that the tax applied to purchases is accurate and aligns with the applicable rules for vendor location and item type.

When disabled, tax for Purchase transactions will not be calculated using Avalara, and you will need to rely on manual or default tax settings.

{% hint style="info" %}
Toggling this ON means the system will automatically calculate accurate tax for your purchase order transactions.
{% endhint %}

***

#### **Calculate Tax**

When the **Calculate Tax** option is enabled, XoroERP automatically calculates tax using **Avalara.** Whenever you save a transaction, the calculated tax is displayed in the Tax Summary pop-up.

When this option is disabled, XoroERP does not use Avalara, and tax is instead handled using the ERP’s default or manually configured tax setup.

**In simple terms:**

* **Enabled** → Tax is calculated automatically using Avalara
* **Disabled** → Tax is managed within XoroERP without Avalara

***

#### **Record Document**

This setting determines whether the transaction should be saved in Avalara after tax is applied.

When enabled, once you review the tax in the pop-up and click **Apply & Save**, the transaction is recorded in Avalara. This is important for maintaining proper tax records and for future tax reporting and filing.

When disabled, the system will still calculate and show tax, but the transaction will not be stored in Avalara. This means it will not be considered for tax reporting purposes.

{% hint style="info" %}
Toggling this ON means that after you confirm the tax, the transaction is saved for official tax reporting.
{% endhint %}

***

#### **Tax Item Per State**

This setting is useful if you deal with transactions across different states or regions.

When enabled, XoroERP allows tax to vary for the same item depending on the state or location where it is being sold or delivered. Since tax rules can differ from one state to another, this ensures that the correct tax is applied based on the destination.

When disabled, the same tax logic is applied to an item regardless of the state, which may not always be accurate for businesses operating in multiple regions.

{% hint style="info" %}
Toggling this ON applies different tax rules for the same item based on where it is sold.
{% endhint %}

***

#### **How These Settings Work Together**

When you create a transaction and click **Save**, here’s what happens:

* XoroERP checks whether Avalara is enabled for that type of transaction (Sales or Purchase)
* If enabled and **Calculate Tax** is turned ON, the system calculates tax automatically
* The **Tax Summary popup** appears showing the calculated tax
* After reviewing, you click **Apply & Save**
* If **Record Document** is enabled, the transaction is also saved in Avalara for reporting

***

#### **Quick Understanding**

* Enable AvaTax for Sales → Use Avalara for Sales transactions
* Enable AvaTax for Purchase → Use Avalara for Purchase transactions
* Calculate Tax → Automatically calculate tax when saving
* Record Document → Save the transaction in Avalara for reporting
* Tax Item Per State → Apply different tax rules based on location

***

#### **Toggle Behavior Summary**

| Calculate Tax | Record Document | Behavior                                                                      |
| ------------- | --------------- | ----------------------------------------------------------------------------- |
| ON            | OFF             | Tax is calculated automatically using Avalara. It is not recorded in Avalara. |
| ON            | ON              | Calculates and records using Avalara.                                         |
| OFF           | ON              | Not recommended                                                               |
| OFF           | OFF             | Avalara not used                                                              |

***

### **Test Connection**

* Click **Test Connection**
* System validates:
  * Credentials
  * Environment
  * Company mapping

***

#### **Save Configuration**

* Saved configuration appears under **Active Services**

<figure><img src="/files/6OTgHfdJYEHdo27RFy2J" alt=""><figcaption></figcaption></figure>

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xorosoft.com/xoroerp-1/utilities/manage-tax-services-avalara-integration/configuration-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
