{
  "openapi": "3.0.3",
  "info": {
    "title": "Mollie Webhook Endpoint",
    "description": "Endpoint for handling Mollie webhook notifications.",
    "version": "1.0.0"
  },
  "paths": {
    "/mollie/webhook/{swTransactionId}": {
      "post": {
        "summary": "Handle Mollie Webhook Notification",
        "description": "Handles incoming webhook notifications from Mollie.",
        "operationId": "handleMollieWebhook",
        "parameters": [
          {
            "name": "swTransactionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The transaction ID associated with the webhook."
          }
        ],
        "responses": {
          "200": {
            "description": "Webhook handled successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    }
                  },
                  "required": ["success"]
                },
                "example": {
                  "success": true
                }
              }
            }
          },
          "400": {
            "description": "Bad request.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "required": ["success", "error"]
                },
                "example": {
                  "success": false,
                  "error": "Bad request error message."
                }
              }
            }
          }
        }
      }
    }
  }
}
