Electronic invoicing for United Arab Emirates

This article helps you get started with electronic invoicing for United Arab Emirates. Set up the system to generate, submit, and receive electronic invoices in the UAE extension of the PEPPOL International (PINT) format in Microsoft Dynamics 365 Finance by using the last mile connector.

Watch the following overview of the United Arab Emirates electronic invoicing implementation in Microsoft Dynamics 365 Finance.

Note

The electronic invoicing approach described in this article is implemented by using an invoicing service that's applicable only to cloud deployments of Microsoft Dynamics 365 Finance. For on-premises deployments, see Customer electronic invoices for United Arab Emirates.

Prerequisites

Before you start, make sure you have these prerequisites:

  • The company is a registered taxpayer in United Arab Emirates.

  • The company has a signed agreement with the Accredited Service Provider (ASP) and has the credentials required to establish a secure connection to the ASP infrastructure.

    Note

    This implementation assumes Edicom is the Accredited Service Provider. For more information, see Edicom integration with Microsoft Dynamics 365.

    The following credentials must be obtained.

    • Domain – the domain number (can be also referred to as Service ID) from Edicom to identify the company.
    • Group – the group code for internal routing within the Edicom infrastructure.
    • Token – the token that authorizes access to Edicom services.

Watch the following video about Edicom credentials.

  • Register the following profile ID for Microsoft Dynamics 365 Finance electronic document interchange:

    • urn:peppol:bis:billing – Use this profile to interchange documents in PEPPOL (PINT) format.

Azure Key Vault configuration

Configure the common part of the Azure resources required for Electronic invoicing functioning. For more information, see Configure Azure resources for Electronic invoicing.

Add the following element to the key vault:

  • The secret that holds the shared access signature (SAS) token of the storage account that will be used to store generated electronic invoices.

    Note

    You might have the SAS token secret already configured if you are using electronic invoicing for other countries. In this case, you can skip the configuration of this token and reuse it for UAE e-invoicing.

  • The secret for the token that authorizes access to Edicom services.

Watch the following video about Azure Key Vault secrets configuration.

Electronic invoicing activation

  • Install the Electronic invoicing add-in as described in Install the add-in for Electronic invoicing microservices.

    Note

    The article describes Electronic invoicing add-in installation for the Lifecycle Services (LCS). Alternatively, refer to the video at the end of this chapter for the details of Electronic invoicing add-in installation via the Power Platform admin center (PPAC).

  • Activate Electronic invoicing integration as described in Enable Electronic invoicing integration.

  • Create a Key Vault reference

To create a Key Vault reference, follow these steps:

  1. Go to the Electronic document parameters page, on the Electronic Invoicing tab, on the Key Vault settings FastTab, select Key Vault parameters.
  2. On the Key Vault parameters page, select New to create a Key Vault reference.
  3. In the Name field, enter the name of the Key Vault reference.
  4. In the Description field, enter a description.
  5. In the Key Vault URI field, enter the URI of your Key Vault (https://<your key vault>.vault.azure.net/).
  6. In the Certificates section, select Add.
  7. In the Name field, enter the name of the storage account secret. This name should match the name of the Key Vault secret that holds the shared access signature (SAS) token of the storage account created earlier.
  8. In the Description field, enter a description.
  9. In the Type field, select the Secret value.
  10. Select Add to create another secret.
  11. In the Name field, enter the name of the Edicom token secret . This name should match the name of the Key Vault secret that holds the token that authorizes access to Edicom services created earlier.
  12. In the Description field, enter a description.
  13. In the Type field, select the Secret value.
  14. Save and return to the Electronic document parameters form.
  • Set up electronic invoicing Key Vault parameters.

To set up electronic invoicing Key Vault parameters, follow these steps:

  1. On the Electronic invoicing tab, in Key Vault settings, in Key Vault, select the key vault reference you created earlier.
  2. In SAS token secret, select the storage account secret you created in the previous steps.
  3. Select the Save menu button to start synchronization of the Electronic invoicing service with Finance.
  4. If the configuration is correct, the system shows the Synchronization with the e-invoicing service was successful information message. You can continue with the next chapters.
  5. If there are synchronization errors, address the errors to achieve successful synchronization.

Watch the following video about Electronic invoicing activation.

Import the electronic invoicing feature

To import the electronic invoicing feature, follow these steps:

  1. Go to Globalization Studio and select the Electronic invoicing tile. Import the latest version of the UAE electronic invoice (AE) globalization feature as described in Import features from the repository.

  2. In the Electronic reporting workspace, on the Reporting configurations tile, confirm that the following Electronic reporting configurations are imported as a result of the UAE electronic invoice (AE) globalization feature import.

    • Invoice model

    • Invoice model mapping

    • PINT Sales e-invoice (AE)

    • PINT Sales e-credit note (AE)

    • PINT Project e-invoice (AE)

    • PINT Project e-credit note (AE)

    • Customer invoice context model

    • Response message model

    • Edicom Response Processing

    • Error log import Json

      Note

      If the configurations aren't imported, import them manually as described in Import Electronic reporting (ER) configurations from Dataverse.

  3. In the Electronic reporting workspace, on the Reporting configurations tile, import the latest versions of the following Electronic reporting configurations to receive incoming vendor invoices.

    • Vendor invoice import
    • Vendor invoice Mapping to destination
    • Import invoice context model

Configure the electronic invoicing feature

The UAE electronic invoice (AE) feature publishes some parameters with default values. Before you deploy the feature, review the default values and update them so they reflect your business operations.

To review and update the UAE electronic invoice (AE) feature configuration, follow these steps:

  1. Copy the imported UAE electronic invoice (AE) globalization feature and select your configuration provider, as described in Create a Globalization feature.

  2. On the Versions tab, check that the Draft version is selected.

  3. On the Feature parameters tab, specify these required Edicom connection and integration parameters:

    • Domain – Use the domain number (can also be referred to as Service ID) from Edicom to identify the company.
    • Group – Use the group code for internal routing within the Edicom infrastructure.
    • Destination – Construct the destination by appending _EDIWIN to the Domain/Service ID number. For example, if the Domain number is 123456, enter 123456_EDIWIN.
    • Token – Select the name of the secret for Edicom token you created earlier.
    • Schema – Validate this feature parameter. The default value provided by Microsoft for outgoing electronic invoices is OUT_INVOICE_COUNTRY_LAYOUT_AE_MICROSOFT_D365. EDICOM can provide you with a different schema name. In this case, change the default schema value to the actual name provided by EDICOM.
  4. On the Setups tab, select the Get status from Edicom feature setup and click Edit.

  5. In the Export channel section, in the Parameters grid, validate the value of the Schema parameter. The default value provided by Microsoft to enquire the status of submitted electronic invoices is IN_XML_INTEGRATION_LAYOUT_INVOICE_STATUS_AE_MICROSOFT_D365. EDICOM can provide you with a different schema name. Change the default schema value to the actual name provided by EDICOM.

  6. Save the changes and exit the form.

  7. On the Setups tab, select the Import from Edicom feature setup and click Edit.

  8. In the Import channel section, in the Parameters grid, validate the value of the Schema parameter. The default value provided by Microsoft for incoming electronic invoices is IN_INVOICE_COUNTRY_LAYOUT_AE_MICROSOFT_D365. EDICOM can provide you with a different schema name. Change the default schema value to the actual name provided by EDICOM.

  9. Save the changes and exit the form.

  10. Complete and deploy your version of the feature as described in Complete and deploy a Globalization feature.

    Note

    While deploying the feature, toggle the Activate application setup checkbox in the APPLICATION section. In this case, the system automatically preconfigures the significant part of the Electronic document parameters in Finance. You can review and change the preconfigured parameters, as described in the next chapter.

Configure electronic document parameters

To configure electronic document parameters, follow these steps:

  1. Go to Organization administration > Setup > Electronic document parameters.

  2. On the Electronic document tab, add records for the Customer Invoice journal and Project invoice tables.

  3. For each table name, set the Document context and Electronic document model mapping fields as described in Set up electronic invoicing parameters.

    Screenshot of the setup on the Electronic document tab of the Electronic document parameters page.

    Note

    If you created derived equivalents of the earlier Electronic Reporting configurations, use them instead of the standard configurations.

  4. On the Integration channels tab, in the Channels section, select Add to create a new channel.

  5. In the Channel field, enter EdiStatus. Enter the value exactly as shown. The system uses it to submit outgoing electronic invoices.

  6. In the Company field, select the legal entity.

  7. In the Document context field, select the Data channel context mapping from the Customer invoice context model configuration.

  8. In the Channel type field, select Export.

  9. In the Channels section, select Add to create another channel.

  10. In the Channel field, enter EdiImport. Enter the value exactly as shown. The system uses it to import incoming electronic invoices.

  11. In the Company field, select a required legal entity.

  12. In the Document context field, select the Data channel context mapping from the Import invoice context model configuration.

  13. In the Channel type field, select Import.

  14. In the Import sources section, select Add to create an import source.

  15. In the Name field, enter ResponseXml. Enter the value exactly as shown.

  16. In the Data entity name field, select the Vendor invoice header entity.

  17. In the Model mapping field, select the Import vendor invoice mapping from the Vendor invoice import configuration.

  18. Select Save, and then close the page.

    Screenshot of the configuration on the Integration channels tab of the Electronic document parameters page.

    Note

    If you use integration channels other than EdiStatus and EdiImport, do another configuration for the feature and related context configurations.

Configure legal registration numbers

If these registration types and categories already exist, skip this procedure.

To configure registration numbers, follow these steps:

  1. In Dynamics 365 Finance, go to Organization administration > Global address book > Registration types > Registration types.
  2. Create a registration type.
  3. In the Country/region field, select ARE - United Arab Emirates.
  4. Go to Organization administration > Global address book > Registration types > Registration categories.
  5. Create a registration category.
  6. In the Registration types field, select the registration type that you created in step 2.
  7. In the Registration categories field, select Enterprise ID (COID).

Note

When the system generates the output files for electronic invoices, it uses registration numbers from the Enterprise ID (COID) category as the sellers' commercial registration numbers.

Set up address structure

To set up the postal address structure, follow these steps:

  1. Go to Organization administration > Global address book > Addresses > Address setup.

  2. Ensure that at least the following required elements are configured:

    • Country
    • State
    • City
    • Street

Enter the address

To add the primary address, follow these steps:

  1. Go to Organization administration > Organizations > Legal entities, and select a legal entity.
  2. On the Addresses FastTab, add the primary address for the legal entity.

Seller identification

To add the registration numbers, follow these steps:

  1. Go to Organization administration > Organizations > Legal entities.

  2. On the Tax registration FastTab, in the Tax registration number field, enter a valid tax registration number (TRN).

    Note

    The system puts the TRN number in the Invoice\cac:AccountingSupplierParty\cac:Party\cac:PartyTaxScheme\cbc:CompanyID element in the generated electronic invoice XML file. The first 10 characters of the TRN represent the Tax Identification Number (TIN) and the system uses them in the Invoice\cac:AccountingSupplierParty\cac:Party\cbc:EndpointID element for routing the generated electronic invoice as the seller's identification during submission.

  3. On the Action Pane, select Registration IDs.

  4. On the Registration ID FastTab, select Add, set Registration type to the legal registration number type you created earlier, and enter the company registration number in the Registration number field.

    Note

    The system puts this number in the mandatory Invoice\cac:AccountingSupplierParty\cac:Party\cac:PartyLegalEntity\cbc:CompanyID element in the generated electronic invoice XML file.

Configure customer data

Enter the address

To enter the address, follow these steps:

  1. Go to Accounts receivable > Customers > All customers.
  2. Select a customer.
  3. On the Addresses FastTab, add a valid address for the selected customer.

Buyer identification

To enter the tax registration numbers, follow these steps:

  1. Go to Accounts receivable > Customers > All customers and select a customer.
  2. On the Invoice and delivery FastTab, in the SALES TAX section, enter a valid tax registration number (TRN) in the Tax exempt number field for the selected customer.

Note

The system puts the TRN number in the Invoice\cac:AccountingCustomerParty\cac:Party\cac:PartyTaxScheme\cbc:CompanyID element in the generated electronic invoice XML file. The first 10 characters of the TRN represent the Tax Identification Number (TIN) and are used in the Invoice\cac:AccountingCustomerParty\cac:Party\cbc:EndpointID element for routing the generated electronic invoice as the seller's identification during submission.

  1. On the Action Pane, select Registration IDs.
  2. On the Registration ID FastTab, select Add, set Registration type to the registration number type you created earlier, and enter the customer registration number in the Registration number field.

    Note

    The system puts this number in the Invoice\cac:BuyerCustomerParty\cac:Party\cac:PartyIdentification\cbc:ID element in the generated electronic invoice XML file. This number is required for the Free Trade Zone transaction type.

Note

For both seller and buyer identification, the schema 0235 (UAE Tax Identification Number) is used for EndpointIDs by default according to the Electronic Address Scheme (EAS). If you need to redefine the default schema, see the next section. Otherwise, you can ignore the next section.

Configure identification schemas

Follow these steps only if you need to redefine the default identification schemas for sellers or buyers.

Configure electronic document properties

To set up electronic document properties, follow these steps:

  1. Go to Accounts receivable > Setup > Electronic document property types, and select New.

  2. In the Type field, enter CompanyEndpointType. Enter the value exactly as shown. Use this type for the Seller identification schema definition.

  3. Select Applicability to add an applicable table.

  4. On the Electronic document property type applicability setup page, in the Table name field, select Legal entities.

  5. Save your changes and return to the Electronic document property types page.

  6. Select New to create another electronic document property type.

  7. In the Type field, enter CustomerEndpointType. Enter the value exactly as shown. Use this type for the Buyer identification schema definition.

  8. Select Applicability to add an applicable table.

  9. On the Electronic document property type applicability setup page, in the Table name field, select Customers.

  10. Save your changes, and return to the Electronic document property types page.

  11. Save your changes, and close the page.

    Screenshot of the property type added on the Electronic document property types page.

Enter the seller schema code

To enter the Seller schema code, follow these steps:

  1. Go to Organization administration > Organizations > Legal entities and select a legal entity.
  2. Select Electronic document properties from the Action Pane.
  3. In the Value column, enter the required seller schema code.

Enter the buyer schema codes

To enter the buyer schema codes, follow these steps:

  1. Go to Accounts receivable > Customers > All customers.
  2. Select a specific customer in the list. On the Action pane, select the Customer tab. In the Properties group, select Electronic document properties.
  3. In the Value column, enter the required buyer schema code.

Note

Schema codes defined by electronic document property types take priority over the default 0235 schema code.

Configure units of measure

To configure units of measure, follow these steps:

  1. Go to Organization administration > Setup > Units > Units.

  2. Select a unit ID, and then select External codes.

  3. On External codes, in Overview, enter the unit ID in the Code column.

  4. Select the check box in the Standard code column.

  5. In the Value section, enter the external code from the UNECE Recommendation 20 code list in the Value field.

    Note

    If no specific unit of measure applies, the system uses the default value EA.

Configure sales tax codes

To configure sales tax codes, follow these steps:

  1. Go to Tax > Indirect taxes > Sales tax > Sales tax codes.
  2. Select a sales tax code. On the Action pane, on the Sales tax code tab, in the Sales tax code group, select External codes.
  3. In the Overview section, create a line for the selected unit. Enter the sales tax code from step 2 in the External code field.
  4. In the Value section, enter an external code according to the Duty or tax or fee category code (Subset of UNCL5305) in the Value field.
  5. Go to Tax > Setup > Sales tax > Sales tax exempt codes.
  6. Define exempt codes that you use for nontaxable, zero-rated, or exempted operations.

Note

The value you define in the Description field is used as Tax Exemption Reason when generating the output XML files for electronic invoices.

Invoice transaction type determination

To meet the UAE requirements, e-invoices must include the invoice transaction type code. This code goes into the dedicated Invoice\cbc:ProfileExecutionID XML element.

The following values are available.

Position Description Dynamics 365 Finance implementation
1XXXXXXX Free Trade Zone Implemented via Electronic document properties. See the next section for details.
X1XXXXXX Deemed Supply Out of scope - always 0.
XX1XXXXX Profit Margin Scheme Out of scope - always 0.
XXX1XXXX Summary Invoice Indicates 1 if the invoice covers several deliveries with different dates.
XXXX1XXX Continuous Supply Out of scope - always 0.
XXXXX1XX Disclosed Agent Billing Out of scope - always 0.
XXXXXX1X Supply through e-commerce Out of scope - always 0.
XXXXXXX1 Export transaction Indicates 1 if the invoice is issued for the customer outside UAE.

Configure free trade zone property types

To configure free trade sone property types, follow these steps:

  1. Go to Accounts receivable > Setup > Electronic document property types, and select New.

  2. In the Type field, enter FreeTradeZone. Enter the value exactly as shown.

  3. Select Applicability to add an applicable table.

  4. On the Electronic document property type applicability setup page, select New to add the applicability table.

  5. In the Table name column, select the following table(s) depending on your scenario.

    • CustTable (Customers) - to set the property for a specific customer to have all the invoices issued for this customer marked as Free Trade Zone ones.
    • CustInvoiceJour (Customer invoice journal) - to set the property for a specific customer invoice individually.
    • ProjInvoiceJour (Project invoice) - to set the property for a specific project invoice individually.
    • CompanyInfo (Legal entities) - to set the property for the entire Legal Entity to have all the invoices issued from this Legal entity marked as Free Trade Zone ones.
  6. Save your changes and return to the Electronic document property types page.

  7. Save your changes, and close the page.

    Screenshot of the FreeTradeZone property type added on the Electronic document property types page.

Enter customers properties

To enter customers properties, follow these steps:

  1. Go to Accounts receivable > Customers > All customers.

  2. Select a specific customer in the list. On the Action Pane, select the Customer tab. In the Properties group, select Electronic document properties.

  3. In the Value column, enter any non-empty value, for example, Yes.

    Note

    Any non-empty value will be considered as a sign that the FreeTradeZone property is turned on. The empty value or if this property is not configured at all will be considered as not FreeTradeZone.

Enter Customer invoices properties

To enter Customer invoices properties, follow these steps:

  1. Go to Accounts receivable > Inquiries and reports > Invoices > Invoice journal.
  2. Select a specific invoice in the list, and then, on the Action Pane, on the Invoice tab, in the Properties group, select Electronic document properties.
  3. In the Value column, enter any non-empty value.

Enter Project invoices properties

To enter Project invoices properties, follow these steps:

  1. Go to Project management and accounting > Project invoices > Project invoices.
  2. Select a specific project invoice in the list, and then, on the Action Pane, on the Project invoice tab, in the Properties group, select Electronic document properties.
  3. In the Value column, enter any non-empty value.

To enter Legal entity properties, follow these steps:

  1. Go to Organization administration > Organizations > Legal entities and select a legal entity.

  2. Select Electronic document properties from the Action Pane.

  3. In the Value column, enter any non-empty value.

    Note

    Invoice-level values have higher priority than Customer-level values and Legal Entity-level values. Use them if you need to mark a particular invoice. Customer-level values have higher priority than Legal Entity-level values. Use them when you need to mark all invoices issued to a specific customer. Use Legal Entity-level to mark all invoices issued from the Legal Entity for all customers.

Issue electronic invoices

After you complete the required configuration steps, generate and submit electronic invoices for posted invoices: go to Organization administration > Periodic > Electronic documents > Submit electronic documents. Learn more in Submit electronic documents.

Important

In current implementations, the standard submission procedure only generates electronic invoices and stores them in the service. It doesn't submit them. To submit invoices, complete these extra steps.

To submit the generated electronic invoices, follow these steps:

  1. In the Feature management workspace, confirm that the Export channels for electronic invoicing integration feature is enabled. To learn more, see Feature management overview.
  2. Go to Organization administration > Periodic > Electronic documents > Run submission process in export channels.
  3. In the Channel field, select the export channel you created, and then select OK.

Check the submission results at Organization administration > Periodic > Electronic documents > Electronic document submission log. Learn more in Work with Electronic document submission log.

Note

You can also find submitted electronic invoices in the Ediwin portal in the Outbound folder and its subfolders. You can monitor further processing there.

Receive incoming electronic invoices

Set more parameters in Microsoft Dynamics 365 Finance to import incoming invoices.

Configure these master data types to match incoming electronic invoices:

  • vendors
  • products
  • units

Follow the steps in Import vendor electronic invoices, starting at Configure vendor data.

Receive electronic invoices

After you complete the configuration, receive incoming electronic invoices in the PEPPOL format.

Note

Review incoming electronic invoices in the Inbound folder and its subfolders in your Ediwin portal.

To receive electronic invoices, follow these steps:

  1. Go to Organization administration > Periodic > Electronic documents > Receive electronic documents.
  2. Select OK, and then close the page.

To view receipt logs for processed electronic invoices, go to Organization administration > Periodic > Electronic documents > Electronic document receipt log.

To view successfully received invoices, go to Accounts payable > Invoices > Pending vendor invoices.

More information