[LF] ECS_LIEFERBEGINN
Market role LF · Format version 202604
Customer-specific MACO APP process
ECS_LIEFERBEGINN is not a standard event of the MACO APP, but starts a control process that was built to customer requirements.
What the event stands for
Registration control process LW24 electricity: the 24-hour supplier switch (LW24) with MaloIdent, contract termination and registration in one process.
Process and trigger
- ECS_LIEFERBEGINN: supplier switch within 24 hours — the process flow
- ECS_LIEFERBEGINN in the trigger catalogue — schema and examples, ready to try
Master data
The master data is carried over into every follow-up message of the process: MaloIdent request, contract termination and registration. Which fields a single message requires is stated on its Prüfi page (linked on the process page).
| Field | Type | Mandatory | Description |
|---|---|---|---|
| MARKTLOKATION › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| MARKTLOKATION › versionStruktur | string | no | versionStruktur |
| MARKTLOKATION › marktlokationsId | string | no | Identifies the market location by a unique ID. If it is missing, the MACO APP determines it for electricity by a MaloIdent request and uses it in all follow-up messages. Mapping to identificationParameterId.maloId |
| MARKTLOKATION › sparte | string | no | Electricity or gas. |
| MARKTLOKATION › energierichtung | Enum Energierichtung | no | Energy flow direction of the market location; for electricity it decides between registration for consumption (AUSSP) and registration for generation (EINSP). Mandatory for electricity. Mapping to energyDirection Values: AUSSP, EINSP |
| MARKTLOKATION › erforderlichesProduktpaket | array | no | Required product package of the market location. Mandatory for electricity. |
| MARKTLOKATION › marktlokationsTyp | array | no | Specification of the typing of the market location with optional specification of the period of validity |
| MARKTLOKATION › lokationsadresse | Adresse | no | City, postcode, country code, street, house number and house number suffix of the market location address. Mapping to identificationParameterAddress |
| MARKTLOKATION › katasterinformation | Katasteradresse | no | Name of the cadastral district, Flur number and parcel number of the market location address. Mapping to identificationParameterAddress.landParcels |
| MARKTLOKATION › geokoordinaten | Geokoordinaten | no | Latitude and longitude, UTM easting and northing, Gauss-Krüger northing and easting. Mapping to identificationParameterAddress.geographicCoordinates |
| MARKTLOKATION › zaehlwerke | array | no | The registers of the meter. |
| TRANCHE › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| TRANCHE › versionStruktur | string | no | versionStruktur |
| TRANCHE › tranchenId | string | no | Identifies the tranche by a unique ID. Mapping to identificationParameterId.tranchenIds |
| MESSLOKATION › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| MESSLOKATION › versionStruktur | string | no | versionStruktur |
| MESSLOKATION › messlokationsId | string | no | Identifies the metering location by a unique ID. Mapping to identificationParameterId.meloIds |
| MESSLOKATION › sparte | Enum Sparte | no | Electricity or gas. Values: STROM, GAS, FERNWAERME, NAHWAERME, WASSER, ABWASSER |
| MESSLOKATION › ablesekartenempfaenger | Geschaeftspartner | no | — |
| ZAEHLER › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| ZAEHLER › versionStruktur | string | no | versionStruktur |
| ZAEHLER › zaehlernummer | string | no | Identifies the device of the metering location by its device number. Mapping to identificationParameterId.meterNumbers |
| ZAEHLER › sparte | Enum Sparte | no | Electricity or gas. Values: STROM, GAS, FERNWAERME, NAHWAERME, WASSER, ABWASSER |
| ENERGIELIEFERVERTRAG › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| ENERGIELIEFERVERTRAG › versionStruktur | string | no | obligatory version of the BO4E definition. Currently hard coded to 1 |
| ENERGIELIEFERVERTRAG › vertragsart | string | no | Always ENERGIELIEFERVERTRAG here. |
| ENERGIELIEFERVERTRAG › sparte | Enum Sparte | no | Distinguishing options for the division. See ENUM division Values: STROM, GAS, FERNWAERME, NAHWAERME, WASSER, ABWASSER |
| ENERGIELIEFERVERTRAG › korrespondenzpartner | Geschaeftspartner | no | correspondence partner for EDIFACT mapping |
| ENERGIELIEFERVERTRAG › enFG | array | no | Information under the Energy Financing Act (EnFG). Mandatory for electricity. |
| ENERGIELIEFERVERTRAG › vertragskonditionen | Vertragskonditionen | no | Provisions on contract durations and notice periods. For details see COM contract terms |
| ENERGIELIEFERVERTRAG › vertragspartner2 › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| ENERGIELIEFERVERTRAG › vertragspartner2 › versionStruktur | string | no | versionStruktur |
| ENERGIELIEFERVERTRAG › vertragspartner2 › anrede | string | no | Title of the natural person. Mapping to identificationParameterAddress.name.title |
| ENERGIELIEFERVERTRAG › vertragspartner2 › name1 | string | no | Name of the customer. Mapping to identificationParameterAddress.name.surnames or, if gewerbekennzeichnung = true, to identificationParameterAddress.name.company |
| ENERGIELIEFERVERTRAG › vertragspartner2 › name2 | string | no | First name of the customer. Mapping to identificationParameterAddress.name.firstnames |
| ENERGIELIEFERVERTRAG › vertragspartner2 › gewerbekennzeichnung | boolean | no | Whether the customer is commercial or private. |
| ENERGIELIEFERVERTRAG › vertragspartner2 › geschaeftspartnerrolle | array | no | Here KUNDE. |
| ENERGIELIEFERVERTRAG › vertragspartner2 › externeReferenzen › exRefName | string | no | Here »Kundennummer beim Altlieferanten« (customer number at the previous supplier). Values: Kundennummer beim Lieferanten, Kundennummer beim Altlieferanten |
| ENERGIELIEFERVERTRAG › vertragspartner2 › externeReferenzen › exRefWert | string | no | Customer number of the customer at the previous supplier (LFA). |
| NETZNUTZUNGSVERTRAG › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| NETZNUTZUNGSVERTRAG › versionStruktur | string | no | obligatory version of the BO4E definition. Currently hard coded to 1 |
| NETZNUTZUNGSVERTRAG › vertragsart | string | no | Always NETZNUTZUNGSVERTRAG here. |
| NETZNUTZUNGSVERTRAG › sparte | Enum Sparte | no | Distinguishing options for the division. See ENUM division Values: STROM, GAS, FERNWAERME, NAHWAERME, WASSER, ABWASSER |
| NETZNUTZUNGSVERTRAG › vertragsbeginn | string (date-time) | no | Specifies when the contract begins. |
| NETZNUTZUNGSVERTRAG › vertragsende | string (date-time) | no | Specifies when the contract (is expected to) end or was ended. |
| NETZNUTZUNGSVERTRAG › lokationsId | string | no | lokationsId |
| NETZNUTZUNGSVERTRAG › lokationsTyp | Enum Lokationstyp | no | Specifies whether it is a market or metering location Values: MALO, MELO, NELO, TECHNISCHE_RESSOURCE, STEUERBARE_RESSOURCE, TRANCHE, MABIS_ZAEHLPUNKT |
| NETZNUTZUNGSVERTRAG › gemeinderabatt | integer | no | municipal discount for EDIFACT mapping. |
| NETZNUTZUNGSVERTRAG › vertragskonditionen | Vertragskonditionen | no | Provisions on contract durations and notice periods. For details see COM contract terms |
| BILANZIERUNG › boTyp | Enum BOTyp | no | Type of the BO Values: ANSPRECHPARTNER, AVIS, ENERGIEMENGE, GESCHAEFTSOBJEKT, GESCHAEFTSPARTNER, MARKTLOKATION, MARKTTEILNEHMER, MESSLOKATION, ZAEHLER, KOSTEN … (+39) |
| BILANZIERUNG › versionStruktur | string | no | versionStruktur |
| BILANZIERUNG › bilanzkreise | array | no | Balancing group |
| BILANZIERUNG › lastprofile | array | no | A list of the load profiles used (SLP, SLP/TLP, ALP etc.) |
| BILANZIERUNG › jahresverbrauchsprognose | Menge | no | Annual consumption forecast |
| BILANZIERUNG › kundenwert | Menge | no | Customer value |
| BILANZIERUNG › fallgruppenzuordnung | Enum Fallgruppenzuordnung | no | Case group assignment (for gas RLM) Values: GABI_RLMmT, GABI_RLMoT, GABI_RLMNEV |
Transaction data
The interchange envelope of the message. Mandatory fields must be set on the trigger call.
| Field | Type | Mandatory | Description |
|---|---|---|---|
| ausfuehrungsdatum | string (date-time) | no | Point in time at which the identification is to take place, in UTC (converted, a start of day at 00:00 German legal time). Format YYYY-MM-DD'T'HH:mm:ss'Z' |
| vertragsbeginn | string (date-time) | no | Date for registering the supply start (DTM+92) in UTC (converted, a start of day at 00:00 German legal time). Format YYYY-MM-DD'T'HH:mm:ss'Z'. Mapping to identificationDateTime |
| vertragsende | string (date-time) | no | Contract termination as of a fixed date (DTM+93) in UTC (converted, a start of day at 00:00 German legal time). Format YYYY-MM-DD'T'HH:mm:ss'Z'. Mapping to identificationDateTime |
| endezumtermin | string (date-time) | no | Contract termination as of the next possible date (DTM+471) from this point in time, in UTC (converted, a start of day at 00:00 German legal time). Format YYYY-MM-DD'T'HH:mm:ss'Z' |
| transaktionsgrund | string | yes | Transaction reason of the registration: E01 move-in/move-out (relocation), E03 switch. |
| transaktionsgrundergaenzung | string | no | Transaction reason supplement of the registration: ZW3 generating market location, ZW4 consuming market location, ZW5 tranche, ZW6 flat-rate market location, ZW7 metered market location, ZAP dormant market location. Mandatory for electricity. |
| transaktionsgrundergaenzungBefristeteAnmeldung | string | no | Transaction reason supplement of the time-limited registration: E01 move-in/move-out (relocation), E03 switch. |
| sparte | Enum Sparte | yes | STROM or GAS; it decides which messages the process sends. Values: STROM, GAS, FERNWAERME, NAHWAERME, WASSER, ABWASSER |
| identifikationslogik | string | no | IMD+Z36: Z12 with market location, Z13 without market location. |
| absender › rollencodenummer | string | yes | Own market partner ID. |
| absender › rollencodetyp | Enum Rollencodetyp | yes | States the type of the code. Values: BDEW, GS1, GLN, DVGW |
| absender › marktrolle | Enum Marktrolle | no | Specifies the designation of the market role as free text. Values: NB, LF, MSB, MSBA, GMSB, MDL, DL, BKV, UENB, KUNDE-SELBST-NN … (+9) |
| empfaenger › rollencodenummer | string | yes | Market partner ID of the grid operator. |
| empfaenger › rollencodetyp | Enum Rollencodetyp | yes | States the type of the code. Values: BDEW, GS1, GLN, DVGW |
| empfaenger › marktrolle | Enum Marktrolle | no | Specifies the designation of the market role as free text. Values: NB, LF, MSB, MSBA, GMSB, MDL, DL, BKV, UENB, KUNDE-SELBST-NN … (+9) |
| beteiligterMarktpartner › rollencodenummer | string | no | Market partner ID of the previous supplier. |
| beteiligterMarktpartner › rollencodetyp | Enum Rollencodetyp | no | States the type of the code. Values: BDEW, GS1, GLN, DVGW |
| beteiligterMarktpartner › marktrolle | Enum Marktrolle | no | Specifies the designation of the market role as free text. Values: NB, LF, MSB, MSBA, GMSB, MDL, DL, BKV, UENB, KUNDE-SELBST-NN … (+9) |
Additional data
eventname is fixed to ECS_LIEFERBEGINN. This value stays German in the English version as well, because Camunda correlates on it.
| Field | Type | Mandatory | Description |
|---|---|---|---|
prozessId | string | yes | ID of the document or record in the backend. |
eventname | const ECS_LIEFERBEGINN | yes | — |
Response
The trigger assigns its own businessKey. The MACO APP adopts neither the businessKey nor the prozessId of the calling system as the identifier of the process instance. The businessKey of the response is created when the process starts and is new. The body of this call carries no businessKey field; there is thus no place where a key of your own could be passed in. The prozessId passed in (a mandatory field of this call) remains the document number of the backend: it comes back in zusatzdaten.prozessId of the callbacks — mandatory there only for MaloIdent (03002/03003), otherwise optional.
201 — Success. Success message for the process data API call.
| Field | Type | Mandatory | Description |
|---|---|---|---|
businessKey | string (uuid) | yes | Unique identifier of the business process |
message | string | yes | Message with details of the triggered event — example from the source: received event XXXXXXXXXXXX with id at 2024-08-08T12:58:22Z and started process with businessKey 4c7170ed-3518-41ee-8582-39ab65b00107 |
400 — Error. Error message for the process data API call.
| Field | Type | Mandatory | Description |
|---|---|---|---|
errorCode | string | no | Error identifier — example from the source: 400 |
message | string | no | Technical message — example from the source: Validation Failed |
Which body the callbacks updateProcessData and createProcessData send is measured against the NiFi flow of the MACO APP: {stammdaten, transaktionsdaten, zusatzdaten} without an interchange envelope, the businessKey inside zusatzdaten. This is not measured against a recorded call, and not for MaloIdent (03002/03003).
What distinguishes businessKey, prozessId and targetBusinessKey is explained on Keys and assignment.
Standard building blocks
The individual steps also exist as standard events of the market role LF:
- START_MALOIDENT — MaloIdent
- START_KUENDIGUNG — Contract termination
- START_LIEFERBEGINN — Registration (start of supply)
The name appears as a value of the field eventname in the enum EventName.