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

# Anrok

> Learn how to use Anrok as tax engine on Hyperline

## Prerequisites

You need to have a [Anrok account](https://anrok.com).

<Note>
  You need to know, that Hyperline is able to connect only one tax engine at a
  time per invoicing entity, so if you want to use Anrok, you'll need to
  configure all your products and jurisdictions in Anrok.
</Note>

## Set-up

If [Anrok](https://www.anrok.com) is your preferred tax engine, you need to ask us for a connection, and we'll do the setup for you inside Hyperline.

### Get Anrok API key

But first, you'll need to provide us an Anrok API key that you can get from your Anrok account.

1. In the menu, select **Settings**

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_settings.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=0c6304bd0cabef9ed28840ba57688d13" width="1630" height="1032" data-path="images/integrations/anrok/anrok_settings.png" />
</Frame>

2. Then, at the bottom, **Manage API keys**

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_settings_2.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=1875a3da3cabe8f4288fb773d7e00208" width="1615" height="996" data-path="images/integrations/anrok/anrok_settings_2.png" />
</Frame>

3. Click on **Create API key**

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_api_keys.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=ca6f328d8d930ff5bd87e9afa1ef6330" width="1621" height="996" data-path="images/integrations/anrok/anrok_api_keys.png" />
</Frame>

4. Copy the API key and once Hyperline has activated the feature for you and you'll be able to click on **Connect** in the **Integrations** page.

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_hyperline_api_key.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=70869ada3416d25b50ac8c0eb7bbfced" width="2542" height="1812" data-path="images/integrations/anrok/anrok_hyperline_api_key.png" />
</Frame>

### Configure Anrok Accounting Timezone

You need to configure the timezone of your Anrok account in the **Settings** page otherwise you'll get errors when you'll try to create an invoice.

1. In the menu, select **Settings**, and in the **Accounting** section, select **Timezone**.

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_accounting_timezone.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=e4d3330f1d3a8f1da6cada7e34c6875f" width="2546" height="1846" data-path="images/integrations/anrok/anrok_accounting_timezone.png" />
</Frame>

### Configure Anrok as Tax Engine

Click on **Taxes** in the settings menu and select **Anrok** as tax engine.

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_taxes.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=915ac69dcc90ebc9e67ccb92c5ab7666" width="2526" height="1800" data-path="images/integrations/anrok/anrok_taxes.png" />
</Frame>

### Configure products

Then, to make the mapping between your Hyperline products and Anrok products, you need to go to the **Products** page.

1. Click on **Products** in the menu

   <Frame>
     <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_menu_products.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=96c512d28c31979a69ab9ea2e6354e87" width="1624" height="1005" data-path="images/integrations/anrok/anrok_menu_products.png" />
   </Frame>

2. Click on **Add product**

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_add_product.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=603d6e2bfb10dcb1792825846bf13f50" width="1624" height="1005" data-path="images/integrations/anrok/anrok_add_product.png" />
</Frame>

3. Fill the form with the following information:

<Note>
  The **Product ID** is a product ID that you'll need to fill in Hyperline
  product page. (it can be shared across multiple products in Hyperline
  afterwards)
</Note>

<Note>
  Here is an article from Anrok that explains the tax categories: [Anrok Tax
  Categories](https://help-center.anrok.com/hc/en-us/articles/4412669541907-Available-tax-categories-for-product-IDs)
</Note>

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_product.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=9f264d9aff36882bc711f1f5ba13a75f" width="1626" height="992" data-path="images/integrations/anrok/anrok_product.png" />
</Frame>

4. As a recommendation from Anrok, we strongly encourage you to create a product that will be used as default when Hyperline doesn't have any mapping saved for a product.

Name it **default\_hyperline\_product\_anrok** and set the **Product ID** to **default\_hyperline\_product\_anrok** with the default taxed categories that will be used.

If you don't do this, we'll take a product from your mapped products and use it as default.

5. Click on **Save**

Then, as the last step, you'll need to update all the products in Hyperline with the Anrok product ID, on each products of the **Products** page in the accounting section.

<Frame>
  <img src="https://mintcdn.com/hyperline/bj1fTpSDtVcbg2bQ/images/integrations/anrok/anrok_product_mapping.png?fit=max&auto=format&n=bj1fTpSDtVcbg2bQ&q=85&s=0629556fcdd30fbcbeaf8dfe0f4d7b7f" width="2540" height="1760" data-path="images/integrations/anrok/anrok_product_mapping.png" />
</Frame>
