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

# Avalara

> Integrate with Avalara to automatically calculate sales tax for invoices.

<img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/covers/avalara.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=51ec555fa83262dc50401c43cfd0450a" alt="Avalara" width="1789" height="712" data-path="images/integrations/covers/avalara.png" />

Integrate with Avalara to ensure your invoices are accurate and compliant with all state and local sales tax regulations.

### Capabilities

<Icon icon="check" iconType="solid" /> **Automated tax calculations**: Calculate accurate sales tax for every invoice<br />
<Icon icon="check" iconType="solid" /> **Up-to-date tax rates**: Automatically account for the latest tax rates and changes<br />
<Icon icon="check" iconType="solid" /> **Prevent tax errors**: Avoid manual tax calculation errors and ensure compliance<br />
<Icon icon="check" iconType="solid" /> **Avalara address validation**: Leverage Avalara's built-in customer address validation<br />

<Note> To use this integration, you need to have an Avalara account. If you don't have an Avalara account yet, reach out to our team to make use of our **Sequence & Avalara discount**. </Note>

### Integration setup

<Note>Before integrating with Avalara you must ensure that your customers in Sequence have unique email addresses.</Note>

<Steps>
  <Step title="Connect to Avalara">
    <Tabs>
      <Tab title="View integration">
        Go to Integrations, find Avalara and select "Manage integration".

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_1.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=587f21954258b2589576c2ad7a21adeb" alt="Integration setup" width="3248" height="2112" data-path="images/integrations/avalara/avalara_1.png" />
        </Frame>
      </Tab>

      <Tab title="Authenticate">
        Enter your Avalara Account ID and License key and connect (you can locate these under Settings > License and API keys in your Avalara account).

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_2.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=c2f59154213f0de1871dfcff3e012eb3" alt="Enter Avalara credentials" width="2880" height="1882" data-path="images/integrations/avalara/avalara_2.png" />
        </Frame>
      </Tab>

      <Tab title="Select Avalara company">
        Once connected, select the company to use from your Avalara account.

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_3.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=91224e076eb1fc7e36f41ce1d3edf1a4" alt="Select Avalara company" width="2880" height="1882" data-path="images/integrations/avalara/avalara_3.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>

  <Step title="Assign Avalara tax codes">
    <Tabs>
      <Tab title="View tax categories">
        Start by assigning Avalara tax codes to product tax categories in Sequence (go to Settings > Sales Tax). Once Avalara is connected, tax categories are managed via Avalara tax codes. You can no longer manage tax categories with custom rates.

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_4.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=ed3fbba03e6d2de9d533b49f8a9bf806" alt="Tax categories" width="2880" height="1882" data-path="images/integrations/avalara/avalara_4.png" />
        </Frame>
      </Tab>

      <Tab title="Assign tax code">
        For each tax category in use, assign a corresponding Avalara tax code.

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_5.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=eaae54c0c47029c90562de0f449e9f5d" alt="Tax categories" width="2880" height="1882" data-path="images/integrations/avalara/avalara_5.png" />
        </Frame>
      </Tab>

      <Tab title="Look up tax code">
        You can search for and directly copy over Avalara tax codes from Avalara's website.

        <Frame>
          <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_5_1.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=6279bdd0d0e9da55a09bc73a1229c07f" alt="Tax codes in Avalara" width="2880" height="1882" data-path="images/integrations/avalara/avalara_5_1.png" />
        </Frame>
      </Tab>

      <Tab title="Add tax code">
        Once entered, Sequence will look up and validate the tax code.

        <Frame>
          <img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/avalara/avalara_7.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=ccc8965d5a41e0f5848bd83cb49bbe81" alt="Confirm tax code" width="2880" height="1882" data-path="images/integrations/avalara/avalara_7.png" />
        </Frame>

        Once assigned, the tax category is managed via an Avalara tax code.

        <Frame>
          <img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/avalara/avalara_7_1.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=6b5d84f3d03c03bf4914b2076dcbf369" alt="Confirm tax code" width="2880" height="1882" data-path="images/integrations/avalara/avalara_7_1.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>

  <Step title="Add tax categories to products">
    In your product catalogue, assign product tax categories to products. In order to automatically calculate sales tax for a given product, its tax category must be mapped to an Avalara tax code.

    <Frame>
      <img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/avalara/avalara_8.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=266ba80c6cecc8aa41b0ede3df0fc0a7" alt="Confirm tax code" width="2880" height="1882" data-path="images/integrations/avalara/avalara_8.png" />
    </Frame>

    <Icon icon="check" iconType="solid" /> You're now set up to automatically calculate sales tax on invoices via Avalara.<br />
  </Step>
</Steps>

### Calculating sales tax with Avalara

Once you're connected to Avalara, Sequence will calculate sales tax for every draft invoice via Avalara. Whether and how tax is calculated depends on the following factors:

* Your merchant location in Sequence (Settings > Merchant > Address)
* Your customer's location & tax status
* Your tax configuration and tax exposure as reported to Avalara
* The Avalara tax code assigned to a sold product

<Tabs>
  <Tab title="Invoice calculation">
    Tax is automatically calculated and added to the invoice.

    <Frame>
      <img src="https://mintcdn.com/sequence/AaBHfWeLf5Am1S8n/images/integrations/avalara/avalara_9.png?fit=max&auto=format&n=AaBHfWeLf5Am1S8n&q=85&s=d59cc3a223f30dbe034c9063e755574d" alt="Tax categories" width="3248" height="2112" data-path="images/integrations/avalara/avalara_9.png" />
    </Frame>
  </Tab>

  <Tab title="Invoice PDF">
    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_10.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=2c2b7883e60078918f295987a23ab234" alt="Tax categories" width="3248" height="2112" data-path="images/integrations/avalara/avalara_10.png" />
    </Frame>
  </Tab>

  <Tab title="Avalara tax calculator">
    If you're getting started with Avalara, you can use Avalara's tax calculator from the Avalara app to run through example sales tax calculations.

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_11.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=77affa34b251ec39f5ceb4652c9bb120" alt="Tax categories" width="3024" height="3569" data-path="images/integrations/avalara/avalara_11.png" />
    </Frame>
  </Tab>

  <Tab title="Corresponding transaction in Avalara">
    For each invoice, Sequence creates a transaction in Avalara that includes a detailed breakdown of the tax calculation. If you're using Avalara to file tax, you need to commit these transactions in Avalara.

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_12.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=84602de89f1c776c3136244a7b66ce0b" alt="Avalara transaction details" width="3248" height="2112" data-path="images/integrations/avalara/avalara_12.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_13.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=f090c71628566680c45e721b285ab029" alt="Avalara transaction details" width="3248" height="2112" data-path="images/integrations/avalara/avalara_13.png" />
    </Frame>
  </Tab>
</Tabs>

### Customer address validation via Avalara

Once you're connected to Avalara, Sequence will validate a customer's billing address via Avalara. This is required to ensure sales tax is accurately calculated based on the customer's locale. For customers located outside of the US, Avalara only checks the country.

<Frame>
  <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_14.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=5fd00deefb9449cd387424fc214bcde0" alt="Avalara address check" width="3002" height="1984" data-path="images/integrations/avalara/avalara_14.png" />
</Frame>

### Troubleshooting

<AccordionGroup>
  <Accordion title="Tax categories not mapped to Avalara tax codes">
    If a billing schedule includes products with tax categories that have not been mapped to an Avalara tax code, you will be prompted to assign a tax code.

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_15.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=e62bf29d847055894d8e3e1c9c2f0f86" alt="Unmapped tax code" width="3002" height="1984" data-path="images/integrations/avalara/avalara_15.png" />
    </Frame>
  </Accordion>

  <Accordion title="Connecting to an Avalara Sandbox or Production account">
    When setting up the integration, ensure you are connecting to the right Avalara account:

    * a Sequence Sandbox only connects to an Avalara Sandbox
    * a Sequence Production account only connects to an Avalara Production account
  </Accordion>

  <Accordion title="Incorrect merchant address">
    Ensure that you have correctly configured your merchant address in Sequence. This address needs to match your company's address in Avalara.

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_16.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=868e0175d15d52176903fea4548a5f0c" alt="Merchant address in Sequence" width="3248" height="2112" data-path="images/integrations/avalara/avalara_16.png" />
    </Frame>
  </Accordion>

  <Accordion title="Account country mismatch">
    For Avalara to successfully calculate tax, your Sequence account's country must match your Avalara company's country. If in doubt, reach out to our team.
  </Accordion>
</AccordionGroup>

### Frequently asked questions (FAQ)

<AccordionGroup>
  <Accordion title="Do Sequence products need to be synced with Avalara?">
    No. Sequence's Avalara integration maps product tax categories to Avalara tax codes. When Sequence generates an invoice for a product, the assigned tax code is used to calculate tax via Avalara.
  </Accordion>

  <Accordion title="Can I use Avalara as a UK business?">
    Yes.
  </Accordion>

  <Accordion title="How to commit transactions in Avalara?">
    Go to Transactions and find the relevant transactions to commit. Transactions created by Sequence appear as draft. To commit transactions in bulk consider exporting and importing transactions.
  </Accordion>

  <Accordion title="How to test sales tax calculations?">
    To test sales tax calculations, use the tax calculator tool from your Avalara account.
    Enter your company address, customer address and item to sell to view an example calculation.

    <Frame>
      <img src="https://mintcdn.com/sequence/mEkhIlLyJGyDgjJd/images/integrations/avalara/avalara_17.png?fit=max&auto=format&n=mEkhIlLyJGyDgjJd&q=85&s=a8b1d81f32803bb2a91d489541c899d0" alt="Test calculation" width="2936" height="1940" data-path="images/integrations/avalara/avalara_17.png" />
    </Frame>
  </Accordion>
</AccordionGroup>
