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

# Reference

## Anrok page

To open the Anrok page, go to **More** > **Integrations**, and click the **Anrok** card. To find the card, you can filter by **Sales Tax**.

| Element | Description |
| - | - |
| **NEW CONNECTION** | The button opens the connection form. It is unavailable while an [Anrok connection](/docs/20260301/product-modules/settings/glossary.md#anrok-connection) has no Zenskar [business entity](/docs/20260301/product-modules/settings/glossary.md#business-entity). |
| **Connections** | The tab lists the Anrok connections of your organization. See [Connections tab](#connections-tab). |
| **Logs** | The tab lists the sync events of all Zenskar invoices. See [Logs tab](#logs-tab). |

## Connection form

**NEW CONNECTION** on the [Anrok page](#anrok-page) opens the connection form.

| Field | Required | Description |
| - | - | - |
| **API Key** | Yes | The field takes the API key of your Anrok account. The API key decides which Anrok account the connection links. You create API keys in Anrok, under **Settings** > **Manage API keys**. |

**Connect** checks the API key with Anrok. If Anrok accepts the API key, the [Anrok Setup page](#anrok-setup-page) opens at the **Connect** step. If Anrok rejects it, Zenskar shows an error.

## Anrok Setup page

The **Anrok Setup** page opens after **Connect** on the [connection form](#connection-form). It also opens from **Select Business Entity** and **Edit** on the [Connections tab](#connections-tab). Opening the page needs **Can Read Integration Config**.

The steps after **Connect** become available after the connection has a Zenskar business entity. Then you can also click a step at the top of the page to go to it.

| Step | Content | Main button |
| - | - | - |
| **Connect** | The step shows **Select Zenskar Entity**. There, you select the Zenskar business entity of the connection. After the connection has one, the field shows it. The field is then unavailable. | **Save & Continue** saves the Zenskar business entity of a connection that has none. Otherwise, **Continue** goes to the next step. |
| **Countries Serving** | The step shows the [served countries](/docs/20260301/product-modules/settings/glossary.md#served-country) of the Zenskar business entity. It also shows the [tax engine](/docs/20260301/product-modules/settings/glossary.md#tax-engine) of each served country. See [Manage served countries](/docs/20260301/product-modules/settings/tax-configuration/how-to-guides.md#manage-served-countries). | **Continue** goes to the next step. |
| **Tax Categories** | The step shows the Zenskar [tax categories](/docs/20260301/product-modules/settings/glossary.md#tax-category) with their **Anrok Tax Code**. See [Map a Zenskar tax category to an Anrok tax code](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#map-a-zenskar-tax-category-to-an-anrok-tax-code). | **Finish Setup** opens the **Connections** tab. |

## Connections tab

The **Connections** tab of the [Anrok page](#anrok-page) lists the Anrok connections of your organization.

| Element | Description |
| - | - |
| **Account ID** | The detail shows the Anrok account of the connection. |
| **Connected Entity** | The detail shows the Zenskar business entity of the connection. |
| **Connected On** | The detail shows the date on which the connection was created. |
| **Last Updated On** | The detail shows the date on which the connection last changed. |
| **Status** | The detail shows **Configured** after the connection has a Zenskar business entity. Before that, it shows **Pending Configuration**. |
| **Select Business Entity** | The button appears on a connection without a Zenskar business entity. It opens the [Anrok Setup page](#anrok-setup-page) at the **Connect** step. |
| **Edit** | The button opens the Anrok Setup page of the connection. See [Edit an Anrok connection](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#edit-an-anrok-connection). |
| **Disconnect** | The button opens the **Delete Connector ID** dialog. See [Disconnect Anrok](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#disconnect-anrok). |

## Add Anrok ID dialog

**Add Anrok ID** opens the dialog. The button is under **Linked Integration Objects**, on the **Integrations** tab of a Zenskar customer. **Edit** on the **Anrok ID** card opens the same dialog as **Edit Anrok ID**.

| Element | Description |
| - | - |
| **Anrok customer ID** | The field takes the exact customer ID from Anrok. Search by name is not supported. |
| **Look up** | The button asks Anrok for the [Anrok customer](/docs/20260301/product-modules/settings/glossary.md#anrok-customer) with the ID. If Anrok has the Anrok customer, the dialog shows its name and email. The dialog shows an error in two cases: Anrok has no Anrok customer with the ID, or the Anrok customer is linked to another Zenskar customer. |
| **Save** | The button links the Zenskar customer to the Anrok customer. It is available only after a successful lookup of an ID that differs from the current one. |

## Integrations tab of a Zenskar invoice

The **Integrations** tab appears on a Zenskar invoice that is approved, partially paid, paid, or void. Opening the Zenskar invoice needs **Can Read Invoice**.

| Element | Description |
| - | - |
| **Anrok ID** | The card is under **Linked Integration Objects**. It shows the ID of the [Anrok transaction](/docs/20260301/product-modules/settings/glossary.md#anrok-transaction) of the Zenskar invoice. The copy icon next to the ID copies it. |
| **Integration Logs** | The table lists the sync events between Zenskar and Anrok for the Zenskar invoice. Each row shows the event, its status, and its timestamp. **Failed** shows only the failed events. |

## Logs tab

The **Logs** tab of the [Anrok page](#anrok-page) lists the sync events of all Zenskar invoices. It has the same columns and filters as **Integration Logs**. See [Integrations tab of a Zenskar invoice](#integrations-tab-of-a-zenskar-invoice). The tab needs no specific permission.

## IDs in Anrok

Zenskar names each object that it creates in Anrok. Each ID starts with `zenskar:`.

| Object | ID in Anrok |
| - | - |
| [Anrok product](/docs/20260301/product-modules/settings/glossary.md#anrok-product) | The ID has the form `zenskar:{Zenskar product ID}:{Anrok tax code}`. |
| Anrok transaction | The ID has the form `zenskar:{Zenskar invoice ID}:`, followed by eight characters. |

## Permissions

| Action | Permission | Group |
| - | - | - |
| Enter the API key of a new connection | None | |
| Open the **Anrok Setup** page | **Can Read Integration Config** | **INTEGRATION\_CONFIG** |
| Select the Zenskar business entity of a connection | **Can Read Integration Config** | **INTEGRATION\_CONFIG** |
| Select the Zenskar business entity of a connection | **Can Create Integration Config** | **INTEGRATION\_CONFIG** |
| Set the served countries and the [Anrok tax codes](/docs/20260301/product-modules/settings/glossary.md#anrok-tax-code) in the setup | **Can Update Organisation Config** | **ORGANISATION\_CONFIG** |
| Map a Zenskar tax category to an Anrok tax code | **Can Update Organisation Config** | **ORGANISATION\_CONFIG** |
| Link a Zenskar customer to an Anrok customer | **Can Read Customer** | **CUSTOMER** |
| Link a Zenskar customer to an Anrok customer | **Can Update Customer** | **CUSTOMER** |
| Link a Zenskar customer to an Anrok customer | **Can Update Customer Integration** | **CUSTOMER\_INTEGRATION** |
| Check the Anrok transaction of a Zenskar invoice | **Can Read Invoice** | **INVOICE** |
| View the **Logs** tab | None | |
| Disconnect Anrok | None | |

## API reference

Anrok connections have no API. The following operations of the Zenskar API match the links to Anrok customers that you manage in the dashboard:

| Action | API operation |
| - | - |
| Link a Zenskar customer to an Anrok customer, or change the link | [Patch Customer Connector Id](/docs/api-reference/customers/patch-customer-connector-id.md) |
| Get the Anrok customer that a Zenskar customer is linked to | [Get customer connector details](/docs/api-reference/customers/get-customer-connector-details.md) |

## Troubleshooting

| Problem | Cause | Solution |
| - | - | - |
| **NEW CONNECTION** is unavailable. | An Anrok connection has no Zenskar business entity. | On that connection, click **Select Business Entity**. Then [finish the setup](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#connect-anrok). |
| **Connect** shows an error. | Anrok rejected the API key. | Copy the API key again from Anrok, under **Settings** > **Manage API keys**. Then click **Connect** again. |
| **Save & Continue** shows an error about another tax engine. | The Zenskar business entity already has another third-party tax engine connected. | Disconnect the other tax engine, or select another Zenskar business entity. |
| The tax-category panel has no **Anrok Tax Code** field. | Anrok is not connected. | [Connect Anrok](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#connect-anrok). |
| A Zenskar tax category shows its [Anrok tax code](/docs/20260301/product-modules/settings/glossary.md#anrok-tax-code) as missing from Anrok. | The Anrok tax code no longer exists in Anrok. | [Map the Zenskar tax category](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#map-a-zenskar-tax-category-to-an-anrok-tax-code) to an Anrok tax code that exists. |
| A Zenskar customer has no **Add Anrok ID** button. | Anrok is not connected to the Zenskar customer's business entity. | [Connect Anrok](/docs/20260301/third-party-integrations/tax-automation/anrok/how-to-guides.md#connect-anrok) to that business entity. |
| **Look up** shows an error. | Anrok has no Anrok customer with the ID, or the Anrok customer is linked to another Zenskar customer. | Copy the exact customer ID from Anrok, or change the link on the other Zenskar customer. |
| A Zenskar invoice has no tax for a jurisdiction. | The Anrok account is not registered in the jurisdiction. | Register the jurisdiction in Anrok. |
| An approved Zenskar invoice was not emailed. | Anrok did not record an Anrok transaction of the Zenskar invoice. | Contact Zenskar support. |
| Generating Zenskar invoices fails after a disconnect. | A served country still uses Anrok as its tax engine. | [Change the tax engine of the served country](/docs/20260301/product-modules/settings/tax-configuration/how-to-guides.md#change-the-tax-engine-for-a-served-country). |
| A draft Zenskar invoice is held at approval after a disconnect. | Anrok priced the draft invoice before the disconnect. | Regenerate the Zenskar invoice. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.