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

# Connect Visma Enterprise Plus to Watchdog

> Connect Visma Enterprise Plus to Watchdog and grant access to invoices and documents.

Connect Visma Enterprise Plus to retrieve supplier invoices and documents in Watchdog. The integration uses the project-accounting export and reads supplier information from the subledger.

## Before you begin

Ask your Visma administrator or Visma support to prepare access. You will need:

| Detail                      | Description                                                      |
| --------------------------- | ---------------------------------------------------------------- |
| Base URL                    | The address of your company's Visma Enterprise Plus environment  |
| Client ID and Client Secret | API credentials supplied by Visma                                |
| Company                     | The company number whose invoices you want to import             |
| Username and Password       | A Brukeradministrasjon user with access to the supplier register |
| Supplier debt accounts      | The accounts payable accounts in the company's chart of accounts |

## Connect in Watchdog

1. Open **Integrations → Visma Enterprise Plus** and add a connection.
2. Enter the details from your administrator.
3. Search the chart of accounts and select the accounts payable accounts to use when finding invoices. Ask your accountant to confirm the selection.
4. Select **Test Connection**, then save the connection.

Account numbers vary between companies. Watchdog can suggest accounts, but you must check that the correct ones are selected.

## For the Visma administrator

Watchdog needs OAuth2 access to **Eksport Prosjektregnskap** (`ProjectExport`) and document downloads.

The supplier register also requires a **Brukeradministrasjon** user with:

* the webservice permission `Økonomi: Eksport av reskontro`
* the module permission `Økonomi: QUERY`

Both sets of credentials are required by Watchdog's current connection. Confirm the setup and addresses with Visma for your company's environment.

## Import historical invoices

<Warning>
  Select a period that covers both the invoice dates and when the invoices were posted. A narrow
  range can miss invoices that were posted later.
</Warning>

## If invoices or documents are missing

Check the company number, selected accounts payable accounts, and date range. For access errors in the connection test, check both the OAuth2 credentials and the supplier-register user. The test checks a sample; an empty sample does not mean the entire invoice history is empty.
