# Activate a mandate in ELR

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

Guide: E-Invoicing and Live Reporting

# Activate a mandate in ELR

Learn how to activate a mandate in ELR to enable document submission and test your integration.

To use E-Invoicing and Live Reporting (ELR), you must activate at least 1 country mandate.

To continue with this integration guide, activate at least 1 mandate. We recommend using a Peppol-based country mandate.

Activating a mandate allows you to:

-   Send a document (flow = `out`)
-   Receive the document as an inbound document (flow = `in`)

This helps you test scenarios such as receiving purchase documents and validating your integration.

## Create a Peppol identifier for your Sandbox tenant

To test document flows, create a Peppol identifier for your Sandbox tenant.

1.  Sign in to the ELR UI for your [Sandbox](https://app.sbx.avalara.com/elr-activations) environment using your credentials.
2.  Add or update a company. For details, see [Create a company](https://knowledge.avalara.com/bundle/nsz1680268923536_nsz1680268923536/page/por1708433540384.html) or [Update a company](https://knowledge.avalara.com/bundle/nsz1680268923536_nsz1680268923536/page/acd1708431762440.html).
3.  Add peppol mandate. For details, see [Add mandates](https://knowledge.avalara.com/bundle/nsz1680268923536_nsz1680268923536/page/jsu1708538573797.html).
4.  Complete peppol activation. For details, see [Complete activation for Peppol](https://knowledge.avalara.com/bundle/nsz1680268923536_nsz1680268923536/page/aoa1681100424767.html).

## Use the Peppol identifier to test document flow

To simulate receiving an inbound document, use the Peppol identifier in your document data.

Within the **data** part of the `SubmitDocument` request (the document UBL):

Pass the Peppol ID value (for example, DE987654321) in the following UBL Invoice 2.1 paths:

-   `Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID`
-   `Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID`

Pass a value from the code list that maps to the `countryCode` of the VAT number in the following UBL Invoice 2.1 paths. For example, if the `countryCode` is `DE`, use `schemeID = 9930`:

-   `Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID/@schemeID`
-   `Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID/@schemeID`

You can also test this by adding Postman environment variables named `endpointId` and `schemeId` and assigning the values as described above.

Send the SubmitDocument request. For details see, [Submit the document](/elr/rkz5197923133334/ "Submit a document to Avalara E-Invoicing and Live Reporting using the SubmitDocument endpoint.").

After you submit the document:

-   The outbound document is created
-   A corresponding inbound document is also created

You can view both documents using the [GetDocumentList](https://developer.avalara.com/api-reference/e-invoicing/v1.6/methods/Documents/GetDocumentList/) endpoint.

Note

You can only test inbound document scenarios for Peppol-based country mandates. For non-Peppol mandates, testing depends on whether the country mandate provides a test environment and whether you have valid test credentials. Some mandates support limited testing and may not allow full end-to-end document flow.