eDoc App Online Help
German English Dutch French
Auto Light Dark
Auto Light Dark
German English Dutch French

Endpoint Management

Endpoint Management

Electronic Document Format

The electronic document format defines how electronic documents are created, processed, and sent.

The eDoc App supports the electronic processing of sales and service invoices as well as sales and service credit notes. In addition, posted purchase invoices and purchase credit notes can be processed.

The setup of the electronic document format is done in conjunction with the document sending profiles. For the technical processing, codeunits are used that handle the export of the document data and, if applicable, the subsequent sending.

Fields of the Electronic Document Format

Field

Description

Code

Unique identifier of the electronic document format. The code is stored in the document sending profile in the "Format" field.

Description

Name of the electronic document format for better identification.

Usage

Specifies for which document type or intended use the format is intended.

Codeunit ID

Indicates which codeunit is used for exporting or preparing the document data.

Delivery Codeunit ID

Specifies which codeunit transmits the prepared document data to the intended recipient or endpoint.

Used Codeunits

The following codeunits are used for processing electronic documents:

Codeunit ID

Codeunit Label

Description

5518587

BRAG eDoc Buff.Export Endp.

Prepares the document data for sending and hands it over to the export buffer.

5518588

BRAG eDoc Buff.Delivery EndP.

Takes the data provided in the export buffer and performs the transmission to the configured endpoint.

1610

Exp. Sales Inv. PEPPOL BIS3.0

Exports sales invoices in the PEPPOL-BIS-3.0 format.

1611

Exp. Sales CrM. PEPPOL BIS3.0

Exports sales credit notes in the PEPPOL-BIS-3.0 format.

1612

Exp. Serv.Inv. PEPPOL BIS3.0

Exports service invoices in the PEPPOL-BIS-3.0 format.

1613

Exp. Serv.CrM. PEPPOL BIS3.0

Exports service credit notes in the PEPPOL-BIS-3.0 format.

1620

PEPPOL Validation

Validates electronic documents against the requirements of the PEPPOL-BIS-3.0 standard.

1621

PEPPOL Service Validation

Performs additional validations for electronic service documents.

The codeunits 5518587 and 5518588 are used together. While codeunit 5518587 prepares the data for export, codeunit 5518588 takes over the subsequent transmission.

Document Sending Profiles

The document sending profiles determine the method by which electronic documents are sent.

Depending on the configuration, sending can be done, for example, by email with an XML or PDF attachment or via an electronic endpoint.

The document sending profile thus determines the transmission method, while the associated eDoc profile defines the format of the electronic document.

Make sure that the selected document sending profile and the eDoc profile are coordinated.

eDoc Endpoints

An eDoc endpoint is a technical interface for the electronic exchange of documents between Business Central and external systems.

An endpoint can be used to transfer electronic documents, for example, to authorities, clearing houses, document exchange services, or other connected systems.

In the endpoint setup, the technical connection data and the required settings for authentication are stored.

Fields of the eDoc Endpoints

Field

Description

Code

Unique identifier of the endpoint. This code can be used to assign the endpoint in the partner endpoint setup.

Description

Name of the endpoint for easier identification.

Active

Determines whether the endpoint may be used. Only active endpoints are available for processing.

eDoc Endpoint

Name or type of the configured endpoint.

Endpoint

URL of the technical interface over which electronic documents are transmitted.

Authentication Type

Specifies which method is used to log in to the external system.

Number of Auth. Parameters

Shows the number of stored authentication parameters.

Number of URL Parameters

Shows the number of stored URL parameters.

Number of HTTP Header Parameters

Shows the number of stored HTTP header parameters.

Last Incoming Transmission

Shows the date of the last successfully received transmission.

Authentication Types

The "Authentication Type" field determines how the eDoc App authenticates itself to the connected external system.

Different credentials and parameters are required depending on the chosen authentication type.

Authentication Type

Description

Basic

Authentication with username and password via HTTP Basic Authentication.

APIKey500

Authentication via an API key with a maximum intended length of 500 characters.

APIKey1000

Authentication via an API key with a maximum intended length of 1,000 characters.

RefreshToken

Uses a refresh token to request or renew an access token.

HeaderKey

Sends the authentication information via a configured HTTP header.

OAuth 2.0

Uses the OAuth 2.0 procedure for token-based authentication.

Bearer Token by Refresh Token

Obtains or renews a bearer token using a refresh token.

ApiKey

Uses an API key to authenticate to the external system.

Bearer Token by Credentials

Requests a bearer token based on stored credentials, which is then used for communication.

Authentication Parameters

The required authentication data is stored via the corresponding authentication parameters of the eDoc endpoint.

Which parameters are needed depends on the chosen authentication type and the requirements of the connected system.

For methods like Basic, ApiKey, or HeaderKey, the stored authentication information can be used directly for the request.

For token-based methods like OAuth 2.0 or Bearer Token by Refresh Token, it may first be necessary to request a valid access token.

URL and HTTP Header Parameters

In addition to the authentication parameters, URL and HTTP header parameters may be required.

  • URL Parameters: Supplement the endpoint address with additional information required by the external system.

  • HTTP Header Parameters: Transmit additional information within the HTTP request, for example for authentication or to indicate the data format.

The number and required values depend on the specifications of the respective interface provider.

Example: Billit

For the connection to Billit, the authentication type ApiKey is used.

The API key provided by Billit is stored as an authentication parameter.

In addition, the required HTTP headers for Billit are configured. The profile type CustomJson is used.

eDoc Partner Endpoints

The eDoc partner endpoints determine which electronic endpoint should be used for a specific business partner and a specific eDoc profile.

Unlike the previous eDoc customer endpoints, partner endpoints can be set up for both customers (debtors) and vendors (creditors).

This allows the configuration of electronic document exchange not only for sales and service documents but also for posted purchase invoices and purchase credit notes.

The assignment is made via the partner type, partner ID, and profile code.

Fields of the eDoc Partner Endpoints

Field

Description

Partner Type

Determines whether the entry refers to a customer (debtor) or a vendor (creditor).

Partner ID

Specifies the number of the customer or vendor for whom the endpoint should be used.

Profile Code

Specifies for which eDoc profile the assignment applies.

Endpoint

Specifies the eDoc endpoint through which the electronic documents are processed or transmitted.

Set Up Partner Endpoint

To set up a partner endpoint, proceed as follows:

  1. Open the "eDoc Partner Endpoints" page.

  2. Create a new entry.

  3. In the "Partner Type" field, choose whether the endpoint should be used for a customer (debtor) or a vendor (creditor).

  4. If necessary, enter the corresponding Partner ID.

  5. Select the desired Profile Code.

  6. Assign the appropriate eDoc Endpoint.

This configuration determines which endpoint should be used for the respective partner type, business partner, and eDoc profile.

General and Partner-Specific Assignment

A partner endpoint can be assigned to a specific customer or vendor via the Partner ID.

If the Partner ID remains empty, the configuration can be used generally for the selected partner type.

This allows general endpoints to be set up for customers and vendors, for example, without having to store each business partner individually.

If necessary, additional partner-specific endpoints can be set up.

Example:

Partner Type

Partner ID

Profile Code

Endpoint

Customer (Debtor)

Empty

XRECHNUNG

ENDPOINT-01

Vendor (Creditor)

Empty

XRECHNUNG

ENDPOINT-02

Customer (Debtor)

10000

XRECHNUNG

ENDPOINT-03

Vendor (Creditor)

20000

XRECHNUNG

ENDPOINT-04

The first two entries show general assignments for customers and vendors. The subsequent entries show the assignment of an endpoint to a specific business partner.

Record Export Buffer

For more information see: brAG eDoc App

Last updated: