eSM (electronic Settlement Matching) is an interoperable data processing standard issued in 2019 by the Energy Traders Europe (formerly European Federation of Energy Traders [1] ) for the exchange and reconciliation of settlement data and invoices in wholesale energy trading.
The standard consists of the definition of the settlement matching process, describing message flow, message content, and message structure, together with matching criteria and business validation rules. By those means, eSM renders itself as an automated risk-control and risk-mitigation in the settlement process and aims at fostering straight-through processing. [2] It is expected to reduce the costs of application integration in internal and intra-company business processes and to lead to significant increase of efficiency. [3]
eSM makes use of the Commodity product Markup Language (CpML) and is based on the AS2 communication protocol, ensuring Authentication (verification of identity), Confidentiality (document encryption), Data Integrity (document signing), and Non-repudiation (undeniable proof of document reception and sending).
Defining an XML-based structured data format which contains all legally required elements of an invoice and which allows for automatic and electronic processing, the standard meets the eInvoicing Directive (2014/55/EU) of the EU commission and can be mapped to the European standard EN 16931. [4]
While the first draft of the eSM Standard was released in December 2007, no further drafts were published between 2008 and 2018 and the first final version 1.0 was released in February 2019. [2] Version 4.0 was released in 2025 [5] and contains a syntax mapping to Peppol BIS 3.0. [4]
For data reconciliation purposes, eSM introduces the concept of an AggregationKey that determines the contents of a settlement document, i.e., which line items must be part of the document (if provided; see section Document structure). The strict scope definition of trades that are subject to settlement is needed to allow for automated matching of purchase orders and sales orders across companies.
According to the following AggregationKey, for example, the settlement document must contain all fix-priced Power trades, physically delivered in June 2024 at delivery location AREAEIC in the agreed volume unit MWh, in accordance to the EFET 2007 agreement signed between supplier SUPPLIERVATID_PARTYEIC and customer CUSTOMERVATID_PARTYEIC with an agreed payment date of July 22nd 2024 and an agreed settlement currency of EUR.
<AggregationKeys><PaymentDate>2024-07-22</PaymentDate><AgreementDetails><Agreement>EFET</Agreement><MasterAgreementVersion>2007</MasterAgreementVersion></AgreementDetails><Commodity>Power</Commodity><DeliveryPointOrZone>AREAEIC</DeliveryPointOrZone><TotalVolumeUnit>MWh</TotalVolumeUnit><Currency>EUR</Currency><InvoicePeriodStart>2024-06-01</InvoicePeriodStart><InvoicePeriodEnd>2024-06-30</InvoicePeriodEnd><FixedOrFloating>Fixed</FixedOrFloating><PhysicalOrFinancial>Physical</PhysicalOrFinancial><NatureOfPrice>PositiveOrZero</NatureOfPrice><SupplierSSDSID>SUPPLIERVATID_PARTYEIC</SupplierSSDSID><CustomerSSDSID>CUSTOMERVATID_PARTYEIC</CustomerSSDSID></AggregationKeys>
Counterparties exchange settlement data via their preferred eSM service providers, who are implementing the official eSM standard and may offer value-added services like a web frontend that helps with conducting and monitoring the eSM process.
In case OfficialDocument and ShadowDocument do not match, counterparties resolve the mismatch outside of the eSM process and may resend corrected OfficialDocuments and/or ShadowDocuments. The web frontends of eSM service providers may highlight the root causes for mismatches.
A matched eSM OfficialDocument is considered an issued and legally binding invoice.
eSM documents are specified using CpML and contain all legally required elements of an invoice, i.e., once matched, counterparties may automatically fetch and process all relevant settlement data into their IT systems.
At root level, an eSM Document has the following sections:
eSM makes use of VAT numbers and EICs to identify counterparties and delivery locations, and IBANs and BICs to identify bank accounts.
An example eSM document with InvoiceData and LineItems is shown below. OfficialDocuments and ShadowDocuments use the same XSD schema. For a match, only the values of 'matching fields' (as defined by the standard) must be equal in both OfficialDocument and ShadowDocument.
<ESMDocument><ProcessInformation><LineItemsIncluded>true</LineItemsIncluded><LineItemsMatching>NonStrict</LineItemsMatching><SenderRole>OfficialDocumentIssuer</SenderRole><DocumentID>INV_20240701_1234567890(at)supplier.com</DocumentID><DocumentVersion>1</DocumentVersion><SenderID>SUPPLIERVATID_PARTYEIC</SenderID><ReceiverID>CUSTOMERVATID_PARTYEIC</ReceiverID><DocumentUsage>Live</DocumentUsage></ProcessInformation><AggregationKeys><PaymentDate>2024-07-22</PaymentDate><AgreementDetails><Agreement>EFET</Agreement><MasterAgreementVersion>2007</MasterAgreementVersion></AgreementDetails><Commodity>Power</Commodity><DeliveryPointOrZone>AREAEIC</DeliveryPointOrZone><TotalVolumeUnit>MWh</TotalVolumeUnit><Currency>EUR</Currency><InvoicePeriodStart>2024-06-01</InvoicePeriodStart><InvoicePeriodEnd>2024-06-30</InvoicePeriodEnd><FixedOrFloating>Fixed</FixedOrFloating><PhysicalOrFinancial>Physical</PhysicalOrFinancial><NatureOfPrice>PositiveOrZero</NatureOfPrice><SupplierSSDSID>SUPPLIERVATID_PARTYEIC</SupplierSSDSID><CustomerSSDSID>CUSTOMERVATID_PARTYEIC</CustomerSSDSID></AggregationKeys><InvoiceData><InvoiceID>1234567890</InvoiceID><InvoiceDate>2024-07-01</InvoiceDate><Supplier><VATID>DEVATID</VATID><VATJurisdictionCurrency>EUR</VATJurisdictionCurrency><LegalName>SupplierName</LegalName><IdentifierCode>SUPPLIERPARTYEIC</IdentifierCode><TypeOfIdentifierCode>EIC</TypeOfIdentifierCode><CompanyRegistryNumber>COMREGNUMBER</CompanyRegistryNumber><CompanyRegistryName>LOCALDISTRICTCOURT</CompanyRegistryName><CompanyRegistryCity>HEADQUARTERTOWN</CompanyRegistryCity><CompanyRegistryCountry>DE</CompanyRegistryCountry><ServiceProvider>eSMServiceProviderA</ServiceProvider><LegalAddressDetails><Street>HEADQUARTERSTREET</Street><StreetNumber>HOUSENUMBER</StreetNumber><City>HEADQUARTERTOWN</City><PostalCode>ZIPCODE</PostalCode><Country>ISOCODE</Country></LegalAddressDetails><ContactDetails><Email>contact(at)supplier.com</Email></ContactDetails><BankingDetails><IBAN>...</IBAN><BIC>...</BIC></BankingDetails></Supplier><Customer><VATID>ITVATID</VATID><LegalName>CustomerName</LegalName><IdentifierCode>CUSTOMERPARTYEIC</IdentifierCode><TypeOfIdentifierCode>EIC</TypeOfIdentifierCode><ServiceProvider>eSMServiceProviderB</ServiceProvider><LegalAddressDetails><Street>HEADQUARTERSTREET</Street><City>HEADQUARTERTOWN</City><PostalCode>ZIPCODE</PostalCode><Country>ISOCODE</Country></LegalAddressDetails><ContactDetails><Email>contact(at)customer.com</Email></ContactDetails></Customer><NetAmount><TotalAmount>8338079.52</TotalAmount><TotalAmountCurrency>EUR</TotalAmountCurrency></NetAmount><TotalVolume>32592.0</TotalVolume><VATDetails><VATRate>0</VATRate><VATAmount>0</VATAmount><VATAmountCurrency>EUR</VATAmountCurrency><VATAmountDomestic>0</VATAmountDomestic><VATAmountDomesticCurrency>GBP</VATAmountDomesticCurrency><TaxStatement>ReverseCharge-CustomerToAccountForVAT</TaxStatement><FXRate>0.85</FXRate><FXCurrencyPair>EUR/GBP</FXCurrencyPair></VATDetails><GrossAmount><TotalAmount>8338079.52</TotalAmount><TotalAmountCurrency>EUR</TotalAmountCurrency></GrossAmount><Selfbilling>false</Selfbilling><RegulatoryWording>Sometexthere</RegulatoryWording></InvoiceData><LineItems><LineItem><SupplierTradeID>87654321</SupplierTradeID><SettlementVolume>3840.0</SettlementVolume><SettlementVolumeUnit>MWh</SettlementVolumeUnit><Description>Reference:19644691</Description><LineItemDetails><Price>334.0</Price><PriceCurrency>EUR</PriceCurrency><NetAmount><TotalAmount>1282560.0</TotalAmount><TotalAmountCurrency>EUR</TotalAmountCurrency></NetAmount><DeliveryStartDate>2024-06-01</DeliveryStartDate><DeliveryEndDate>2024-06-30</DeliveryEndDate></LineItemDetails><VATRate>0</VATRate><VATAmount>0</VATAmount><TradeDate>2022-12-15</TradeDate><DateOfFirstDelivery>2024-01-01</DateOfFirstDelivery><DateOfLastDelivery>2024-12-31</DateOfLastDelivery></LineItem>[...] </LineItems></ESMDocument>