generated from Hochfrequenz/python_template_repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
878 lines (828 loc) · 32 KB
/
openapi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
# This file has been copied from swagger hub.
# It's used in the auto-code generation with tox -e codegen
# Because - as always with EDI@Energy - things don't work out of the box, we adjusted some parts of the yaml to get working code:
# 1. The enum 'marketLocationProperty':
# a) It's missing the 'measured' valued which is given as example but not part of the enum members.
# b) there is a typo: 'nonActice' should be 'nonActive'
# 2. Some yaml parsers fail, because: Multi-line double-quoted strings are not sufficiently indented (can be found with prettier in CI)
# 3. Datetimes are poorly designed. Instead of using the OpenAPI format:date-time, a regex with good intentions is used. This leads to code-generators using type string instead of datetime.
# 4. 'format: UUID RFC4122' may not be recognized but is valid: "Formats such as "email", "uuid", and so on, MAY be used even though undefined by this specification".
# 5. Typing the marketPartnerId as integer is a poor decision. For better compatability, we added the `format: int64`, so that the 13digit values fit (and they don't fit in 32bit).
# todo: instead of manually fixing the errors, we could also programatically fix the bad original openapi.yml.
openapi: 3.0.0
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/edi-energy/MaLoIdent_2024-07-03/1.0.0
info:
title: EDI@Energy API-Webdienste zur Ermittlung der MaLo-ID der Marktlokation
description: " Publikationsdatum: 03.07.2024\n<h2><b>Ziel</h2></b> \n\n Gemäß Festlegung für einen beschleunigten werktäglichen Lieferantenwechsel in 24 Stunden (LFW24) der Bundesnetzagentur vom 21. März 2024 [BNetzA-Beschluss BK6-22-024](https://www.bundesnetzagentur.de/DE/Beschlusskammern/1_GZ/BK6-GZ/2022/BK6-22-024/BK6-22-024_Verfahren.html?nn=660086), ist der Use-Case GPKE Teil 2 - Fokus Zuordnungsprozesse, Kapitel 1.1. Ermittlung der MaLo-ID der Marktlokation, über API-Webdienste zu realisieren. Hinweis: IT-Systeme zur Umsetzung der API müssen grundsätzlich in der Lage sein, gleichzeitig allen berechtigten Kommunikationspartnern einen Verbindungausbau (TCP-Connenct) zu ermöglichen."
version: v1.0.0
tags:
- name: Anfrage MaLo-ID der Marktlokation
externalDocs:
description: Find out more
url: https://edi-energy.de
- name: Rückmeldung auf Anfrage
externalDocs:
description: Find out more
url: https://edi-energy.de
paths:
/maloId/request/v1:
post:
tags:
- Anfrage MaLo-ID der Marktlokation
summary: Anfrage MaLo-ID der Marktlokation
description: "Inhaltsdatensicherungsebene: Der API-Aufruf mit der enthaltenen Payload der hier spezifizierten API-Schnittstellen wird signiert."
operationId: uploadFile
parameters:
- name: transactionId
in: header
description: Externe Transaktions-Id zur eindeutigen Identifikation der Anfrage der MaLo-ID der Marktlokation des sendenden Marktpartners.
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/transactionId"
- name: creationDateTime
in: header
description: Zeitpunkt an dem der Aufruf erstellt wurde
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/creationDateTime"
- name: initialTransactionId
in: header
description: Zur Angabe des Idempodenzschlüssel im Falle eines Retry.
required: false
style: simple
explode: false
schema:
$ref: "#/components/schemas/initialTransactionId"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/identificationParameter"
responses:
"202":
description: accepted
"400":
description: Bad Request
"401":
description: Unauthorized
"404":
description: Not Found
"405":
description: Method not allowed
"500":
description: Internal Server Error
/maloId/dataForMarketLocationNegative/v1:
post:
tags:
- Rückmeldung auf Anfrage
summary: Negative Rückmeldung auf die Anfrage der MaLo-ID der Marktlokation.
description: "Inhaltsdatensicherungsebene: Der API-Aufruf mit der enthaltenen Payload der hier spezifizierten API-Schnittstellen wird signiert."
parameters:
- name: transactionId
in: header
description: Externe Transaktions-Id zur eindeutigen Identifikation der negativen Rückmeldung auf die Anfrage der MaLo-ID der Marktlokation des sendenden Marktpartners.
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/transactionId"
- name: creationDateTime
in: header
description: Zeitpunkt an dem der Aufruf erstellt wurde
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/creationDateTime"
- name: initialTransactionId
in: header
description: Zur Angabe des Idempodenzschlüssel im Falle eines Retry.
required: false
style: simple
explode: false
schema:
$ref: "#/components/schemas/initialTransactionId"
- name: referenceId
in: query
description: "Externe Vorgangsreferenz zur eindeutigen Identifikation des ursprünglichen Aufrufs (Wert aus transactionId, Schritt1 des UC Ermittlung der MaLo-ID der Marktlokation)."
required: true
style: form
explode: false
schema:
$ref: "#/components/schemas/referenceId"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/resultNegative"
responses:
"202":
description: accepted
"400":
description: Bad Request
"401":
description: Unauthorized
"404":
description: Not Found
"405":
description: Method not allowed
"500":
description: Internal Server Error
/maloId/dataForMarketLocationPositive/v1:
post:
tags:
- Rückmeldung auf Anfrage
summary: Postive Rückmeldung auf die Anfrage der MaLo-ID der Marktlokation.
description: "Inhaltsdatensicherungsebene: Der API-Aufruf mit der enthaltenen Payload der hier spezifizierten API-Schnittstellen wird signiert."
operationId: ""
parameters:
- name: transactionId
in: header
description: Externe Transaktions-Id zur eindeutigen Identifikation der postiven Rückmeldung auf die Anfrage der MaLo-ID der Marktlokation des sendenden Marktpartners.
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/transactionId"
- name: creationDateTime
in: header
description: Zeitpunkt an dem der Aufruf erstellt wurde
required: true
style: simple
explode: false
schema:
$ref: "#/components/schemas/creationDateTime"
- name: initialTransactionId
in: header
description: Zur Angabe des Idempodenzschlüssel im Falle eines Retry.
required: false
style: simple
explode: false
schema:
$ref: "#/components/schemas/initialTransactionId"
- name: referenceId
in: query
description: "Externe Vorgangsreferenz zur eindeutigen Identifikation der ursprünglichen Anfrage (Wert aus transactionId, Schritt1 des UC Ermittlung der MaLo-ID der Marktlokation)."
required: true
style: form
explode: false
schema:
$ref: "#/components/schemas/referenceId"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/resultPositive"
responses:
"202":
description: accepted
"400":
description: Bad Request
"401":
description: Unauthorized
"404":
description: Not Found
"405":
description: Method not allowed
"500":
description: Internal Server Error
components:
schemas:
address:
type: object
properties:
countryCode:
$ref: "#/components/schemas/countryCode"
zipCode:
$ref: "#/components/schemas/zipCode"
city:
$ref: "#/components/schemas/city"
street:
$ref: "#/components/schemas/street"
houseNumber:
$ref: "#/components/schemas/houseNumber"
houseNumberAddition:
$ref: "#/components/schemas/houseNumberAddition"
city:
type: string
description: Angabe des Ortes der Marktlokationsadresse
example: Berlin
company:
type: string
description: Angabe des Firmennamen
example: BDEW & Co. KG
countryCode:
type: string
pattern: "[A-Z]{2}"
description: Angabe des Ländercodes nach ISO-3166-1 Alpha-2
example: DE
customerNumber:
type: string
description: Zur Angabe der Kundennummer des Kunden beim bisherigen Lieferanten (LFA)
example: V567345345
creationDateTime:
# pattern: "20(\\d{2}(\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01])|\\-02\\-(0[1-9]|1\\d|2[0-8])|\\-(0[469]|11)\\-(0[1-9]|[12]\\d|30))|([02468][048]|[13579][26])\\-02\\-(29))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(\\.[\\d]{1,4})?Z"
format: date-time # ERROR-3
type: string
description: Zeitpunkt an dem der Aufruf erstellt wurde
example: 2023-08-01T12:30:00.1704Z
dataControllableResource:
required:
- dataMControllableResourceMarketPartner
- srId
type: object
properties:
srId:
$ref: "#/components/schemas/srId"
dataControllableResourceMeasuringPointOperators:
$ref: "#/components/schemas/dataControllableResourceMeasuringPointOperators"
dataControllableResources:
type: array
items:
$ref: "#/components/schemas/dataControllableResource"
dataControllableResourceMeasuringPointOperators:
type: array
items:
$ref: "#/components/schemas/srMarketPartner"
dataMarketLocation:
required:
- dataMarketLocationNetworkOperators
- dataMarketLocationTransmissionSystemOperators
- energyDirection
- maloId
- measurementTechnologyClassification
- optionalChangeForecastBasis
- dataMarketLocationProperties
type: object
properties:
maloId:
$ref: "#/components/schemas/maloId"
energyDirection:
$ref: "#/components/schemas/energyDirection"
measurementTechnologyClassification:
$ref: "#/components/schemas/measurementTechnologyClassification"
optionalChangeForecastBasis:
$ref: "#/components/schemas/optionalChangeForecastBasis"
dataMarketLocationProperties:
$ref: "#/components/schemas/dataMarketLocationProperties"
dataMarketLocationNetworkOperators:
$ref: "#/components/schemas/dataMarketLocationNetworkOperators"
dataMarketLocationMeasuringPointOperators:
$ref: "#/components/schemas/dataMarketLocationMeasuringPointOperators"
dataMarketLocationTransmissionSystemOperators:
$ref: "#/components/schemas/dataMarketLocationTransmissionSystemOperators"
dataMarketLocationSuppliers:
$ref: "#/components/schemas/dataMarketLocationSuppliers"
dataMarketLocationName:
$ref: "#/components/schemas/name"
dataMarketLocationAddress:
$ref: "#/components/schemas/address"
dataMarketLocationLandParcels:
$ref: "#/components/schemas/landParcels"
dataMarketLocationGeographicCoordinates:
$ref: "#/components/schemas/geographicCoordinates"
dataMarketLocationMeasuringPointOperators:
type: array
items:
$ref: "#/components/schemas/marketLocationMeasuringPointOperator"
dataMarketLocationProperties:
type: array
items:
$ref: "#/components/schemas/marketLocationProperties"
dataMarketLocationNetworkOperators:
type: array
items:
$ref: "#/components/schemas/marketLocationNetworkOperator"
dataMarketLocationSuppliers:
type: array
items:
$ref: "#/components/schemas/marketLocationSupplier"
dataMarketLocationTransmissionSystemOperators:
type: array
items:
$ref: "#/components/schemas/marketLocationTransmissionSystemOperator"
dataMeterLocation:
required:
- dataMeterLocationMeasuringPointOperators
- meloId
- meterNumber
type: object
properties:
meloId:
$ref: "#/components/schemas/meloId"
meterNumber:
$ref: "#/components/schemas/meterNumber"
dataMeterLocationMeasuringPointOperators:
$ref: "#/components/schemas/dataMeterLocationMeasuringPointOperators"
dataMeterLocations:
type: array
items:
$ref: "#/components/schemas/dataMeterLocation"
dataMeterLocationMeasuringPointOperators:
type: array
items:
$ref: "#/components/schemas/meterLocationMeasuringPointOperator"
dataNetworkLocation:
required:
- dataNetworkLocationMeasuringPointOperators
- neloId
type: object
properties:
neloId:
$ref: "#/components/schemas/neloId"
dataNetworkLocationMeasuringPointOperators:
$ref: "#/components/schemas/dataNetworkLocationMeasuringPointOperators"
dataNetworkLocations:
type: array
items:
$ref: "#/components/schemas/dataNetworkLocation"
dataNetworkLocationMeasuringPointOperators:
type: array
items:
$ref: "#/components/schemas/networkLocationMeasuringPointOperator"
dataTechnicalResource:
required:
- trId
type: object
properties:
trId:
$ref: "#/components/schemas/trId"
dataTechnicalResources:
type: array
items:
$ref: "#/components/schemas/dataTechnicalResource"
dataTranche:
required:
- dataTrancheSuppliers
- proportion
- tranchenId
type: object
properties:
tranchenId:
$ref: "#/components/schemas/tranchenId"
proportion:
$ref: "#/components/schemas/proportion"
percent:
$ref: "#/components/schemas/percent"
dataTrancheSuppliers:
$ref: "#/components/schemas/dataTrancheSuppliers"
dataTranches:
type: array
items:
$ref: "#/components/schemas/dataTranche"
dataTrancheSuppliers:
type: array
items:
$ref: "#/components/schemas/trancheSupplier"
districtName:
type: string
description: Angabe des Gemarkungsnamens (des Flurstücks) der Marktlokationsadresse
east:
type: string
description: Angabe des UTM Ostwert nach WGS84. Umgerechneter Wert muss Min/Max für Länge/Breite entsprechen
easting:
type: string
description: Gauß-Krüger Rechtswert. Umgerechneter Wert muss Min/Max für Länge/Breite entsprechen.
energyDirection:
type: string
description: Energieflussrichtung der Marktlokation
example: consumption
enum:
- consumption
- production
executionTimeFrom:
# pattern: "20(\\d{2}(\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01])|\\-02\\-(0[1-9]|1\\d|2[0-8])|\\-(0[469]|11)\\-(0[1-9]|[12]\\d|30))|([02468][048]|[13579][26])\\-02\\-(29))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\dZ"
format: date-time # ERROR-3
type: string
description: Beginnzeitpunkt, Zeitpunkt zu dem die zugeordneten Marktpartner oder Lokationen zugeordnet werden. Dieser Zeitpunkt muss ein Tagesbeginn 00:00 Uhr gesetzlicher deutscher Zeit sein.
example: 2023-08-01T22:00:00Z
executionTimeUntil:
# pattern: "20(\\d{2}(\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01])|\\-02\\-(0[1-9]|1\\d|2[0-8])|\\-(0[469]|11)\\-(0[1-9]|[12]\\d|30))|([02468][048]|[13579][26])\\-02\\-(29))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\dZ"
format: date-time # ERROR-3
type: string
description: Endezeitpunkt, Zeitpunkt bis zu dem die zugeordneten Marktpartner oder Lokationen zugeordnet werden. Dieser Zeitpunkt muss ein Tagesbeginn 00:00 Uhr gesetzlicher deutscher Zeit sein.
example: 2023-08-01T22:00:00Z
reason:
type: string
description: Angabe der weiteren Erläuterung zum in responseCode genannten Antwortgrundes sofern dies gemäß dem in decisionTree genannten Entscheidungsbaums zulässig ist.
example: Ich bin ein Freitext.
firstnames:
type: string
description: Angabe des Vornamen des Kunden
example: Michael
geographicCoordinates:
type: object
properties:
latitude:
$ref: "#/components/schemas/latitude"
longitude:
$ref: "#/components/schemas/longitude"
east:
$ref: "#/components/schemas/east"
north:
$ref: "#/components/schemas/north"
zone:
$ref: "#/components/schemas/zone"
northing:
$ref: "#/components/schemas/northing"
easting:
$ref: "#/components/schemas/easting"
houseNumber:
type: integer
description: Angabe der Hausnummer der Marktlokationsadresse
example: 32
houseNumberAddition:
type: string
description: Angabe der Hausnummernergänzung der Marktlokationsadresse
example: F
identificationDateTime:
# pattern: "20(\\d{2}(\\-(0[13578]|1[02])\\-(0[1-9]|[12]\\d|3[01])|\\-02\\-(0[1-9]|1\\d|2[0-8])|\\-(0[469]|11)\\-(0[1-9]|[12]\\d|30))|([02468][048]|[13579][26])\\-02\\-(29))T([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\dZ"
format: date-time
type: string
description: Zeitpunkt zu dem die Identifikation stattfinden soll. Dieser Zeitpunkt muss ein Tagesbeginn 00:00 Uhr gesetzlicher deutscher Zeit sein.
example: 2023-08-02T22:00:00Z
identificationParameter:
required:
- identificationDateTime
- energyDirection
- identifiactionParameterAddress
type: object
properties:
identificationDateTime:
$ref: "#/components/schemas/identificationDateTime"
energyDirection:
$ref: "#/components/schemas/energyDirection"
identificationParameterId:
$ref: "#/components/schemas/identificationParameter_identificationParameterId"
identificationParameterAddress:
$ref: "#/components/schemas/identificationParameter_identificationParameterAddress"
initialTransactionId:
type: string
description: Zur Angabe des Idempodenzschlüssel im Falle eines Retry.
format: uuid # ERROR-4
example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
lotNumber:
type: string
description: Angabe der Flurnummer (des Flurstücks) der Marktlokationsadresse
landParcel:
required:
- districtName
- lotNumber
- subLotNumber
type: object
properties:
districtName:
$ref: "#/components/schemas/districtName"
lotNumber:
$ref: "#/components/schemas/lotNumber"
subLotNumber:
$ref: "#/components/schemas/subLotNumber"
landParcels:
type: array
items:
$ref: "#/components/schemas/landParcel"
latitude:
type: string
description: Angabe der Breite (Breitengrad) nach WGS84. 46 <= X <= 59. °N
longitude:
type: string
description: Angabe der Länge (Längengrad) nach WGS84. 4 <= X <= 18. °O
maloId:
pattern: "\\d{11}"
type: string
description: Identifiziert die Marktlokation mittels einer eindeutigen ID
example: "57685676748"
marketLocationDateTime:
required:
- executionTimeFrom
- maloId
type: object
properties:
maloId:
$ref: "#/components/schemas/maloId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketLocationDateTimes:
type: array
items:
$ref: "#/components/schemas/marketLocationDateTime"
marketLocationMeasuringPointOperator:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketLocationNetworkOperator:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketLocationProperties:
required:
- executionTimeFrom
- marketLocationProperty
type: object
properties:
marketLocationProperty:
$ref: "#/components/schemas/marketLocationProperty"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketLocationProperty:
type: string
description: Eigenschaft der Marktlokation. nonActive=ruhende Marktlokation, customerFacility=Marktlokation ist eine Kundenanlage, standard=alle "Standard" Marktlokationen die nicht unter die Eigenschaft "ruhende Marktlokation" und "Kundenanlage" fallen.
example: measured # ERROR-1a) this is probably a copy-paste error
enum:
- customerFacility
- nonActive # ERROR-1b) was 'nonActice' before
- standard
marketLocationSupplier:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketLocationTransmissionSystemOperator:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
marketPartnerId:
pattern: "\\d{13}"
type: integer
format: int64 # ERROR-5
description: Identifiziert den Marktpartner (Marktpartner-ID)
example: 9900987654321
measurementTechnologyClassification:
type: string
description: Angabe der messtechnischen Einordung der Marktlokation
example: intelligentMeasuringSystem
enum:
- intelligentMeasuringSystem
- conventionalMeasuringSystem
- noMeasurement
meloId:
pattern: "DE\\d{11}[A-Z,\\d]{20}"
type: string
description: Identifiziert die Messlokation mittels einer eindeutigen ID
example: DE00014545768S0000000000000003054
meloIds:
type: array
items:
$ref: "#/components/schemas/meloId"
meterLocationMeasuringPointOperator:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
meterNumber:
type: string
description: Identifiziert das Gerät der Messlokation mittels Gerätenummer
example: 1SM-8465929523
meterNumbers:
type: array
items:
$ref: "#/components/schemas/meterNumber"
name:
type: object
properties:
surnames:
$ref: "#/components/schemas/surnames"
firstnames:
$ref: "#/components/schemas/firstnames"
title:
$ref: "#/components/schemas/title"
company:
$ref: "#/components/schemas/company"
neloId:
pattern: "E[A-Z\\d]{9}\\d"
type: string
description: Identifiziert die Netzlokation mittels einer eindeutigen ID
example: E1234848431
networkLocationMeasuringPointOperator:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
north:
type: string
description: Angabe des UTM Nordwert nach WGS84. Umgerechneter Wert muss Min/Max für Länge/Breite entsprechen
northing:
type: string
description: Gauß-Krüger Hochwert. Umgerechneter Wert muss Min/Max für Länge/Breite entsprechen.
optionalChangeForecastBasis:
type: string
description: Wahlrecht zur Änderung der Prognosegrundlage
example: possible
enum:
- possible
- notPossible
percent:
pattern: "\\d{1,2}(\\.[\\d]{1,3})?"
type: number
description: "Prozentualer Wert, wenn proportion mit percent vorhanden ist."
example: "75.912"
subLotNumber:
type: string
description: Angabe der Flurstücksnummer (des Flurstücks) der Marktlokationsadresse
proportion:
type: string
description: Gibt die Bildungslogik der Tranche an
example: percent
enum:
- bilateralAgreement
- percent
responseCode:
pattern: "A[A-Z\\d]{2}"
type: string
description: Angabe des Antwortgrundes des in decisionTree genannten Entscheidungsbaums.
example: A10
referenceId:
type: string
description: Externe Vorgangsreferenz zur eindeutigen Identifikation des ursprünglichen Vorgangs
format: uuid # ERROR-4
example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
resultNegative:
description: Hier wird bei einer neagtiven Antwort der Entscheidungsbaum und der entsprechende Antwortcode aus dem Entscheidungsbaumdiagramm angegeben. Wenn sich die Marktlokation nicht mehr im Netzgebiet befindet ist die MP-ID des NB als "networkOperator" anzugeben, an den die Marktlokation abgegeben wurde.
required:
- responseCode
- decisionTree
type: object
properties:
decisionTree:
$ref: "#/components/schemas/decisionTree"
responseCode:
$ref: "#/components/schemas/responseCode"
reason:
$ref: "#/components/schemas/reason"
networkOperator:
$ref: "#/components/schemas/marketPartnerId"
resultPositive:
description: Hier wird bei einer positiven Antwort die identifizierte Marktlokation und alle dazugehörigen Parameter angegeben. Hierzu gehören die Marktpartner an der jeweiligen Lokation, die Kunden- und Adressdaten, die Lokationen, welche zu dieser Marktlokation gehören, etc. Die Informationen sind ab dem Anfragezeitpunkt "identificationDateTime" aus der Anfrage bis in die Zukunft mit allen beim NB zum Bearbeitungszeitpunkt vorliegenden Informationen ab dem Anfragezeitpunkt zu übermitteln.Hierzu gehören auch Informationen, welche nicht als "required" gekennzeichnet sind. So müssen alle vorliegenden Informationen zur Messlokation übermittelt werden. In der Schnittstellenbeschreibung sind diese jedoch nicht als "required" gekennzeichnet, da es sich auch um eine pauschale Marktlokation handeln kann, in welcher es keine Messlokation gibt. Dies gilt ebenfalls für alle weiteren Informationen die nicht als "required" gekennzeichnet sind. Wie der Lieferant "Supplier" an der Marktlokation. Da eine Marktlokation auch tranchiert sein kann, wechselt zu diesem Zeitpunkt der LF von der Zuordnung der Marktlokation zur Tranche, weshalb dieser in diesem Szenario als nicht "required" definiert wurde.
required:
- dataMarketLocation
type: object
properties:
dataMarketLocation:
$ref: "#/components/schemas/dataMarketLocation"
dataTranches:
$ref: "#/components/schemas/dataTranches"
dataMeterLocations:
$ref: "#/components/schemas/dataMeterLocations"
dataTechnicalResources:
$ref: "#/components/schemas/dataTechnicalResources"
dataControllableResources:
$ref: "#/components/schemas/dataControllableResources"
dataNetworkLocations:
$ref: "#/components/schemas/dataNetworkLocations"
srId:
pattern: "C[A-Z\\d]{9}\\d"
type: string
description: Identifiziert die Steuerbare Ressource mittels einer eindeutigen ID
example: C1234848431
srMarketPartner:
required:
- executionTimeFrom
- marketPartnerId
- marketPartnerTypeSr
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
decisionTree:
pattern: "E_\\d{4}"
type: string
description: Angabe des Entscheidungsbaums aus dem edi@energy Dokument "Entscheidungsbaum-Diagramme und Codelisten für die Antwortnachrichten" als Grundlage für den negativen Antwortgrund
example: E_0594
street:
type: string
description: Angabe der Straße der Marktlokationsadresse
example: Reinhardtstraße
surnames:
type: string
description: Angabe des Namen des Kunden
example: Becker
title:
type: string
description: Angabe des Titels der natürlichen Person
example: Prof.Dr.
tranchenId:
pattern: "\\d{11}"
type: string
description: Identifiziert die Tranche mittels einer eindeutigen ID
example: "57685676742"
tranchenIds:
type: array
items:
$ref: "#/components/schemas/tranchenId"
trancheSupplier:
required:
- executionTimeFrom
- marketPartnerId
type: object
properties:
marketPartnerId:
$ref: "#/components/schemas/marketPartnerId"
executionTimeFrom:
$ref: "#/components/schemas/executionTimeFrom"
executionTimeUntil:
$ref: "#/components/schemas/executionTimeUntil"
transactionId:
type: string
description: Externe Transaktionsnummer zur eindeutigen Identifikation des Vorgangs des sendenden Marktpartners
format: uuid # ERROR-4
example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
trId:
pattern: "D[A-Z\\d]{9}\\d"
type: string
description: Identifiziert die Technische Ressource mittels einer eindeutigen ID
example: D1234848431
zipCode:
type: string
description: Angabe der Postleitzahl der Marktlokationsadresse
example: 12117
zone:
type: string
description: Angabe des UTM Zonenwertes nach WGS84.
enum:
- UTMZone31
- UTMZone32
- UTMZone33
identificationParameter_identificationParameterId:
type: object
properties:
maloId:
$ref: "#/components/schemas/maloId"
tranchenIds:
$ref: "#/components/schemas/tranchenIds"
meloIds:
$ref: "#/components/schemas/meloIds"
meterNumbers:
$ref: "#/components/schemas/meterNumbers"
customerNumber:
$ref: "#/components/schemas/customerNumber"
identificationParameter_identificationParameterAddress:
type: object
properties:
name:
$ref: "#/components/schemas/name"
address:
$ref: "#/components/schemas/address"
landParcels:
$ref: "#/components/schemas/landParcels"
geographicCoordinates:
$ref: "#/components/schemas/geographicCoordinates"