> ## 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.

# Anrok

> Connect Anrok to automatically calculate, apply, and record sales tax on your invoices.

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

Connect Anrok to Sequence and automate sales tax end to end. Anrok calculates the right tax on every invoice based on your customer's location and tax registrations, applies it automatically, and records each finalized invoice back in Anrok so your returns stay filing-ready. This integration requires an Anrok account.

### Capabilities

<Icon icon="check" iconType="solid" /> **Automated tax calculations**: Anrok calculates sales tax on every invoice from your customer's location, tax registrations, and the tax category of each line<br />
<Icon icon="check" iconType="solid" /> **Up-to-date rates**: Anrok applies the latest rates and rules for each jurisdiction, so you never maintain rates by hand<br />
<Icon icon="check" iconType="solid" /> **Filing-ready records**: Finalized invoices and credit notes are recorded in Anrok automatically, keeping your tax obligations in sync for filing<br />
<Icon icon="check" iconType="solid" /> **Credit notes and voids**: Refunds and voided invoices reverse the corresponding tax in Anrok automatically<br />
<Icon icon="check" iconType="solid" /> **Multi-jurisdiction support**: Record multiple tax registrations per customer for businesses selling across states and countries<br />
<Icon icon="check" iconType="solid" /> **Exempt customer handling**: Mark customers as tax exempt and Anrok applies the correct treatment<br />

### Before you begin

<Note>You need an Anrok account and an API key to connect this integration. Reach out to your Anrok representative if you don't yet have one.</Note>

Because Anrok determines tax from location, make sure the following are accurate before you connect:

* **Your merchant address** at **Settings > Merchant > Address**. This is the point of origin for every calculation.
* **Your customers' billing addresses**. Tax is calculated against where your customer is located.
* **Tax registration IDs for non-US customers**. Anrok uses each customer's tax registration ID to calculate tax outside the US, so record it for any non-US customer.

### Integration setup

<Steps>
  <Step title="Connect to Anrok">
    <Tabs>
      <Tab title="View integration">
        Navigate to **Browse integrations**, locate Anrok in the **Tax** section, and click **Manage integration**.

        <Frame>
          <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_1.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=135538bedba1365f7f7b209a1b38fd35" alt="Anrok in the Tax section of Browse integrations" width="3448" height="1906" data-path="images/integrations/anrok/anrok_1.png" />
        </Frame>
      </Tab>

      <Tab title="Store API key">
        Paste your Anrok API key into the field provided and click **Test credentials** to verify the connection. Once validated, click **Save changes** to activate the integration. Your API key is generated in your Anrok account settings.

        <Frame>
          <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_2.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=a28e544a1fad570ec381619ae6c3ee18" alt="Enter Anrok API key and test credentials" width="3450" height="1906" data-path="images/integrations/anrok/anrok_2.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>

  <Step title="Map your tax categories to Anrok">
    Navigate to **Settings > Sales Tax**. With Anrok connected, your Sequence tax categories are mapped to Anrok tax categories rather than to custom rates.

    For each tax category, click **Add Anrok mapping** and choose the matching Anrok tax category. Anrok offers standard tax categories for common product types, and you can also map to custom categories you've created in Anrok.

    <Tip>Mark one mapping as the **default**. Line items whose tax category has no specific mapping fall back to the default, so tax can always be calculated.</Tip>

    <Frame>
      <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_3.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=ed744e9636b315a80d792490f06b2af7" alt="Tax categories with Anrok mappings" width="3444" height="1906" data-path="images/integrations/anrok/anrok_3.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_4.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=420334fc80fc31abcf9eaa5a913cecd5" alt="Add Anrok mapping modal" width="3448" height="1902" data-path="images/integrations/anrok/anrok_4.png" />
    </Frame>

    <Warning>If a tax category has no mapping and you haven't set a default, invoices using that category can fail to finalize. Sequence shows a warning on the Sales Tax page when categories are unmapped and no default exists.</Warning>
  </Step>

  <Step title="Assign tax categories to products">
    Every product that should be taxed needs a tax category assigned. Go to your **Products** catalog and assign a tax category to each product. For automatic tax calculation to work on a line item, its tax category must have a corresponding Anrok mapping (or you must have set a default).

    <Frame>
      <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_5.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=b864d47b2bcfbf8a4c127fee84de1bcc" alt="Assign a tax category to a product" width="3444" height="1904" data-path="images/integrations/anrok/anrok_5.png" />
    </Frame>
  </Step>

  <Step title="Add customer tax registrations">
    On a customer's record, add the tax registration IDs for the jurisdictions where that customer is registered. Anrok uses these to apply the correct treatment per jurisdiction.

    <Note>A customer can have **more than one** tax registration, which is useful when they're registered across multiple states or countries. Add each registration that applies.</Note>

    <Frame>
      <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_6.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=ba17f0f2ecd61400aee726b81922f498" alt="Customer with multiple tax registrations" width="3446" height="1906" data-path="images/integrations/anrok/anrok_6.png" />
    </Frame>

    <Icon icon="check" iconType="solid" /> Your Anrok integration is now active and will calculate sales tax automatically.<br />
  </Step>
</Steps>

### How it works

With Anrok connected, sales tax is calculated automatically, so you no longer enter tax rates by hand. Anrok determines the amount from three things:

* The origin address configured at **Settings > Merchant > Address**
* Your customer's billing location and tax registrations
* The Anrok tax category mapped to each line item's tax category

**Tax on draft invoices**

As you build a draft invoice, Sequence asks Anrok to calculate tax and shows it as a line on the invoice. The amount updates as line items, quantities, or the customer change, so you always see an accurate preview.

**Recording tax at finalization**

When an invoice is finalized, Sequence records the transaction in Anrok so the tax is captured for filing. Tax is shown per line item in Sequence and on the invoice PDF your customer receives.

<Frame>
  <img src="https://mintcdn.com/sequence/0Zn7y3hzSV29dOsg/images/integrations/anrok/anrok_7.png?fit=max&auto=format&n=0Zn7y3hzSV29dOsg&q=85&s=cbff19b14824f0d70f6d403bcfdbb41c" alt="Invoice showing Anrok tax per line item in Sequence and on the PDF" width="3448" height="1908" data-path="images/integrations/anrok/anrok_7.png" />
</Frame>

**Credit notes, refunds, and voids**

When you issue a credit note or void a finalized invoice, Sequence reverses the corresponding tax in Anrok automatically, so your records stay accurate. Taxable credit note line items need a tax category, just like invoice lines, so the right amount is reversed.

**Tax-exempt customers**

Set a customer's tax status to **Exempt** on their profile and Anrok applies the appropriate exemption when calculating their invoices.

### Troubleshooting

<AccordionGroup>
  <Accordion title="Invalid or rejected API key">
    Re-check the API key copied from your Anrok account and paste it again, then click **Test credentials**. If it still fails, confirm the key is active in Anrok and that your Anrok account is in good standing.
  </Accordion>

  <Accordion title="Customer address could not be resolved">
    Anrok needs a valid, complete address to determine tax. Check the customer's billing address for missing or incorrect fields (country, state/region, and postal code in particular), then try again.
  </Accordion>

  <Accordion title="A tax category has no mapping">
    Go to **Settings > Sales Tax** and add an Anrok mapping for the tax category, or set a default mapping that unmapped categories can fall back to. Invoices using an unmapped category with no default can fail to finalize.
  </Accordion>

  <Accordion title="Currency not supported">
    The invoice currency isn't supported for tax calculation in your Anrok configuration. Confirm the currency with your Anrok representative.
  </Accordion>

  <Accordion title="Incorrect merchant address">
    Double-check your merchant address at **Settings > Merchant > Address**. This location is the point of origin for all tax calculations.
  </Accordion>
</AccordionGroup>

### Frequently asked questions (FAQ)

<AccordionGroup>
  <Accordion title="Do Sequence products need to be synced to Anrok?">
    No. The integration works by mapping your Sequence tax categories to Anrok tax categories. When an invoice is calculated, Anrok uses the mapping for each line item's tax category to determine the tax.
  </Accordion>

  <Accordion title="Can I enter tax rates manually?">
    No. With Anrok connected, rates are determined by Anrok from the customer's location and tax category. You won't be prompted to enter tax rates manually, even for a customer whose jurisdiction hasn't been seen before.
  </Accordion>

  <Accordion title="How do I handle tax-exempt customers?">
    Set the customer's tax status to **Exempt** in their profile. Anrok then applies the appropriate exemption when calculating their invoices.
  </Accordion>

  <Accordion title="Can a customer have more than one tax registration?">
    Yes. Add each tax registration that applies to a customer on their record. This is useful for customers registered across multiple states or countries, and Anrok applies the correct treatment per jurisdiction.
  </Accordion>

  <Accordion title="Does Anrok handle international tax?">
    Anrok supports tax calculation across the jurisdictions covered by your Anrok configuration. Make sure both your merchant address and your customers' addresses are accurate for precise calculation.
  </Accordion>

  <Accordion title="What happens to tax when I issue a credit note or void an invoice?">
    Sequence reverses the corresponding tax in Anrok automatically, keeping your Anrok records consistent with what you've billed. Taxable credit note lines need a tax category so the correct amount is reversed.
  </Accordion>

  <Accordion title="What happens if I disconnect Anrok?">
    Your account returns to manual tax management. Contact the Sequence team if you need to disconnect.
  </Accordion>
</AccordionGroup>
