> ## 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 Eye-Share to Watchdog

> Connect Eye-share to Watchdog and grant access to invoices and documents.

Connect Eye-share to import invoices and attachments into Watchdog.

Watchdog retrieves information from Eye-share. It does not change invoices, suppliers, or other information there.

## Before you begin

Ask your Eye-share administrator to set up API access for Watchdog. You will need:

| Detail        | What to enter                                                                               |
| ------------- | ------------------------------------------------------------------------------------------- |
| Base URL      | The address of your company's Eye-share environment                                         |
| Client ID     | The client ID for Watchdog                                                                  |
| Client Secret | The secret belonging to that client ID                                                      |
| Company code  | The code for the company whose invoices you want to import, confirmed by your administrator |

## Connect in Watchdog

1. Open **Integrations** and select **Eye-Share**.
2. Select **Add connection**.
3. Enter the details from your administrator.
4. Select **Test Connection** to check access.
5. Save the connection.

Start a manual synchronization for the period you want to import. Enable automatic synchronization if Watchdog should keep importing new invoices.

## For the Eye-share administrator

Create an API client for Watchdog using `client_credentials` authentication and the `api` scope.

The client needs access to:

* search for invoices
* download invoice attachments and original electronic invoice files
* read supplier information through `flatdata`

Watchdog retrieves invoices from the `costinvoice` and `purchaseorder` modules, depending on which modules are available in your Eye-share environment. Check access for the modules and companies you want to use.

### Different company codes for each module

If the modules use different company codes, open **Settings → Credentials** on the Watchdog connection.

Enter the codes under **Cost invoice company codes** and **Purchase order company codes**. You can enter multiple codes. Leave a field empty to use the default company code for that module.

Changes apply to future synchronizations. To import historical invoices from a company you have added, start a manual synchronization for the relevant period.

Eye-share provides administrator documentation through its [support portal](https://eye-share.com/support-and-services). Ask your administrator or Eye-share for help with your environment's setup.

## If the connection test reports a problem

* **Sign-in fails:** Check the base URL, client ID, and client secret.
* **Access is missing:** Ask your administrator to check invoice and attachment access for the relevant companies.
* **No invoices or documents are found:** The test checks a sample only. Check the company code and confirm that invoices with PDF or XML documents are available in Eye-share.
