> ## Documentation Index
> Fetch the complete documentation index at: https://magicads.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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-1.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=973f958233e1717c3b69bdb5f500a8ce" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-2.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=1eecb5d1064a522016cfe2af021e3b20" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-4.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=3d728716461ac3404f3a0c37acdfb203" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-5.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=df838e5e8eef46161ab0e492e6c89a24" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-6.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=70cedbeca983210f89caef969add1baa" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-7.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=bf7ade81ed5fae29740e5a9d7e276f6f" 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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-8.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=b83022c0d601e31bf21c131f3141491c" 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/magicads/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/magicads/IBtucosPyb4q0zfk/images/extensions/xero/xero-3.png?fit=max&auto=format&n=IBtucosPyb4q0zfk&q=85&s=ecd069ad3b8a175765f9a615c0d08896" 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>
