# Connecting To Xero

Once you already have a Xero account, you have to set up a new tax and a chart of accounts.

{% tabs %}
{% tab title="Setting Up Xero" %}

### Step 1:&#x20;

First, you have to set up a new tax rate in Xero called No Tax. By setting the rate to 0%, we prevent Xero from performing any tax computations. This will avoid discrepancies made between Imonggo and Xero when rounding off while performing tax computations. Don’t worry, the tax collected is recorded in the current liability account you mapped to each tax rate.

Go to Settings -> General Settings and click Tax Rates. Click the New Tax Rate button, and create a tax rate called No Tax at 0%. Click Save.

<figure><img src="/files/7xy6YYZ1envgXQKWyMWY" alt=""><figcaption></figcaption></figure>

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

### Step 2:

Next, you have to create accounts for the sales total and the payment types. Log-in to your Xero account and go to Settings -> Chart of Accounts. You may create each account manually, or you may upload a CSV file. [Download a sample here](https://drive.google.com/open?id=1dcepId-XzHRHciFlyEzjBFdFURIGrPdP).

To create each account, just click Add Account, and create one entry for each of the following: Sales, Cash, Credit Card, Debit Card, Gift Certificate, Check, Other, Deposits, and Points.

Copy the following settings for each account:

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

The account creation screen looks like the following:

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

Please make sure to that the "Show on Dashboard Watchlist" and "Show in Expense Claims" are off, and "Enable payments to this account" are on for every account. The description field is also optional, so you can choose to leave it blank.

### Step 3:

After setting up the account for sales total and the payment types, you have to set up an account for each tax that you have. Click the Add Account button again to create a tax.

If you have a single tax, then you only have to create one tax account. You can follow the screenshot below:

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

If you have multiple taxes, just create one tax account for each additional tax. For example, if you have a Sin Tax, just click Add Account again to add it.

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

After setting up the accounts for revenue, payment types and taxes, you can start connecting your Imonggo account to Xero.
{% endtab %}

{% tab title="Integrating Imonggo with Xero" %}

### Step 1:

Before you can connect your Imonggo account, you have to turn on the API. The API, or the application program interface, helps Imonggo and Xero communicate. To turn it on, log-in to your Imonggo account and go to Settings -> Premium Feature Settings.

Add a checkmark to the API option, and click Save.

<figure><img src="/files/8vpBSEuWn8IUCLuL50th" alt=""><figcaption></figcaption></figure>

##

### Step 2:

After turning on the API interface, go to Settings -> Add-Ons for Premium Members. You should now see the Xero option. Add a checkmark beside to select the Xero option, and click the Connect to Xero button. (You do not have to click the save button right away.) You will then be redirected to [www.xero.com](http://www.xero.com/).

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

### Step 3:

Login to your account and you should see an authorization screen. Choose the correct organization, and click Authorize. You will be redirected to Imonggo and you should see a new Xero Settings button.

<figure><img src="/files/8KaTyjQDSKPSdhbpGHPY" alt=""><figcaption></figcaption></figure>

##

### Step 4:

Once redirected, click on the new Xero Settings button to see an account mapping popup.

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

Map the accounts as shown below.

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

##

### Step 5:&#x20;

Then you have to map the taxes. Go to Settings -> Manage Taxes. Click edit taxes on each tax to map the taxes, as shown.

<br>

<figure><img src="/files/7MwOOYPdw3WzjoyxnMdt" alt=""><figcaption></figcaption></figure>

If you have more than one tax, edit each tax to map it properly.
{% endtab %}

{% tab title="Syncing to Xero" %}
After integrating your Imonggo account to your Xero account, you can start uploading your daily sales summary to Xero. To do so, go to Office -> Sales Reports and click Post to Xero.

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

Click Submit on the resulting popup to confirm.

Congratulations, you have posted your sales to Xero.
{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://imonggo.gitbook.io/imonggo-help-center/advanced-topics/connecting-to-xero.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
