Jump to Content

Code numbers and market partner identification

BDEW code number, DVGW code number, GLN and EIC: the numbers with which market partners identify themselves in market communication – one per role and commodity.

Updated: August 2026

In market communication no company has a name. Sender and receiver of every message are code numbers, and the same firm appears under different numbers depending on whether it is currently speaking as grid operator, supplier or metering point operator. Whoever addresses the wrong number reaches the right company – but the wrong role.

The code systems#

CodeLengthIssued byUse
BDEW-Codenummer13 digits, starts with 98 or 99BDEW via bdew-codes.deelectricity market: market partner ID per market role
DVGW-Codenummer13 digitsDVGWgas market: market partner ID per role
GS1 GLN13 digitsGS1 GermanyGlobal Location Number, also accepted as market partner ID in electricity and gas
EIC16 characters, alphanumericENTSO-E via local issuing offices (in Germany the TSOs among others, in gas the MGV)European identification: balancing groups, market areas, grid operators, trading parties
ILN13 digitshistoricalInternationale Lokationsnummer – the former name of the GLN; still met in legacy systems and old contracts

The BDEW code number is the norm in the electricity market, the DVGW code number in the gas market. Both are 13 digits with a check digit. A Stadtwerk that supplies electricity and gas and operates both grids quickly ends up with half a dozen numbers: supplier electricity, supplier gas, grid operator electricity, grid operator gas, metering point operator – and possibly a balancing group EIC.

EIC – the European code#

The Energy Identification Code comes from ENTSO-E and is 16 characters long; the third character names the type. The important ones are X codes for parties (traders, grid operators, balancing group managers), Y codes for areas (control areas, market areas, bidding zones) and Z codes for metering points and time series. A balancing group in the German electricity market is identified by an EIC-based balancing group ID – which is why every balancing group carries a 16-character code, while the balancing group manager itself appears as a market partner with a BDEW code number.

How the code appears in the message#

In EDIFACT messages, sender and receiver sit in the NAD segment with the qualifiers MS (Message Sender) and MR (Message Receiver). After the number comes a code naming the code system – qualifiers such as 293 for BDEW, 332 for DVGW or 9 for GLN. This qualifier belongs to the number like the area code to a phone number: 13 digits alone are not unique, because a GLN and a BDEW number can in theory look identical.

NAD+MS+9900123456789::293' NAD+MR+9800987654321::293'

— Schematic structure of the sender and receiver segments – role and code system are attached to each code; the exact usage is in the EDI@Energy message descriptions

Whether a number is valid and which role it belongs to is revealed by the Codenummerndatenbank (code number database): for electricity the BDEW database at bdew-codes.de, for gas the DVGW code number list. They also hold the market partners' contact details for error clarification and – since the switch to AS4 – the associated communication parameters.

Typical mistakes#

  • Wrong role: the registration goes to the Stadtwerk's grid operator code number instead of its metering point operator number – or vice versa. The message is rejected or, worse, processed in the wrong department.
  • Wrong commodity: a gas registration with the receiver's BDEW code instead of its DVGW code.
  • Outdated code: after mergers, renamings or role transfers, code numbers are retired and reissued. A master data table without validity periods does not know about the change.
  • Qualifier forgotten: the number is right, the code system missing – the message is syntactically incomplete.

Related topics

Sources & further reading