{
  "openapi": "3.1.0",
  "info": {
    "title": "START_VERSAND_ANTWORT_NNA (LF)",
    "version": "202604",
    "description": "The event `START_VERSAND_ANTWORT_NNA` of the market role LF as a standalone specification, derived from the trigger API of format version 202604. Exactly one path: `POST /inbound`; the event is derived from `zusatzdaten.eventname` in the body."
  },
  "servers": [
    {
      "description": "Fake Env",
      "url": "https://api.macoapp.de"
    }
  ],
  "tags": [
    {
      "name": "START_VERSAND_ANTWORT_NNA"
    }
  ],
  "paths": {
    "/inbound": {
      "post": {
        "deprecated": false,
        "description": "Trigger-Event **START_VERSAND_ANTWORT_NNA** der Marktrolle LF.\n\n**Startet diese Rollensichten** (8):\n\n- [Abrechnung Leistungen des Preisblatts A des MSB zwischen MSB und LF — LF](/prozessdoku/202604/LF/GPKE-Teil3-abrechnung-leistungen-des-preisblatts-a-des-msb-zwischen-msb-und-lf)\n- [Abrechnung Leistungen des Preisblatts B des MSB zwischen MSB und LF — LF](/prozessdoku/202604/LF/awh-prozesse-zur-anderung-der-technik-an-lokationen-abrechnung-leistungen-des-preisblatts-b-des-msb-zwischen-msb-und-lf)\n- [Abrechnung Messstellenbetrieb gegenüber dem LF — LF](/prozessdoku/202604/LF/WiM-Teil1-abrechnung-messstellenbetrieb-gegenueber-dem-lf)\n- [Abrechnung der Netznutzung — LF](/prozessdoku/202604/LF/geli-gas-2-0-abrechnung-der-netznutzung)\n- [Abrechnung einer sonstigen Leistung — LF (AWH Sperrprozesse Gas)](/prozessdoku/202604/LF/awh-sperrprozesse-gas-abrechnung-einer-sonstigen-leistung)\n- [Abrechnung einer sonstigen Leistung — LF (GPKE Teil 2)](/prozessdoku/202604/LF/GPKE-Teil2-abrechnung-einer-sonstigen-leistung)\n- [Mehr-/Mindermengenabrechnung zwischen NB und LF — LF](/prozessdoku/202604/LF/prozesse-zur-ermittlung-und-abrechnung-von-mehr-mindermengen-strom-und-gas-mehr-mindermengenabrechnung-zwischen-nb-und-lf)\n- [Netznutzungsabrechnung — LF](/prozessdoku/202604/LF/GPKE-Teil2-netznutzungsabrechnung)\n\n<a href=\"/apis/einzeln/202604/lf/START_VERSAND_ANTWORT_NNA.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 105 Rumpfvarianten heraus, damit sie einzeln lesbar und ausprobierbar sind.\n\n</Hinweisbereich>",
        "operationId": "trigger_LF_START_VERSAND_ANTWORT_NNA",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LF_START_VERSAND_ANTWORT_NNA"
              }
            }
          }
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/event_responses_success"
                }
              }
            },
            "description": "Success | Success"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/event_response_fail"
                }
              }
            },
            "description": "Error | Fail"
          }
        },
        "security": [
          {
            "bearer": []
          }
        ],
        "summary": "START_VERSAND_ANTWORT_NNA (LF)",
        "tags": [
          "START_VERSAND_ANTWORT_NNA"
        ],
        "x-actual-endpoint": "POST /inbound",
        "x-event-source": "event/202604/[LF]_START_VERSAND_ANTWORT_NNA.yaml",
        "x-handbuchsatz": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "AvisTyp": {
        "description": "AvisTyp",
        "enum": [
          "ABGELEHNTE_FORDERUNG",
          "ZAHLUNGSAVIS"
        ],
        "title": "AvisTyp",
        "type": "string"
      },
      "LF_START_VERSAND_ANTWORT_NNA": {
        "properties": {
          "stammdaten": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PI_33001__stammdaten"
              },
              {
                "$ref": "#/components/schemas/PI_33002__stammdaten"
              },
              {
                "$ref": "#/components/schemas/PI_33003__stammdaten"
              },
              {
                "$ref": "#/components/schemas/PI_33004__stammdaten"
              }
            ]
          },
          "transaktionsdaten": {
            "properties": {
              "absender": {
                "properties": {
                  "rollencodenummer": {
                    "$ref": "#/components/schemas/rollencodenummer"
                  }
                },
                "type": "object"
              },
              "empfaenger": {
                "properties": {
                  "marktrolle": {
                    "$ref": "#/components/schemas/marktrolle"
                  },
                  "rollencodenummer": {
                    "$ref": "#/components/schemas/rollencodenummer"
                  }
                },
                "type": "object"
              },
              "kategorie": {
                "$ref": "#/components/schemas/kategorie"
              },
              "nachrichtendatum": {
                "$ref": "#/components/schemas/nachrichtendatum"
              },
              "pruefidentifikator": {
                "description": "Determined dynamically in the event process (basis for the decision: kategorie, pruefi). A value supplied by the sender is ignored. Check identifiers possible in the topic — 33001, 33002, 33003, 33004.",
                "examples": [
                  "33001",
                  "33002",
                  "33003",
                  "33004"
                ]
              },
              "sparte": {
                "$ref": "#/components/schemas/sparte"
              }
            },
            "required": [
              "absender",
              "empfaenger",
              "kategorie",
              "nachrichtendatum",
              "pruefidentifikator",
              "sparte"
            ],
            "type": "object"
          },
          "zusatzdaten": {
            "properties": {
              "eventname": {
                "const": "START_VERSAND_ANTWORT_NNA",
                "default": "START_VERSAND_ANTWORT_NNA",
                "type": "string"
              },
              "prozessId": {
                "type": "string"
              }
            },
            "required": [
              "prozessId",
              "eventname"
            ],
            "type": "object"
          }
        },
        "required": [
          "stammdaten",
          "transaktionsdaten",
          "zusatzdaten"
        ],
        "type": "object"
      },
      "Marktrolle": {
        "description": "A market participant can take on these roles",
        "enum": [
          "NB",
          "LF",
          "MSB",
          "MSBA",
          "GMSB",
          "MDL",
          "DL",
          "BKV",
          "BKO",
          "UENB",
          "KUNDE-SELBST-NN",
          "MGV",
          "EIV",
          "RB",
          "KUNDE",
          "INTERESSENT",
          "KN",
          "UBA",
          "BIKO",
          "ESA"
        ],
        "title": "Market role",
        "type": "string"
      },
      "PI_33001__stammdaten": {
        "properties": {
          "AVIS": {
            "items": {
              "$ref": "#/components/schemas/PI_33001__stammdaten__AVIS"
            },
            "type": "array"
          }
        },
        "required": [
          "AVIS"
        ],
        "type": "object",
        "title": "33001"
      },
      "PI_33001__stammdaten__AVIS": {
        "properties": {
          "avisNummer": {
            "$ref": "#/components/schemas/avisNummer",
            "x-edifact-segment": [
              "BGM+481"
            ]
          },
          "avisTyp": {
            "$ref": "#/components/schemas/avisTyp",
            "x-edifact-segment": [
              "BGM+481"
            ]
          },
          "positionen": {
            "items": {
              "$ref": "#/components/schemas/PI_33001__stammdaten__AVIS__positionen"
            },
            "type": "array"
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33001__stammdaten__AVIS__zuZahlen"
          }
        },
        "required": [
          "avisNummer",
          "avisTyp",
          "positionen",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33001__stammdaten__AVIS__positionen": {
        "properties": {
          "gesamtBrutto": {
            "$ref": "#/components/schemas/PI_33001__stammdaten__AVIS__positionen__gesamtBrutto"
          },
          "istSelbstausgestellt": {
            "$ref": "#/components/schemas/istSelbstausgestellt",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "istStorno": {
            "$ref": "#/components/schemas/istStorno",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "rechnungsDatum": {
            "$ref": "#/components/schemas/rechnungsDatum",
            "x-edifact-segment": [
              "SG5.DOC.DTM+137"
            ]
          },
          "rechnungsNummer": {
            "$ref": "#/components/schemas/rechnungsNummer",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33001__stammdaten__AVIS__positionen__zuZahlen"
          }
        },
        "required": [
          "gesamtBrutto",
          "istSelbstausgestellt",
          "istStorno",
          "rechnungsDatum",
          "rechnungsNummer",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33001__stammdaten__AVIS__positionen__gesamtBrutto": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+12"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33001__stammdaten__AVIS__positionen__zuZahlen": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+9"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33001__stammdaten__AVIS__zuZahlen": {
        "properties": {
          "waehrung": {
            "$ref": "#/components/schemas/waehrung",
            "x-edifact-segment": [
              "SG4.CUX+2"
            ]
          },
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "MOA+12"
            ]
          }
        },
        "required": [
          "waehrung",
          "wert"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten": {
        "properties": {
          "AVIS": {
            "items": {
              "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS"
            },
            "type": "array"
          }
        },
        "required": [
          "AVIS"
        ],
        "type": "object",
        "title": "33002"
      },
      "PI_33002__stammdaten__AVIS": {
        "properties": {
          "avisNummer": {
            "$ref": "#/components/schemas/avisNummer",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "avisTyp": {
            "$ref": "#/components/schemas/avisTyp",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "positionen": {
            "items": {
              "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS__positionen"
            },
            "type": "array"
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS__zuZahlen"
          }
        },
        "required": [
          "avisNummer",
          "avisTyp",
          "positionen",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten__AVIS__positionen": {
        "properties": {
          "abweichung": {
            "items": {
              "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS__positionen__abweichung"
            },
            "type": "array"
          },
          "gesamtBrutto": {
            "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS__positionen__gesamtBrutto"
          },
          "istSelbstausgestellt": {
            "$ref": "#/components/schemas/istSelbstausgestellt",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "istStorno": {
            "$ref": "#/components/schemas/istStorno",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "rechnungsDatum": {
            "$ref": "#/components/schemas/rechnungsDatum",
            "x-edifact-segment": [
              "SG5.DOC.DTM+137"
            ]
          },
          "rechnungsNummer": {
            "$ref": "#/components/schemas/rechnungsNummer",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "referenz": {
            "$ref": "#/components/schemas/referenz",
            "x-edifact-segment": [
              "SG5.DOC.RFF+ACW"
            ]
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33002__stammdaten__AVIS__positionen__zuZahlen"
          }
        },
        "required": [
          "abweichung",
          "gesamtBrutto",
          "istSelbstausgestellt",
          "istStorno",
          "rechnungsDatum",
          "rechnungsNummer",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten__AVIS__positionen__abweichung": {
        "properties": {
          "abweichungsgrundBemerkung1": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung1",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung2": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung2",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung3": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung3",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung4": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung4",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung5": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung5",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundCode": {
            "$ref": "#/components/schemas/abweichungsgrundCode",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT"
            ]
          },
          "abweichungsgrundCodeliste": {
            "$ref": "#/components/schemas/abweichungsgrundCodeliste",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT"
            ]
          }
        },
        "required": [
          "abweichungsgrundCode",
          "abweichungsgrundCodeliste"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten__AVIS__positionen__gesamtBrutto": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+12"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten__AVIS__positionen__zuZahlen": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+9"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33002__stammdaten__AVIS__zuZahlen": {
        "properties": {
          "waehrung": {
            "$ref": "#/components/schemas/waehrung",
            "x-edifact-segment": [
              "SG4.CUX+2"
            ]
          },
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "MOA+12"
            ]
          }
        },
        "required": [
          "waehrung",
          "wert"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten": {
        "properties": {
          "AVIS": {
            "items": {
              "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS"
            },
            "type": "array"
          }
        },
        "required": [
          "AVIS"
        ],
        "type": "object",
        "title": "33003"
      },
      "PI_33003__stammdaten__AVIS": {
        "properties": {
          "avisNummer": {
            "$ref": "#/components/schemas/avisNummer",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "avisTyp": {
            "$ref": "#/components/schemas/avisTyp",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "positionen": {
            "items": {
              "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS__positionen"
            },
            "type": "array"
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS__zuZahlen"
          }
        },
        "required": [
          "avisNummer",
          "avisTyp",
          "positionen",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten__AVIS__positionen": {
        "properties": {
          "abweichung": {
            "items": {
              "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS__positionen__abweichung"
            },
            "type": "array"
          },
          "gesamtBrutto": {
            "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS__positionen__gesamtBrutto"
          },
          "istSelbstausgestellt": {
            "$ref": "#/components/schemas/istSelbstausgestellt",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "istStorno": {
            "$ref": "#/components/schemas/istStorno",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "rechnungsDatum": {
            "$ref": "#/components/schemas/rechnungsDatum",
            "x-edifact-segment": [
              "SG5.DOC.DTM+137"
            ]
          },
          "rechnungsNummer": {
            "$ref": "#/components/schemas/rechnungsNummer",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "referenz": {
            "$ref": "#/components/schemas/referenz",
            "x-edifact-segment": [
              "SG5.DOC.RFF+ACW"
            ]
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33003__stammdaten__AVIS__positionen__zuZahlen"
          }
        },
        "required": [
          "abweichung",
          "gesamtBrutto",
          "istSelbstausgestellt",
          "istStorno",
          "rechnungsDatum",
          "rechnungsNummer",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten__AVIS__positionen__abweichung": {
        "properties": {
          "abschlagsrechnungen": {
            "$ref": "#/components/schemas/abschlagsrechnungen",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z14"
            ]
          },
          "abweichungsgrundBemerkung1": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung1",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung2": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung2",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung3": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung3",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung4": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung4",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung5": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung5",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundCode": {
            "$ref": "#/components/schemas/abweichungsgrundCode",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT"
            ]
          },
          "abweichungsgrundCodeliste": {
            "$ref": "#/components/schemas/abweichungsgrundCodeliste",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT"
            ]
          },
          "fehlendePositionen1": {
            "$ref": "#/components/schemas/fehlendePositionen1",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z16"
            ]
          },
          "fehlendePositionen2": {
            "$ref": "#/components/schemas/fehlendePositionen2",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z16"
            ]
          },
          "fehlendePositionen3": {
            "$ref": "#/components/schemas/fehlendePositionen3",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z16"
            ]
          },
          "fehlendePositionen4": {
            "$ref": "#/components/schemas/fehlendePositionen4",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z16"
            ]
          },
          "fehlendePositionen5": {
            "$ref": "#/components/schemas/fehlendePositionen5",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.FTX+Z16"
            ]
          },
          "zugehoerigeRechnung": {
            "$ref": "#/components/schemas/zugehoerigeRechnung",
            "x-edifact-segment": [
              "SG5.DOC.SG7.AJT.RFF+AFL"
            ]
          }
        },
        "required": [
          "abweichungsgrundCode",
          "abweichungsgrundCodeliste"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten__AVIS__positionen__gesamtBrutto": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+12"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten__AVIS__positionen__zuZahlen": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+9"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33003__stammdaten__AVIS__zuZahlen": {
        "properties": {
          "waehrung": {
            "$ref": "#/components/schemas/waehrung",
            "x-edifact-segment": [
              "SG4.CUX+2"
            ]
          },
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "MOA+12"
            ]
          }
        },
        "required": [
          "waehrung",
          "wert"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten": {
        "properties": {
          "AVIS": {
            "items": {
              "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS"
            },
            "type": "array"
          }
        },
        "required": [
          "AVIS"
        ],
        "type": "object",
        "title": "33004"
      },
      "PI_33004__stammdaten__AVIS": {
        "properties": {
          "avisNummer": {
            "$ref": "#/components/schemas/avisNummer",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "avisTyp": {
            "$ref": "#/components/schemas/avisTyp",
            "x-edifact-segment": [
              "BGM+239"
            ]
          },
          "positionen": {
            "items": {
              "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__positionen"
            },
            "type": "array"
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__zuZahlen"
          }
        },
        "required": [
          "avisNummer",
          "avisTyp",
          "positionen",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__positionen": {
        "properties": {
          "gesamtBrutto": {
            "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__positionen__gesamtBrutto"
          },
          "istSelbstausgestellt": {
            "$ref": "#/components/schemas/istSelbstausgestellt",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "istStorno": {
            "$ref": "#/components/schemas/istStorno",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "positionen": {
            "items": {
              "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__positionen__positionen"
            },
            "type": "array"
          },
          "rechnungsDatum": {
            "$ref": "#/components/schemas/rechnungsDatum",
            "x-edifact-segment": [
              "SG5.DOC.DTM+137"
            ]
          },
          "rechnungsNummer": {
            "$ref": "#/components/schemas/rechnungsNummer",
            "x-edifact-segment": [
              "SG5.DOC"
            ]
          },
          "referenz": {
            "$ref": "#/components/schemas/referenz",
            "x-edifact-segment": [
              "SG5.DOC.RFF+ACW"
            ]
          },
          "zuZahlen": {
            "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__positionen__zuZahlen"
          }
        },
        "required": [
          "gesamtBrutto",
          "istSelbstausgestellt",
          "istStorno",
          "positionen",
          "rechnungsDatum",
          "rechnungsNummer",
          "zuZahlen"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__positionen__gesamtBrutto": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+12"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__positionen__positionen": {
        "properties": {
          "abweichung": {
            "items": {
              "$ref": "#/components/schemas/PI_33004__stammdaten__AVIS__positionen__positionen__abweichung"
            },
            "type": "array"
          },
          "positionsnummer": {
            "$ref": "#/components/schemas/positionsnummer",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1"
            ]
          }
        },
        "required": [
          "abweichung",
          "positionsnummer"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__positionen__positionen__abweichung": {
        "properties": {
          "abweichungsgrundBemerkung1": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung1",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung2": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung2",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung3": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung3",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung4": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung4",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundBemerkung5": {
            "$ref": "#/components/schemas/abweichungsgrundBemerkung5",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.FTX+ABO"
            ]
          },
          "abweichungsgrundCode": {
            "$ref": "#/components/schemas/abweichungsgrundCode",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT"
            ]
          },
          "abweichungsgrundCodeliste": {
            "$ref": "#/components/schemas/abweichungsgrundCodeliste",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT"
            ]
          },
          "referenz": {
            "$ref": "#/components/schemas/referenz",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.RFF+AFL"
            ]
          },
          "zugehoerigeRechnung": {
            "$ref": "#/components/schemas/zugehoerigeRechnung",
            "x-edifact-segment": [
              "SG5.DOC.SG10.DLI+1.SG12.AJT.RFF+AFL"
            ]
          }
        },
        "required": [
          "abweichungsgrundCode",
          "abweichungsgrundCodeliste"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__positionen__zuZahlen": {
        "properties": {
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "SG5.DOC.MOA+9"
            ]
          }
        },
        "required": [
          "wert"
        ],
        "type": "object"
      },
      "PI_33004__stammdaten__AVIS__zuZahlen": {
        "properties": {
          "waehrung": {
            "$ref": "#/components/schemas/waehrung",
            "x-edifact-segment": [
              "SG4.CUX+2"
            ]
          },
          "wert": {
            "$ref": "#/components/schemas/wert",
            "x-edifact-segment": [
              "MOA+12"
            ]
          }
        },
        "required": [
          "waehrung",
          "wert"
        ],
        "type": "object"
      },
      "Sparte": {
        "description": "Division",
        "enum": [
          "STROM",
          "GAS",
          "FERNWAERME",
          "NAHWAERME",
          "WASSER",
          "ABWASSER"
        ],
        "title": "Division",
        "type": "string"
      },
      "abschlagsrechnungen": {
        "description": "Instalment invoices",
        "items": {
          "type": "string"
        },
        "nullable": true,
        "type": "array"
      },
      "abweichungsgrundBemerkung1": {
        "description": "Deviation reason remark 1",
        "type": "string"
      },
      "abweichungsgrundBemerkung2": {
        "description": "Deviation reason remark 2",
        "type": "string"
      },
      "abweichungsgrundBemerkung3": {
        "description": "Deviation reason remark 3",
        "type": "string"
      },
      "abweichungsgrundBemerkung4": {
        "description": "Deviation reason remark 4",
        "type": "string"
      },
      "abweichungsgrundBemerkung5": {
        "description": "Deviation reason remark 5",
        "type": "string"
      },
      "abweichungsgrundCode": {
        "description": "Code of the reason for deviation",
        "type": "string"
      },
      "abweichungsgrundCodeliste": {
        "description": "Code list of the deviation reason",
        "type": "string"
      },
      "avisNummer": {
        "description": "A number for the remittance advice that is unique in the context of use.",
        "type": "string"
      },
      "avisTyp": {
        "$ref": "#/components/schemas/AvisTyp",
        "description": "Indicates the type of the remittance advice."
      },
      "event_response_fail": {
        "description": "Error message on process data API call | Error message on process data API call",
        "properties": {
          "errorCode": {
            "description": "Error identifier",
            "example": "400",
            "type": "string"
          },
          "message": {
            "description": "Technical message | Technical message",
            "example": "Validation Failed",
            "type": "string"
          }
        },
        "type": "object"
      },
      "event_responses_success": {
        "description": "Success message on process data API call | Success message on process data API call",
        "properties": {
          "businessKey": {
            "description": "Unique identifier of the business process | Unique identifier of the business process",
            "format": "uuid",
            "type": "string"
          },
          "message": {
            "description": "Message with details about the triggered 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"
      },
      "fehlendePositionen1": {
        "description": "missing line items 1",
        "type": "string"
      },
      "fehlendePositionen2": {
        "description": "missing line items 2",
        "type": "string"
      },
      "fehlendePositionen3": {
        "description": "missing line items 3",
        "type": "string"
      },
      "fehlendePositionen4": {
        "description": "missing line items 4",
        "type": "string"
      },
      "fehlendePositionen5": {
        "description": "missing line items 5",
        "type": "string"
      },
      "istSelbstausgestellt": {
        "description": "istSelbstausgestellt",
        "type": "boolean"
      },
      "istStorno": {
        "description": "istStorno",
        "type": "boolean"
      },
      "kategorie": {
        "description": "Qualifier from the beginning of the EDIFACT message / BGM",
        "type": "string"
      },
      "marktrolle": {
        "$ref": "#/components/schemas/Marktrolle",
        "description": "Indicates the designation of the market role in free text."
      },
      "nachrichtendatum": {
        "description": "Creation date of the EDIFact / DTM+137",
        "format": "date-time",
        "type": "string"
      },
      "positionsnummer": {
        "description": "Line item number",
        "type": "integer"
      },
      "rechnungsDatum": {
        "description": "rechnungsDatum",
        "format": "date-time",
        "type": "string"
      },
      "rechnungsNummer": {
        "description": "rechnungsNummer",
        "type": "string"
      },
      "referenz": {
        "description": "referenz",
        "type": "string"
      },
      "rollencodenummer": {
        "description": "Specifies the code value of the market role.",
        "type": "string"
      },
      "sparte": {
        "$ref": "#/components/schemas/Sparte",
        "description": "Contains information about the division"
      },
      "waehrung": {
        "description": "Currency of the price",
        "type": "string"
      },
      "wert": {
        "description": "Value",
        "format": "float",
        "type": "number"
      },
      "zugehoerigeRechnung": {
        "description": "Specification of the invoice number to which this deviation refers",
        "type": "string"
      }
    }
  }
}