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) | Abbreviation | What it does |
|---|---|---|
| Lieferant | LF | Sells energy to the customer; responsible for the customer’s supply contract |
| Netzbetreiber (Verteilnetzbetreiber) | NB / VNB | Runs the distribution grid; owns the grid connection and the market location |
| Übertragungsnetzbetreiber | ÜNB | Runs the transmission grid and a control area; the TSOs are 50Hertz, Amprion, TenneT and TransnetBW |
| Messstellenbetreiber | MSB | Installs and operates meters and gateways; delivers meter data. The grundzuständige MSB (gMSB) is responsible by default |
| Bilanzkreisverantwortlicher | BKV | Responsible for a balancing group: what is fed in must equal what is taken out, per quarter hour |
| Bilanzkoordinator | BIKO | The TSO’s role that settles balancing groups |
| Energieserviceanbieter | ESA | A third party with access to meter data with the customer’s consent |
| Einsatzverantwortlicher / Betreiber der technischen Ressource | EIV / BTR | Roles 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
| Identifier | Means | Example of use |
|---|---|---|
| MaLo-ID (Marktlokation) | The point where energy is supplied or fed in, the commercial view; 11 digits with check digit | A household’s supply point |
| MeLo-ID (Messlokation) | Where energy is measured, the physical view; 33 characters | A meter |
| NeLo-ID (Netzlokation) | The grid connection side | Grid-charge billing |
| TR-ID / SR-ID | Technical and controllable resources | §14a devices, Redispatch |
| Marktpartner-ID (BDEW/DVGW code) | Identifies a market participant | Message sender and recipient |
| EIC | European energy identification code | Balancing areas, TSOs |
| OBIS | Identifies a measured quantity on a meter | 1-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.
| Message | Used for |
|---|---|
| UTILMD | Master data: registrations, switches, deregistrations, master data changes |
| MSCONS | Meter readings and load profiles |
| APERAK | Application error and acknowledgement: “your message is wrong because …” |
| CONTRL | Syntax acknowledgement |
| INVOIC / REMADV | Invoices (grid charges, metering) and payment advice |
| ORDERS / ORDRSP / ORDCHG | Orders, e.g. for meter data or device changes |
| IFTSTA | Status information |
| PRICAT | Price catalogues |
| UTILTS | Time series and calculation formulas |
| REQOTE / QUOTES | Requests 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 set | Scope |
|---|---|
| GPKE | Electricity customer processes: supplier switch, move-in and move-out, end of supply, master data changes, billing data |
| LFW24 | The 24-hour supplier switch, in force since June 2025: a switch must complete within one working day |
| WiM | Metering processes: MSB changes, device changes, meter data |
| GeLi Gas | Gas customer processes, the gas equivalent of GPKE |
| GaBi Gas / KoV | Gas balancing and the cooperation agreement between gas grid operators |
| MaBiS | Electricity balancing settlement: aggregated time series to balancing groups and the TSO, the basis of who pays for which quarter hour |
| Redispatch 2.0 | Planned and controlled adjustments of plants ≥ 100 kW (and controllable ones) to relieve grid congestion, with compensation |
| §14a processes | Registration and control of controllable consumers, reduced grid charges (modules 1–3) |
| NZR-EMob | Grid 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.