{
  "openapi": "3.1.0",
  "info": {
    "title": "START_ANFRAGE_KONFIGURATION (LF)",
    "version": "202610",
    "description": "Das Ereignis `START_ANFRAGE_KONFIGURATION` der Marktrolle LF als eigenständige Spezifikation, abgeleitet aus der Auslöser-API der Formatversion 202610. Genau ein Pfad: `POST /inbound`; das Ereignis ergibt sich aus `zusatzdaten.eventname` im Rumpf."
  },
  "servers": [
    {
      "description": "Fake Env",
      "url": "https://api.macoapp.de"
    }
  ],
  "tags": [
    {
      "name": "START_ANFRAGE_KONFIGURATION"
    }
  ],
  "paths": {
    "/inbound": {
      "post": {
        "deprecated": false,
        "description": "Trigger-Event **START_ANFRAGE_KONFIGURATION** der Marktrolle LF.\n\n**Startet diese Rollensichten** (1):\n\n- [Bestellung einer Konfiguration vom LF an MSB — LF](/prozessdoku/202610/LF/GPKE-Teil3-bestellung-einer-konfiguration-vom-lf-an-msb)\n\n<a href=\"/apis/einzeln/202610/lf/START_ANFRAGE_KONFIGURATION.json\" data-maco=\"einzelschema\" download target=\"_blank\">Schema nur dieses Ereignisses herunterladen</a> (OpenAPI, JSON).\n\n<Hinweisbereich>\n\nDer Aufruf geht tatsächlich an `POST /inbound`; das Event ergibt sich aus `zusatzdaten.eventname` im Rumpf. Diese Seite trennt eine von 104 Rumpfvarianten heraus, damit sie einzeln lesbar und ausprobierbar sind.\n\n</Hinweisbereich>",
        "operationId": "trigger_LF_START_ANFRAGE_KONFIGURATION",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LF_START_ANFRAGE_KONFIGURATION"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/event_responses_success"
                }
              }
            },
            "description": "Erfolg | Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/event_response_fail"
                }
              }
            },
            "description": "Fehler | Fail"
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "START_ANFRAGE_KONFIGURATION (LF)",
        "tags": [
          "START_ANFRAGE_KONFIGURATION"
        ],
        "x-actual-endpoint": "POST /inbound",
        "x-event-source": "event/202610/[LF]_START_ANFRAGE_KONFIGURATION.yaml",
        "x-handbuchsatz": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "AenderungsmoeglichkeitKonfiguration": {
        "description": "AenderungsmoeglichkeitKonfiguration",
        "enum": [
          "ERFORDERLICH",
          "NICHT_ERFORDERLICH"
        ],
        "title": "AenderungsmoeglichkeitKonfiguration",
        "type": "string"
      },
      "Anfragetyp": {
        "description": "Anfragetyp",
        "enum": [
          "KAUF",
          "NUTZUNGSUEBERLASSUNG",
          "ABRECHNUNGSBRENNWERT_UND_ZUSTANDSZAHL",
          "LASTGANGDATEN",
          "ZAEHLERSTAENDE",
          "WERTEERMITTLUNG",
          "ENERGIEMENGE_EINZELWERT",
          "INNERHALB_DER_ARBEITSZEIT",
          "AUCH_AUSSERHALB_DER_ARBEITSZEIT",
          "WECHSEL_SAEMTLICHER_EINRICHTUNGEN",
          "TEILWEISER_WECHSEL",
          "AENDERUNG_ZAEHLZEITDEFINITION",
          "ABBESTELLUNG_ZAEHLZEITEN",
          "ABBESTELLUNG_MESSPRODUKT",
          "ANGEBOT_AUF_BASIS_PREISBLATT",
          "INDIVIDUELLES_ANGEBOT",
          "AENDERUNG_KONFIGURATION",
          "KANN_NICHT_ANGEBOTEN_WERDEN",
          "NEUKONFIGURATION",
          "BEENDIGUNG_KONFIGURATION",
          "AKTIVIERUNG_KONFIGURATION"
        ],
        "title": "Anfragetyp",
        "type": "string"
      },
      "LF_START_ANFRAGE_KONFIGURATION": {
        "properties": {
          "stammdaten": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PI_35004__stammdaten"
              }
            ]
          },
          "transaktionsdaten": {
            "properties": {
              "absender": {
                "properties": {
                  "rollencodenummer": {
                    "$ref": "#/components/schemas/rollencodenummer"
                  }
                },
                "type": "object"
              },
              "empfaenger": {
                "properties": {
                  "rollencodenummer": {
                    "$ref": "#/components/schemas/rollencodenummer"
                  }
                },
                "type": "object"
              },
              "kategorie": {
                "$ref": "#/components/schemas/kategorie"
              },
              "lieferdatum": {
                "$ref": "#/components/schemas/lieferdatum"
              },
              "pruefidentifikator": {
                "description": "Wird dynamisch im Event-Prozess ermittelt. Ein vom Sender mitgegebener Wert wird ignoriert. Im Topic mögliche Prüfis — 35004.",
                "examples": [
                  "35004"
                ]
              },
              "sparte": {
                "$ref": "#/components/schemas/sparte"
              }
            },
            "required": [
              "absender",
              "empfaenger",
              "kategorie",
              "lieferdatum",
              "sparte"
            ],
            "type": "object"
          },
          "zusatzdaten": {
            "properties": {
              "eventname": {
                "const": "START_ANFRAGE_KONFIGURATION",
                "default": "START_ANFRAGE_KONFIGURATION",
                "type": "string"
              },
              "prozessId": {
                "type": "string"
              }
            },
            "required": [
              "prozessId",
              "eventname"
            ],
            "type": "object"
          }
        },
        "required": [
          "stammdaten",
          "transaktionsdaten",
          "zusatzdaten"
        ],
        "type": "object"
      },
      "PI_35004__stammdaten": {
        "properties": {
          "AD_HOC_STEUERKANAL": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__AD_HOC_STEUERKANAL"
            },
            "type": "array"
          },
          "ANFRAGE": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__ANFRAGE"
            },
            "type": "array"
          },
          "LEISTUNGSKURVENDEFINITION": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__LEISTUNGSKURVENDEFINITION"
            },
            "type": "array"
          },
          "MARKTLOKATION": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__MARKTLOKATION"
            },
            "type": "array"
          },
          "MESSLOKATION": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__MESSLOKATION"
            },
            "type": "array"
          },
          "NETZLOKATION": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__NETZLOKATION"
            },
            "type": "array"
          },
          "SCHALTZEITDEFINITION": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__SCHALTZEITDEFINITION"
            },
            "type": "array"
          },
          "STEUERBARE_RESSOURCE": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__STEUERBARE_RESSOURCE"
            },
            "type": "array"
          },
          "TECHNISCHE_RESSOURCE": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__TECHNISCHE_RESSOURCE"
            },
            "type": "array"
          },
          "WERTE_NACH_TYP2": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__WERTE_NACH_TYP2"
            },
            "type": "array"
          }
        },
        "required": [
          "ANFRAGE"
        ],
        "type": "object",
        "title": "35004"
      },
      "PI_35004__stammdaten__AD_HOC_STEUERKANAL": {
        "properties": {
          "konfigurationsprodukt": {
            "$ref": "#/components/schemas/konfigurationsprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z66.PIA+5"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__ANFRAGE": {
        "properties": {
          "anfragetyp": {
            "$ref": "#/components/schemas/anfragetyp",
            "x-edifact-segment": [
              "IMD++[Z55|Z64]"
            ]
          }
        },
        "required": [
          "anfragetyp"
        ],
        "type": "object"
      },
      "PI_35004__stammdaten__LEISTUNGSKURVENDEFINITION": {
        "properties": {
          "leistungskurven": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__LEISTUNGSKURVENDEFINITION__leistungskurven"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__LEISTUNGSKURVENDEFINITION__leistungskurven": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/code",
            "x-edifact-segment": [
              "SG27.LIN+Z65.SG28.CCI+Z53"
            ]
          },
          "konfigurationsprodukt": {
            "$ref": "#/components/schemas/konfigurationsprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z65.PIA+5"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__MARKTLOKATION": {
        "properties": {
          "marktlokationsId": {
            "$ref": "#/components/schemas/marktlokationsId",
            "x-edifact-segment": [
              "SG11.NAD+DP.LOC+172"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__MESSLOKATION": {
        "properties": {
          "messlokationsId": {
            "$ref": "#/components/schemas/messlokationsId",
            "x-edifact-segment": [
              "SG11.NAD+DP.LOC+172"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__NETZLOKATION": {
        "properties": {
          "netzlokationsId": {
            "$ref": "#/components/schemas/netzlokationsId",
            "x-edifact-segment": [
              "SG11.NAD+DP.LOC+172"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__SCHALTZEITDEFINITION": {
        "properties": {
          "schaltzeiten": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__SCHALTZEITDEFINITION__schaltzeiten"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__SCHALTZEITDEFINITION__schaltzeiten": {
        "properties": {
          "code": {
            "$ref": "#/components/schemas/code",
            "x-edifact-segment": [
              "SG27.LIN+Z64.SG28.CCI+Z52"
            ]
          },
          "konfigurationsprodukt": {
            "$ref": "#/components/schemas/konfigurationsprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z64.PIA+5"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__STEUERBARE_RESSOURCE": {
        "properties": {
          "ressourcenId": {
            "$ref": "#/components/schemas/ressourcenId",
            "x-edifact-segment": [
              "SG11.NAD+DP.LOC+172"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__TECHNISCHE_RESSOURCE": {
        "properties": {
          "ressourcenId": {
            "$ref": "#/components/schemas/ressourcenId",
            "x-edifact-segment": [
              "SG11.NAD+DP.LOC+172"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__WERTE_NACH_TYP2": {
        "properties": {
          "aenderungsmoeglichkeitKonfiguration": {
            "$ref": "#/components/schemas/aenderungsmoeglichkeitKonfiguration",
            "x-edifact-segment": [
              "SG27.LIN+Z68.SG28.CCI+Z54"
            ]
          },
          "aussteller": {
            "$ref": "#/components/schemas/PI_35004__stammdaten__WERTE_NACH_TYP2__aussteller"
          },
          "konfigurationsprodukt": {
            "$ref": "#/components/schemas/konfigurationsprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z68.PIA+5"
            ]
          },
          "messprodukt": {
            "$ref": "#/components/schemas/messprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z67.PIA+5"
            ]
          },
          "schwellwerte": {
            "items": {
              "$ref": "#/components/schemas/PI_35004__stammdaten__WERTE_NACH_TYP2__schwellwerte"
            },
            "type": "array"
          },
          "zertifikatsNutzer": {
            "$ref": "#/components/schemas/PI_35004__stammdaten__WERTE_NACH_TYP2__zertifikatsNutzer"
          },
          "zieladresse": {
            "$ref": "#/components/schemas/PI_35004__stammdaten__WERTE_NACH_TYP2__zieladresse"
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__WERTE_NACH_TYP2__aussteller": {
        "properties": {
          "aussteller1": {
            "$ref": "#/components/schemas/aussteller1",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z24"
            ]
          },
          "aussteller2": {
            "$ref": "#/components/schemas/aussteller2",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z24"
            ]
          },
          "aussteller3": {
            "$ref": "#/components/schemas/aussteller3",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z24"
            ]
          },
          "aussteller4": {
            "$ref": "#/components/schemas/aussteller4",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z24"
            ]
          },
          "aussteller5": {
            "$ref": "#/components/schemas/aussteller5",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z24"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__WERTE_NACH_TYP2__schwellwerte": {
        "properties": {
          "konfigurationsprodukt": {
            "$ref": "#/components/schemas/konfigurationsprodukt",
            "x-edifact-segment": [
              "SG27.LIN+Z68.SG28.CCI+Z60"
            ]
          },
          "obererSchwellwert": {
            "$ref": "#/components/schemas/obererSchwellwert",
            "x-edifact-segment": [
              "SG27.LIN+Z68.SG28.CCI+Z60"
            ]
          },
          "untererSchwellwert": {
            "$ref": "#/components/schemas/untererSchwellwert",
            "x-edifact-segment": [
              "SG27.LIN+Z68.SG28.CCI+Z60"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__WERTE_NACH_TYP2__zertifikatsNutzer": {
        "properties": {
          "zertifikatsNutzer1": {
            "$ref": "#/components/schemas/zertifikatsNutzer1",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z23"
            ]
          },
          "zertifikatsNutzer2": {
            "$ref": "#/components/schemas/zertifikatsNutzer2",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z23"
            ]
          },
          "zertifikatsNutzer3": {
            "$ref": "#/components/schemas/zertifikatsNutzer3",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z23"
            ]
          },
          "zertifikatsNutzer4": {
            "$ref": "#/components/schemas/zertifikatsNutzer4",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z23"
            ]
          },
          "zertifikatsNutzer5": {
            "$ref": "#/components/schemas/zertifikatsNutzer5",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z23"
            ]
          }
        },
        "type": "object"
      },
      "PI_35004__stammdaten__WERTE_NACH_TYP2__zieladresse": {
        "properties": {
          "zieladresse1": {
            "$ref": "#/components/schemas/zieladresse1",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z17"
            ]
          },
          "zieladresse2": {
            "$ref": "#/components/schemas/zieladresse2",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z17"
            ]
          },
          "zieladresse3": {
            "$ref": "#/components/schemas/zieladresse3",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z17"
            ]
          },
          "zieladresse4": {
            "$ref": "#/components/schemas/zieladresse4",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z17"
            ]
          },
          "zieladresse5": {
            "$ref": "#/components/schemas/zieladresse5",
            "x-edifact-segment": [
              "SG27.LIN+Z68.FTX+Z17"
            ]
          }
        },
        "type": "object"
      },
      "Sparte": {
        "description": "Sparte",
        "enum": [
          "STROM",
          "GAS",
          "FERNWAERME",
          "NAHWAERME",
          "WASSER",
          "ABWASSER"
        ],
        "title": "Sparte",
        "type": "string"
      },
      "aenderungsmoeglichkeitKonfiguration": {
        "$ref": "#/components/schemas/AenderungsmoeglichkeitKonfiguration"
      },
      "anfragetyp": {
        "$ref": "#/components/schemas/Anfragetyp",
        "description": "Typ/Art der Anfrage (ORDERS ORDRSP IMD 7081)"
      },
      "aussteller1": {
        "description": "aussteller1",
        "type": "string"
      },
      "aussteller2": {
        "description": "aussteller2",
        "type": "string"
      },
      "aussteller3": {
        "description": "aussteller3",
        "type": "string"
      },
      "aussteller4": {
        "description": "aussteller4",
        "type": "string"
      },
      "aussteller5": {
        "description": "aussteller5",
        "type": "string"
      },
      "code": {
        "description": "Code der Leistungskurve",
        "type": "string"
      },
      "event_response_fail": {
        "description": "Fehlermeldung auf Prozessdaten API Aufruf | Error message on process data API call",
        "properties": {
          "errorCode": {
            "description": "Error identifier",
            "example": "400",
            "type": "string"
          },
          "message": {
            "description": "Technische Meldung | Technische Meldung",
            "example": "Validation Failed",
            "type": "string"
          }
        },
        "type": "object"
      },
      "event_responses_success": {
        "description": "Erfolgsmeldung auf Prozessdaten API Aufruf | Success message on process data API call",
        "properties": {
          "businessKey": {
            "description": "Einzigartige Kennung des Geschäftsprozesses | Unique identifier of the business process",
            "format": "uuid",
            "type": "string"
          },
          "message": {
            "description": "Nachricht mit Details zum ausgelösten Event | Message with details about the triggered event",
            "example": "received event XXXXXXXXXXXX with id at 2024-08-08T12:58:22Z and started process with businessKey 4c7170ed-3518-41ee-8582-39ab65b00107",
            "type": "string"
          }
        },
        "required": [
          "businessKey",
          "message"
        ],
        "type": "object"
      },
      "kategorie": {
        "description": "Qualifier aus dem Beginn der EDIFact Nachricht / BGM",
        "type": "string"
      },
      "konfigurationsprodukt": {
        "description": "konfigurationsprodukt",
        "type": "string"
      },
      "lieferdatum": {
        "description": "Lieferdatum DTM+76",
        "format": "date-time",
        "type": "string"
      },
      "marktlokationsId": {
        "description": "Identifikationsnummer einer Marktlokation, an der Energie entweder\nverbraucht, oder erzeugt wird",
        "type": "string"
      },
      "messlokationsId": {
        "description": "Die Messlokations-Identifikation. Das ist die frühere Zählpunktbezeichnung,\nz.B. DE 47108151234567",
        "type": "string"
      },
      "messprodukt": {
        "description": "messprodukt",
        "type": "string"
      },
      "netzlokationsId": {
        "description": "Identifikationsnummer einer Netzlokation, an der Energie entweder\nverbraucht, oder erzeugt wird (Like MarktlokationsId Marktlokation)",
        "type": "string"
      },
      "obererSchwellwert": {
        "description": "obererSchwellwert",
        "format": "float",
        "type": "number"
      },
      "ressourcenId": {
        "description": "ressourcenId",
        "type": "string"
      },
      "rollencodenummer": {
        "description": "Gibt die Codenummer der Marktrolle an.",
        "type": "string"
      },
      "sparte": {
        "$ref": "#/components/schemas/Sparte",
        "description": "Enthält Informationen über die Sparte"
      },
      "untererSchwellwert": {
        "description": "untererSchwellwert",
        "format": "float",
        "type": "number"
      },
      "zertifikatsNutzer1": {
        "description": "zertifikatsNutzer1",
        "type": "string"
      },
      "zertifikatsNutzer2": {
        "description": "zertifikatsNutzer2",
        "type": "string"
      },
      "zertifikatsNutzer3": {
        "description": "zertifikatsNutzer3",
        "type": "string"
      },
      "zertifikatsNutzer4": {
        "description": "zertifikatsNutzer4",
        "type": "string"
      },
      "zertifikatsNutzer5": {
        "description": "zertifikatsNutzer5",
        "type": "string"
      },
      "zieladresse1": {
        "description": "zieladresse1",
        "type": "string"
      },
      "zieladresse2": {
        "description": "zieladresse2",
        "type": "string"
      },
      "zieladresse3": {
        "description": "zieladresse3",
        "type": "string"
      },
      "zieladresse4": {
        "description": "zieladresse4",
        "type": "string"
      },
      "zieladresse5": {
        "description": "zieladresse5",
        "type": "string"
      }
    }
  }
}