{
  "openapi": "3.1.0",
  "info": {
    "title": "Rahunok Free Ukrainian IBAN Checker API",
    "version": "1.0.0",
    "description": "Free, zero-auth public API to validate Ukrainian IBANs (ISO 13616 Mod-97), resolve NBU MFO bank & liquidation status, detect NovaPay (935871), and classify 2600 / 2620 accounts.",
    "contact": {
      "name": "Rahunok",
      "url": "https://rahunok.com",
      "email": "rahunok@rahunok.com"
    }
  },
  "servers": [
    {
      "url": "https://rahunok.com"
    }
  ],
  "paths": {
    "/api/iban": {
      "get": {
        "operationId": "checkUkrainianIbanGet",
        "summary": "Validate Ukrainian IBAN, resolve NBU bank & 2600/2620 account class (100% Free)",
        "description": "Stateless, no-auth endpoint validating any Ukrainian IBAN (UA + 27 digits) with ISO 13616 Mod-97 checksum, NBU bank lookup by 6-digit MFO (including liquidation status and NovaPay 935871 non-bank detection), and balance account class (2600 business/FOP vs 2620 individual). Calling GET /api/iban without parameters returns API documentation.",
        "parameters": [
          {
            "name": "iban",
            "in": "query",
            "required": false,
            "description": "Ukrainian IBAN (UA + 27 digits, spaces allowed). Alias: account. Omit for JSON guide.",
            "schema": {
              "type": "string",
              "example": "UA223052990000026001234567890"
            }
          },
          {
            "name": "account",
            "in": "query",
            "required": false,
            "description": "Optional alias for iban query parameter.",
            "schema": {
              "type": "string",
              "example": "UA223052990000026001234567890"
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Localized explanation language: uk, en, pl, or ru (default: uk).",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "en",
                "pl",
                "ru"
              ],
              "default": "uk"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Structured IBAN validation result or API guide.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "checkUkrainianIbanPost",
        "summary": "Validate Ukrainian IBAN via JSON body (100% Free)",
        "description": "Accepts JSON { \"iban\": \"UA...\", \"lang\": \"uk\" } and returns structured validation metadata.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "iban"
                ],
                "properties": {
                  "iban": {
                    "type": "string",
                    "example": "UA223052990000026001234567890"
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "en",
                      "pl",
                      "ru"
                    ],
                    "default": "uk"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured IBAN validation result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request body or missing iban parameter."
          }
        }
      }
    }
  }
}