Open Utility Stack

Docs / Background

The German energy market

Roles, identifiers, messages, processes and deadlines: a primer on the Marktkommunikation the mako platform implements.

Germany’s electricity and gas markets are among the most formalised in the world. Every interaction between market roles, such as a supplier switch, a meter reading or a grid-charge invoice, is a standardised message with a deadline. This page covers what you need to read the mako documentation.

Market roles

Role (German)AbbreviationWhat it does
LieferantLFSells energy to the customer; responsible for the customer’s supply contract
Netzbetreiber (Verteilnetzbetreiber)NB / VNBRuns the distribution grid; owns the grid connection and the market location
ÜbertragungsnetzbetreiberÜNBRuns the transmission grid and a control area; the TSOs are 50Hertz, Amprion, TenneT and TransnetBW
MessstellenbetreiberMSBInstalls and operates meters and gateways; delivers meter data. The grundzuständige MSB (gMSB) is responsible by default
BilanzkreisverantwortlicherBKVResponsible for a balancing group: what is fed in must equal what is taken out, per quarter hour
BilanzkoordinatorBIKOThe TSO’s role that settles balancing groups
EnergieserviceanbieterESAA third party with access to meter data with the customer’s consent
Einsatzverantwortlicher / Betreiber der technischen RessourceEIV / BTRRoles in Redispatch 2.0 for controllable plants

One Stadtwerk group often holds several roles at once (supplier, DSO and gMSB), but unbundling rules require that they communicate through the same market processes as strangers would.

Locations and identifiers

IdentifierMeansExample of use
MaLo-ID (Marktlokation)The point where energy is supplied or fed in, the commercial view; 11 digits with check digitA household’s supply point
MeLo-ID (Messlokation)Where energy is measured, the physical view; 33 charactersA meter
NeLo-ID (Netzlokation)The grid connection sideGrid-charge billing
TR-ID / SR-IDTechnical and controllable resources§14a devices, Redispatch
Marktpartner-ID (BDEW/DVGW code)Identifies a market participantMessage sender and recipient
EICEuropean energy identification codeBalancing areas, TSOs
OBISIdentifies a measured quantity on a meter1-0:1.8.0 = active energy import

rubo4e validates all of these, including check digits, as typed values.

Messages: EDIFACT, guides and Prüfidentifikatoren

The market speaks UN/EDIFACT (ISO 9735), a 1980s syntax that is still the backbone of European B2B energy trading. The BDEW’s EDI@Energy publishes for every message type:

  • a MIG (Message Implementation Guide): which segments, in which order, with which codes;
  • an AHB (Anwendungshandbuch): for each business use case, identified by a Prüfidentifikator (PID), which fields are mandatory, conditional or forbidden, with conditions written as logical expressions.
MessageUsed for
UTILMDMaster data: registrations, switches, deregistrations, master data changes
MSCONSMeter readings and load profiles
APERAKApplication error and acknowledgement: “your message is wrong because …”
CONTRLSyntax acknowledgement
INVOIC / REMADVInvoices (grid charges, metering) and payment advice
ORDERS / ORDRSP / ORDCHGOrders, e.g. for meter data or device changes
IFTSTAStatus information
PRICATPrice catalogues
UTILTSTime series and calculation formulas
REQOTE / QUOTESRequests for quotation and quotes

edifact parses and writes the syntax. mako’s edi-energy crate imports the BDEW profiles and validates each message against the MIG and the AHB conditions for its PID. mako covers 83 workflows over 499 PIDs.

Transport: AS2, AS4 and what comes next

Messages travel over AS4 (OASIS ebMS 3), mandatory for electricity market communication since April 2024. The BDEW AS4-Profil 1.2 became binding on 1 October 2026. AS4 brings signed and encrypted messages, receipts, and certificates from the energy sector’s own PKI. Gas and some older processes still use AS2 or e-mail with S/MIME. API web services are being specified for some electricity processes next to EDIFACT. asx implements AS2 and AS4 with the BDEW profile, and mako’s makod runs the gateway with mutual TLS.

Processes

Process setScope
GPKEElectricity customer processes: supplier switch, move-in and move-out, end of supply, master data changes, billing data
LFW24The 24-hour supplier switch, in force since June 2025: a switch must complete within one working day
WiMMetering processes: MSB changes, device changes, meter data
GeLi GasGas customer processes, the gas equivalent of GPKE
GaBi Gas / KoVGas balancing and the cooperation agreement between gas grid operators
MaBiSElectricity balancing settlement: aggregated time series to balancing groups and the TSO, the basis of who pays for which quarter hour
Redispatch 2.0Planned and controlled adjustments of plants ≥ 100 kW (and controllable ones) to relieve grid congestion, with compensation
§14a processesRegistration and control of controllable consumers, reduced grid charges (modules 1–3)
NZR-EMobGrid use for public charging, incl. “Modell 2” where charging points are balanced in a virtual balancing area
Energy sharing (§42c EnWG)Sharing generation among participants through the public grid

Deadlines (Fristen)

Almost every process has deadlines in working days (Werktage). Weekends and public holidays don’t count, and some holidays differ by federal state. APERAK replies have short windows, registrations need lead time (Vorlauf), and MaBiS has daily and monthly clocks. A missed deadline has commercial consequences. mako-fristen computes all of these from the rules and the holiday calendar.

Time: the hardest easy problem

German energy runs on Europe/Berlin time:

  • A day has 23 hours in March and 25 hours in October. A daily load profile has 92 or 100 quarter hours, not 96.
  • The gas day runs from 06:00 to 06:00, not midnight to midnight.
  • Market time series are in UTC on the wire but settled in local time.

metering makes these rules part of the type system. A day is never assumed to have 24 hours.

Format releases

The BDEW releases new format versions every April and October (FV2026-10, FV2027-04, …). A release can change segments, codes, conditions and processes. The stack plans a release train four weeks after each one. See the roadmap.