{
  "openapi": "3.1.0",
  "info": {
    "title": "START_BESTELLUNG_GERAETEUEBERNAHME (MSB)",
    "version": "202604",
    "description": "The event `START_BESTELLUNG_GERAETEUEBERNAHME` of the market role MSB 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_BESTELLUNG_GERAETEUEBERNAHME"
    }
  ],
  "paths": {
    "/inbound": {
      "post": {
        "deprecated": false,
        "description": "Trigger-Event **START_BESTELLUNG_GERAETEUEBERNAHME** der Marktrolle MSB.\n\n**Startet diese Rollensichten** (2):\n\n- [Geräteübernahme — MSBN (AWH WiM Gas 2.0)](/prozessdoku/202604/MSB--MSBN/awh-wim-gas-2-0-gerateubernahme)\n- [Geräteübernahme — MSBN (WiM Strom Teil 1)](/prozessdoku/202604/MSB--MSBN/WiM-Teil1-geraeteuebernahme)\n\n<a href=\"/apis/einzeln/202604/msb/START_BESTELLUNG_GERAETEUEBERNAHME.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_MSB_START_BESTELLUNG_GERAETEUEBERNAHME",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MSB_START_BESTELLUNG_GERAETEUEBERNAHME"
              }
            }
          }
        },
        "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_BESTELLUNG_GERAETEUEBERNAHME (MSB)",
        "tags": [
          "START_BESTELLUNG_GERAETEUEBERNAHME"
        ],
        "x-actual-endpoint": "POST /inbound",
        "x-event-source": "event/202604/[MSB]_START_BESTELLUNG_GERAETEUEBERNAHME.yaml",
        "x-handbuchsatz": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "type": "http"
      }
    },
    "schemas": {
      "MSB_START_BESTELLUNG_GERAETEUEBERNAHME": {
        "properties": {
          "stammdaten": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PI_17001__stammdaten"
              }
            ]
          },
          "transaktionsdaten": {
            "properties": {
              "absender": {
                "properties": {
                  "marktrolle": {
                    "$ref": "#/components/schemas/marktrolle"
                  },
                  "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"
              },
              "pruefidentifikator": {
                "description": "Determined dynamically in the event process. A value supplied by the sender is ignored. Check identifiers possible in the topic — 17001.",
                "examples": [
                  "17001"
                ]
              },
              "sparte": {
                "$ref": "#/components/schemas/sparte"
              }
            },
            "required": [
              "absender",
              "empfaenger",
              "kategorie",
              "sparte"
            ],
            "type": "object"
          },
          "zusatzdaten": {
            "properties": {
              "eventname": {
                "const": "START_BESTELLUNG_GERAETEUEBERNAHME",
                "default": "START_BESTELLUNG_GERAETEUEBERNAHME",
                "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_17001__stammdaten": {
        "properties": {
          "AUFTRAG": {
            "items": {
              "$ref": "#/components/schemas/PI_17001__stammdaten__AUFTRAG"
            },
            "type": "array"
          }
        },
        "required": [
          "AUFTRAG"
        ],
        "type": "object",
        "title": "17001"
      },
      "PI_17001__stammdaten__AUFTRAG": {
        "properties": {
          "ausfuehrungsdatum": {
            "$ref": "#/components/schemas/ausfuehrungsdatum",
            "x-edifact-segment": [
              "DTM+203"
            ]
          },
          "positionsdaten": {
            "items": {
              "$ref": "#/components/schemas/PI_17001__stammdaten__AUFTRAG__positionsdaten"
            },
            "type": "array"
          }
        },
        "required": [
          "ausfuehrungsdatum",
          "positionsdaten"
        ],
        "type": "object"
      },
      "PI_17001__stammdaten__AUFTRAG__positionsdaten": {
        "properties": {
          "positionsnummer": {
            "$ref": "#/components/schemas/positionsnummer",
            "x-edifact-segment": [
              "SG29.LIN"
            ]
          },
          "positionsnummerAngebot": {
            "$ref": "#/components/schemas/positionsnummerAngebot",
            "x-edifact-segment": [
              "SG29.LIN.SG34.RFF+Z03"
            ]
          }
        },
        "required": [
          "positionsnummer",
          "positionsnummerAngebot"
        ],
        "type": "object"
      },
      "Sparte": {
        "description": "Division",
        "enum": [
          "STROM",
          "GAS",
          "FERNWAERME",
          "NAHWAERME",
          "WASSER",
          "ABWASSER"
        ],
        "title": "Division",
        "type": "string"
      },
      "ausfuehrungsdatum": {
        "description": "The execution date describes at which point in time an order is to be executed.",
        "format": "date-time",
        "type": "string"
      },
      "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"
      },
      "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."
      },
      "positionsnummer": {
        "description": "Line item number",
        "type": "integer"
      },
      "positionsnummerAngebot": {
        "description": "sequential item number of the quotation",
        "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"
      }
    }
  }
}