{
  "openapi": "3.0.3",
  "info": {
    "title": "Apple Pay Validate Create Payment Session Endpoint",
    "description": "Endpoint to validate and create an Apple Pay payment session.",
    "version": "1.0.0"
  },
  "paths": {
    "/mollie/applepay/validate": {
      "post": {
        "tags": [
          "Mollie",
          "ApplePay"
        ],
        "summary": "Validate and Create Apple Pay Payment Session",
        "operationId": "validateAndCreateApplePayPaymentSession",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "validationUrl": {
                    "type": "string",
                    "description": "The validation URL for Apple Pay session creation."
                  }
                },
                "required": ["validationUrl"],
                "example": {
                  "validationUrl": "https://example.com/applepay/validation"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Apple Pay payment session ID response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "The session ID for Apple Pay payment session."
                    }
                  },
                  "required": ["value"],
                  "example": {
                    "value": "applepay_session_12345"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
