# Connection in ELR

Source: https://developer.avalara.com/products/e-invoicing/integration-guides/elr/itp2024635582944/

Guide: E-Invoicing and Live Reporting

# Connection in ELR

Learn how to design connection settings that allow users to configure, test, and manage ELR integration.

Your connection settings window must allow users to configure how your integration connects to E-Invoicing and Live Reporting (ELR).

Users must be able to:

-   Select the Avalara service environment (Sandbox or Production) and authenticate to the ELR API using one of the available authentication methods
-   Test the connection to confirm that the provided authentication credentials are valid and that the integration can connect to the ELR API
-   Enable or disable the connection to the ELR API

If your application provides separate testing environments at no additional cost, you can present the environment selection as a read-only field. However, you must correctly map and display both test and production environments.

## E-Invoicing configurations settings

Learn how to design the E-Invoicing configurations window for ELR connection setup.

Provide a user-friendly interface that allows users to configure the ELR connection.

Users must be able to:

-   Select an environment that maps to the correct Avalara ELR service URLs
-   Authenticate to the ELR API using one of the available authentication methods

## Test ELR connection

Learn how to design a connection test to validate ELR authentication and connectivity.

Users must be able to test that their authentication credentials have worked successfully and that they’re connected to the ELR API service.

## Enable ELR integration

Learn how to let users enable or disable the ELR integration in your application or system.

Users must be able to enable and disable the ELR integration in their application or system.

![Enable or disable integration toggle](https://knowledge-be.avalara.com/bundle/fgc1675879204417_fgc1675879204417/page/xhp6789868541754.image?_LANG=enus)

Tip

When a user selects the Test connection option, you can use the resulting `access_token` to call `GET /scs/companies`. This also verifies that the user hasn’t entered client credentials from a different, non-ELR Avalara service, and you’ll need this call later anyway.