# Integrations

# Italy E-Invoice via Aruba®

This feature adds **Aruba FE** as a document exchange transport, so Italian electronic invoices can be exchanged with the Exchange System (SdI) through Aruba's e-invoicing service. It lets you:

- send outgoing sales e-invoices to Aruba;
- receive SdI notifications for invoices sent (rejection, delivery to SdI, delivery or non-delivery to the recipient);
- download incoming purchase invoices.


1. Open the **Document Exchange Profiles** page.
2. Create or select the profile used for e-invoicing and set its transport to **Aruba FE**.
3. Choose the **Transport Setup** action: the **Aruba FE Setup** page for the profile opens. If no setup exists yet, it is created automatically.


| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup belongs to. Not editable. |
| API Endpoint | Address of Aruba's e-invoicing service. Use the assist button (…) to fill in the default production addresses. |
| API Endpoint (authentication) | Address of Aruba's authentication service. Use the assist button (…) to fill in the default production addresses. |
| Username | Username of the Aruba e-invoicing account. |
| Password | Password of the Aruba account. It is stored securely and displayed masked. |
| Last Reception Date/Time | Date and time from which incoming purchase invoices are searched. Updated automatically after each reception. Normally read-only: use the assist button (…) to make it editable. |


1. Open the **Aruba FE Setup** page from the profile, as described above.
2. In the **API Endpoint** field choose the assist button (…) and confirm *Use default production endpoint?*: both endpoints (service and authentication) are filled in.
3. Enter the Aruba account **Username** and **Password**.
4. Set **Last Reception Date/Time** to the date and time from which you want to start receiving purchase invoices (choose the assist button to make the field editable).
5. Make sure the **VAT Registration No.** in **Company Information** is filled in with the country prefix (e.g. `IT01234567890`): it identifies the company as sender when sending and as recipient when receiving.


- **Sending:** e-invoices are sent to Aruba one at a time, together with the company VAT number. The file name returned by Aruba is stored as the invoice transport ID.
- **Receiving notifications:** for sales invoices sent and not yet delivered, the status is read from Aruba and converted into the matching notification:
  - *Processing error* or *Rejected* → SdI rejection, with the error description;
  - *Sent* → delivery to SdI;
  - *Delivered* or *Not delivered* → outcome of delivery to the recipient.
- **Receiving purchase invoices:** invoices received after **Last Reception Date/Time** are downloaded in groups of 20. The unsigned version of the file is imported (without the `.p7m` extension). If reception is interrupted, the next run resumes where it left off. At the end, **Last Reception Date/Time** is updated with the date of the most recent invoice received.
- **Authentication:** sign-in to Aruba happens automatically with the username and password; when the session expires it is renewed without user action.
- **Service limits:** if Aruba reports too many requests, the system waits 60 seconds (showing a countdown) and retries, up to three attempts.

# Italy E-Invoice via ArXivar IX®

This feature adds **ARXivar IX** as a transport channel for document exchange, so electronic documents can be exchanged through the ArXivar IX platform. Two services are supported:

- **IXFE** (Italian electronic invoicing): sending sales e-invoices, receiving SdI notifications about sent invoices, and receiving purchase invoices;
- **IXPEPPOL**: receiving orders through the PEPPOL network.


1. Open the **Document Exchange Profiles** page.
2. Create or select the profile to use and set **ARXivar IX** as its transport.
3. Choose the transport setup action: the **ARXivar IX Setup** page for the profile opens. If the setup does not exist yet, it is created automatically.

The **ARXivar IX Setup** page can also be found through Business Central search.



| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup belongs to. Not editable. |
| API Endpoint | Address of the ArXivar IX service. Use the assist button (…) to fill in the default production address. |
| Username | ArXivar IX account username. |
| Password | Account password. Stored securely and shown masked. |
| Service ID | ArXivar IX service used by the profile: **IXFE** for electronic invoicing, **IXPEPPOL** for PEPPOL. It determines which additional section is shown on the page. |
| Aoo ID | Identifier of the Homogeneous Organizational Area (AOO) on ArXivar. Not directly editable: fill it in with the assist button (…). |
| Aoo Name | AOO name, filled in automatically. |
| Uo ID | Identifier of the Organizational Unit (UO) on ArXivar, filled in automatically. |
| Uo Name | UO name, filled in automatically. |


| Field | Description |
|---|---|
| Reception Restart Date/Time | If set, receiving purchase invoices restarts from notifications after this date and time. Normally not editable: use the assist button (…) to make it editable. |
| Transmission Restart Date/Time | If set, receiving notifications about sent sales invoices restarts from this date and time. Normally not editable: use the assist button (…) to make it editable. |


| Field | Description |
|---|---|
| Identifier Code | Code identifying the company on the PEPPOL network. When the IXPEPPOL service is selected, the **VAT Registration No.** from **Company Information** is proposed. Required to receive orders. |


1. Open the **ARXivar IX Setup** page from the profile, as described above.
2. In the **API Endpoint** field choose the assist button (…) and confirm the question *Use default production endpoint?*.
3. Enter **Username** and **Password**.
4. Choose the **Service ID** (IXFE or IXPEPPOL).
5. In the **Aoo ID** field choose the assist button (…): the system connects to ArXivar and finds the AOO and its UO matching the **VAT Registration No.** in **Company Information**, filling in IDs and names. If no AOO or UO is found, an error is shown.
6. For IXFE, set the reception and transmission restart dates/times if needed; for IXPEPPOL check the **Identifier Code**.


- **Sending invoices:** sales e-invoices are sent one at a time to the configured AOO/UO; the identifier returned by ArXivar is stored as the invoice reference.
- **Notifications on sent invoices:** SdI notifications (delivery to SdI, delivery to recipient, outcome, rejection with reason) are received and linked to the sent invoices.
- **Receiving purchase invoices:** purchase invoices available on ArXivar are downloaded and imported.
- **Restart dates/times:** when set, they are updated during reception with the date of the last processed notification and cleared when there are no more notifications to retrieve.
- **PEPPOL orders:** with the IXPEPPOL service, orders received through PEPPOL are downloaded.
- **Sign-in:** authentication with ArXivar is automatic; changing **Username** or **Service ID** renews the sign-in. With wrong credentials, an invalid login or password message is shown.
- **Upgrade:** existing setups without a **Service ID** are automatically set to IXFE.

# Treasury via DocFinance®

The module connects Business Central to the DocFinance® treasury software. It lets you:

- export master data to DocFinance (chart of accounts, banks, customers, vendors);
- export the open customer and vendor entries (due dates schedule);
- export general ledger entries to be reconciled;
- import entries generated by DocFinance (collections, payments, bank charges) into a general journal.

Exchanges run through **Document Exchange Profiles**, using the **DocFinance** format and the desired transport.



Search for **DocFinance Setup**. The page holds the general integration parameters.

| Field | Description |
|---|---|
| Company Name | Company code in DocFinance. On import only lines for this company are processed. |
| Default Line | Credit line proposed when not otherwise specified. |
| Default Priority | Priority used for due entries when none is set on the entry or on the master record. |
| Default Payment Method | Payment method used when the entry has none. |
| Default Cust. Financial Item | DocFinance financial item proposed for customer entries. |
| Default Vend. Financial Item | DocFinance financial item proposed for vendor entries. |
| Document No. Strip Chars | Characters removed from document numbers before export (e.g. `/` or `-`). |
| Document No. Length Error | What happens when a document number is too long for DocFinance: **Break** (error) or **Trim**. |
| Reference No. | Value exported as reference: blank, **Document No.** or **Global Dimension 1**. |
| Company Section | Source of the company section: blank or **Global Dimension 1**. |
| Default Company Section | Company section used when it cannot be derived from the entry. |
| Payment Discount Mode | Handling of payment discount on vendor entries: **Today** (only if still valid today), **Always**, **Never**. |


The **Bank Account Card** has a **DocFinance** section:

| Field | Description |
|---|---|
| DocFinance Code | Bank code in DocFinance. |
| DocFinance RBN | Bank relationship code in DocFinance. Together with the code it identifies the bank account in imported entries. |


On the **Payment Methods** page, the **DocFinance Code** field holds the matching payment method code in DocFinance.


The **Customer Card** and **Vendor Card** have a **DocFinance** section; the **G/L Account Card** shows the same section when the related account management feature is also active.

| Field | Description |
|---|---|
| DocFinance Priority | Default priority for due entries. It is copied to customer/vendor ledger entries when posting. |
| Export to DocFinance | What to export: blank (nothing), **Master data** (record only) or **Entries** (record plus entries). |

Initial values: customers and vendors **Entries**, G/L accounts **Master data**.


On the **Vendor Posting Groups** page, the **Export Entries to DocFinance** field (on by default) lets you exclude the vendors of a group from the due entries export.


In **Payment Setup**, the **DocFinance Reason Code** field sets the DocFinance reason code assigned to automatically generated collection journal lines.


| Where | Field | Description |
|---|---|---|
| Customer Ledger Entries | DocFinance Priority | Priority of the due entry; editable. |
| General Ledger Entries | DocFinance Lot No. | DocFinance lot the entry was imported from (read-only). |
| General Ledger Entries | DocFinance Reason Code | DocFinance reason code of the entry. |
| General Ledger Entries | DocFinance Exported | Shows whether the entry has already been exported (read-only). |
| General / Sales Journal | DocFinance Reason Code | DocFinance reason code of the line (hidden by default). It is carried to the posted G/L entry. |



1. In **Document Exchange Profiles**, create a profile with **Exchange Format** = **DocFinance** and the desired **Exchange Transport**.
2. Run the profile manually from the relevant page. The options offered are:
   - **Export Chart of Accounts, Banks, Customers, Vendors to DocFinance via ...** (from customers, vendors or chart of accounts);
   - **Export Customer/Vendor Entries to DocFinance via ...** (from customer or vendor ledger entries);
   - **Export G/L Entries to DocFinance via ...** (from general ledger entries).
   When run without a context, all three exports are offered.
3. The file is sent through the profile's transport (master data, due entries, G/L entries).


1. Open the **General Journal** on the batch to load.
2. Run the DocFinance profile and choose **Import G/L entries from DocFinance via ...**.
3. Existing lines in the batch are deleted and replaced with the received ones; review and post them.


1. In **General Ledger Entries**, select the entries.
2. Use the **Mark for DocFinance Export** action and confirm.
3. The entries become exportable again on the next export. Only entries of accounts with **Export to DocFinance** = **Entries** are allowed.


- **Due entries**: open entries of customers and vendors with **Export to DocFinance** = **Entries** are exported. Customer payments of bank receipt type and vendors whose posting group excludes export are skipped.
- **Priority**: the exported priority is the entry's; if blank, the master record's; otherwise the setup **Default Priority**.
- **G/L entries**: only entries not yet exported, not reversed, not imported from DocFinance, with a DocFinance reason code and a company bank account, on accounts with **Export to DocFinance** = **Entries**, are exported. After sending they are marked as exported and the number of exported entries is shown.
- **Import**: for each line company, bank (code and RBN), account and currency are checked; a document from an already imported lot is reported. If there are errors, the file is not confirmed as received. Withholding tax and contributions are handled on vendor payments.
- **Priority on entries**: on posting, the customer or vendor DocFinance priority is copied to the entry; changes made on the entry are kept.

# FedEx®

The module integrates Business Central with the FedEx® web services through **Document Exchange**. It adds FedEx as both a format and a transport that can be selected in **Document Exchange Profiles**, a dedicated setup page for the FedEx API credentials, and an action to request the shipping label from **Shipping Agent Requests**.


1. Open the **Document Exchange Profiles** page.
2. Create or select a profile and set **FedEx** as its format and/or transport.
3. Use the **Transport Setup** (or **Format Setup**) action to open the profile's **FedEx Setup** page. If the setup does not exist yet, it is created automatically.


**General** FastTab:

| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup refers to. Not editable. |
| API Endpoint | Base address of the FedEx web services (test or production environment). |
| API Key | API key (client ID) provided by FedEx to access the services. |
| API Secret | API secret (client secret) provided by FedEx. The value is masked and stored in a protected area. |
| Shipping Agent Code | Business Central shipping agent (**Shipping Agents** table) that corresponds to FedEx. |


1. Open a **Shipping Agent Request** (or the **Shipping Agent Requests** list).
2. Use the **Document Exchange** action.
3. Choose the **Request label to <profile description>** option for the FedEx profile.


- On the first call, the system authenticates with FedEx using the API key and secret, stores the access token it receives and reuses it for subsequent calls.
- If the token has expired or is invalid, a new token is requested automatically and the request is repeated.
- Any error messages returned by FedEx are shown to the user.
- The FedEx profile supports sending only: document receiving functions are not available.
- Deleting the FedEx setup of a profile also deletes the stored API secret.

# JDA® Replenishment

The module integrates Business Central with the JDA® replenishment system. Through a document exchange profile you can:

- **export** to JDA items, item descriptions, vendors, inventory, open purchase orders and outbound history;
- **import** from JDA the proposed purchase orders, which are created automatically in Business Central.

Only locations that have a **JDA Warehouse ID** are involved.



On the **Location Card** page, **General** FastTab, the following field is available:

| Field | Description |
|---|---|
| JDA Warehouse ID | Code that identifies the location in JDA. Only locations with this field filled in take part in the data exchange. |


1. Create a document exchange profile with format **JDA Replenishment** and configure its transport (folder, FTP, etc.).
2. Open the format setup from the profile: the **JDA Replenishment Setup** page opens, created automatically for the profile.


| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup refers to (read-only). |
| Item Entries Starting Date | Date from which item entries are considered to decide whether an item is active at a location. |
| History Starting Date | Date from which the outbound history export starts. Required to export history. |
| Purchases Source Filter | Filter on the purchase sources to include: limits the exported items and vendors. |
| Sales Order Type Filter | Filter on the sales order types whose shipments and invoices are counted in the history. |
| Transfer Order Type Filter | Filter on the transfer order types whose outbound movements are counted in the history. |


The **JDA Replenishment Setup** page provides the following actions:

**Import**

| Action | Effect |
|---|---|
| Purchase Orders | Receives the proposed purchase orders from JDA and creates them in Business Central. |

**Export**

| Action | Effect |
|---|---|
| Items | Sends JDA the master data of items managed at JDA locations. |
| Item Descriptions | Sends JDA the item descriptions. |
| Vendors | Sends JDA the vendors linked to enabled purchase sources. |
| Inventory | Sends JDA the inventory by item and location. |
| Purchase Orders | Sends JDA the open purchase orders (quantity still to receive) and goods being put away. |
| History | Sends JDA the outbound history (shipments, sales invoices and transfers) starting from the history starting date. |


- **Items considered:** only items that are not blocked, have a vendor and a purchase source (within the set filter) and are active at the location are exported: with open purchase orders, put-aways in progress or entries since the item entries starting date.
- **Daily export:** the profile can run a cumulative export (items, descriptions, vendors, inventory and purchase orders) sent in a single batch, for example from a job queue.
- **Order import:** for each order received a purchase order is created with vendor, location (identified by the JDA Warehouse ID), order date, reference and lines with quantity, cost, discount and expected receipt date. Orders already existing with the same vendor, location, reference and order date are not duplicated. If the purchaser code sent by JDA does not exist, it is created automatically. At the end, an import confirmation is sent to JDA.

# Shopify®

The module connects Business Central to a Shopify® online store through document exchange. Paid Shopify orders are downloaded automatically and turned into sales **Store Documents** of the linked store, with item lines, shipping charges, payments and any refunds. The number of the document created in Business Central is then written back to the order in Shopify.


1. Open the **Document Exchange Profiles** page.
2. Create (or select) a profile with **Exchange Format** and **Exchange Transport** set to **Shopify**.
3. Use the profile's **Setup** action to open the **Shopify Setup** page for that profile.


| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup belongs to (read-only). |
| Store URL | Address of the Shopify store. Required. |
| Client ID | Client identifier of the Shopify app used for the connection. |
| Client Secret | Secret key of the Shopify app. It is stored securely and shown masked; changing it forces a new authentication on next use. |
| Exchange Reference Code | Optional exchange reference that maps a Shopify product name to a Business Central item or G/L account. |
| Store No. | Business Central store in which documents are created. The store must have a customer (with a VAT business posting group) and a linked location. |
| Order Starting Date | Only payments and refunds made on or after this date are imported. |
| Last Order Check | Date/time of the last order update read from Shopify. Must be filled in before the first download and is updated automatically. |
| Fixed Payment Method Code | Payment method used for all imported payments and refunds. |
| Shipping Account No. | G/L account for shipping charges. |
| Shipping VAT Posting Group | VAT product posting group for shipping charges. |
| Refund Account No. | G/L account for refunds. |
| Refund VAT Posting Group | VAT product posting group for refunds. |


After entering the connection data, run **Initialize APP** (with confirmation). The action prepares the Shopify store by creating, if it does not already exist, the custom order field in which Business Central writes the number of the created document.


1. Create a custom app in Shopify and note its client ID and client secret.
2. Create the document exchange profile with **Shopify** format and transport and open its **Setup**.
3. Fill in **Store URL**, **Client ID** and **Client Secret**.
4. Enter **Store No.**, **Order Starting Date**, **Last Order Check** and **Fixed Payment Method Code**.
5. Enter the accounts and VAT groups for shipping and refunds.
6. Run **Initialize APP**.



The download process reads from Shopify all orders updated after **Last Order Check**. For each order a queued entry with the message "Order <no.> downloaded" is created in the **Document Exchange Log** and then processed. **Last Order Check** moves forward as orders are read. The number of the order being processed is shown during the operation.


Only paid, partially refunded or refunded orders are considered.

- **Sale**: at the date of the first successful payment (if not earlier than **Order Starting Date**) a sales store document is created, with:
  - the customer's **store contact**, found by e-mail or created with first name, last name, address and e-mail;
  - one line per product, with quantity and discounted amount. The item is identified, in this order, through the exchange reference (product name), the barcode in item references, or an item number equal to the barcode. An unrecognized product with an amount stops processing with the message "Unknown: <barcode> <name>"; unrecognized zero-amount lines remain as comments;
  - a **Shipping** line on the shipping account, if there is a shipping cost;
  - payment lines (described with the Shopify payment gateway) and, if needed, a balancing line for any difference from the total.

  The document is closed automatically and its number is written to the Shopify order.
- **Refunds**: for each successful refund (not earlier than **Order Starting Date**) a separate store document is created with a negative **Refund** line on the refund account and the matching negative payment; this document is also closed automatically.

Orders and refunds already imported are not created again. At the end, the queued entry is replaced by a completed entry linked to the created store document.

# Italy E-Invoice via Zucchetti Digital Hub®

This feature adds **Zucchetti Digital Hub** as a transport channel for document exchange, so you can exchange Italian electronic invoices with the Exchange System (SdI) through the Zucchetti Digital Hub service. It lets you:

- send sales electronic invoices, which are automatically signed and confirmed on the service;
- receive SdI notifications for sent invoices (delivery to SdI, delivery to recipient, rejection);
- download received purchase invoices.


1. Open the **Document Exchange Profiles** page.
2. Create or select the profile to use for electronic invoicing and set **Zucchetti Digital Hub** as its transport.
3. Choose the **Transport Setup** action: the **Zucchetti Digital Hub Setup** page for the profile opens. If no setup exists yet, it is created automatically.


| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup refers to. Not editable. |
| API Endpoint | Address of the Zucchetti Digital Hub service. Use the assist button (…) to set the default production address. |
| Username | Username of the Zucchetti Digital Hub account. |
| Password | Account password. It is stored securely and shown masked. |
| Company Code | Code of the company on the Zucchetti Digital Hub service, used to sign in. |
| Company Identifier | Identifier of the company as recipient (transferee) of purchase invoices; required to receive purchase invoices. |
| Last Reception Date/Time | Date and time from which purchase invoices to receive are searched. It is updated automatically during reception. It is normally not editable: to correct it, use the assist button (…), which makes it editable. |


1. Open the **Zucchetti Digital Hub Setup** page from the profile, as described above.
2. In the **API Endpoint** field choose the assist button (…) and confirm the question *Use default production endpoint?* to set the production address.
3. Enter the **Username**, **Password** and **Company Code** provided by Zucchetti.
4. To receive purchase invoices, fill in **Company Identifier** and set **Last Reception Date/Time** to the date and time from which you want to start receiving (choose the assist button to make the field editable).


- **Sending:** each electronic invoice is uploaded to the service and then immediately signed and confirmed. If the service returns a negative outcome, the error message received is shown. An identifier generated at sending time is stored as the invoice's transport ID.
- **Receiving notifications:** for sent sales invoices not yet delivered, the status is queried on the service, in groups of 50, and converted into the corresponding notification:
  - delivery to SdI;
  - delivery to recipient;
  - SdI rejection;
  - invoices still being processed are skipped and checked again at the next reception.
- **Receiving purchase invoices:** received invoices are downloaded day by day starting from **Last Reception Date/Time**, in their unsigned version. After each processed day, **Last Reception Date/Time** moves forward automatically, up to the current date and time. If an invoice can no longer be downloaded because the period has been archived, reception stops with the message *Date … has been archived, move forward*: in this case, move **Last Reception Date/Time** forward.
- **Authentication:** sign-in to the service happens automatically with username, password and company code.