> ## Documentation Index
> Fetch the complete documentation index at: https://davinci.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Xero

> Integrate Davinci AI with Xero to automate all invoicing processes both for prepaid and subscription plans

<Check>
  This is a free extension available for anyone
</Check>

## Introduction

Effortlessly link Davinci AI to Xero, a top-tier cloud accounting platform, to automate and streamline your financial tasks such as invoices. This integration allows you to simplify Davinci AI invoicing right from within Xero.

## Extension Configuration

To be able to use Xero feature, follow these steps to setup Xero Extension.

<Steps>
  <Step title="Step 1">
    Go to the **Marketplace** in **Admin Panel** and install **Xero** extension.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-1.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=47e9b0f356719b5d4d70951f0c39a03e" width="397" height="285" data-path="images/extensions/xero/xero-1.png" />
  </Step>

  <Step title="Step 2">
    After installation is completed, go to **AI Settings** page in Admin Panel and click on **Extensions** tab there. Click on **Xero** there.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-2.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=2e5f9a2e737ccff92ba2ecc7fccdf3cb" width="519" height="102" data-path="images/extensions/xero/xero-2.png" />
  </Step>

  <Step title="Step 3">
    Register with Xero:

    1. Go to <a href="https://developer.xero.com/app/manage/" target="_blank">Xero Developer Portal</a> website and sign up with them in case if don't have an account with them.
    2. After your logged into your Xero Developer Portal, click on the **New App** button at center of the screen
           <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-4.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=9399ed651d605922813393ffea499aa9" width="1573" height="503" data-path="images/extensions/xero/xero-4.png" />
    3. Next, enter your **App Name** and select **Web App** for the Integration type, and provide your **Company URL**. For **Redirect URL** enter following **https\://YOUR\_DOMAIN\_NAME/app/callback/xero** and click on **Create App** button once done.
           <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-5.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=85171ce38d61e444856b68bd80dea7e8" width="408" height="961" data-path="images/extensions/xero/xero-5.png" />
    4. Next, select the **Webhooks** from the menu panel on the left.
           <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-6.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=15ec3f4e4d8f1289f8ba346e0668da62" width="265" height="383" data-path="images/extensions/xero/xero-6.png" />
    5. Fill in the webhooks settings as shown below and click on the **Save** button at the top right corner.
           <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-7.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=9d5e6c09853143ba2339a2111238967a" width="1002" height="443" data-path="images/extensions/xero/xero-7.png" />
    6. Next, select the **Configurations** from the menu panel on the left.
           <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-8.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=199685626197890a2a10ec127707f05f" width="224" height="422" data-path="images/extensions/xero/xero-8.png" />
    7. Check that your **Redirect URL** is set as stated on **Step 3** earlier, and click on the **Generate a secret** button. Copy both the **Client ID** and **Client Secret**.
           <img src="https://mintlify.s3.us-west-1.amazonaws.com/davinci/images/extensions/xero-9/xero-9.png" />
       <Note>Store your keys securely and never share it publicly. The key can provide direct access to your account.</Note>
  </Step>

  <Step title="Step 4">
    To control the settings of **Xero** exension, return to **AI Settings** page in Admin Panel and click on the **Extensions** tab, and select **Xero** extension.
    Configuration of Xero is done on this page, there will be no new menu item added in the Admin Panel. Below is the explanation of each field on Xero page.

    * Enter your **Xero Client ID**
    * Enter your **Xero Client Secret**
    * Afterwards click on **Save** button, it will automatically synchronize your users and all newly generated invoices upon checkout, will be stored on your Xero account as well.

    <img src="https://mintcdn.com/davinci/RvpQL2qGiUFVmysW/images/extensions/xero/xero-3.png?fit=max&auto=format&n=RvpQL2qGiUFVmysW&q=85&s=177a9d8495afe620cff24b065659bf81" width="613" height="536" data-path="images/extensions/xero/xero-3.png" />
  </Step>

  <Step title="Step 5">
    <Check>
      Configuration! You have successfully comleted the setup process of the Xero extension.
    </Check>
  </Step>
</Steps>
