{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jsonpage-com/json-schema/jsonpage-com-ibancheck-schema.json",
  "title": "IBANCheck",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/jsonpage-com-api-openapi.json#/components/schemas/IBANCheck",
  "type": "object",
  "required": [
    "iban",
    "valid",
    "reason",
    "country",
    "sepa",
    "bank_code",
    "branch_code",
    "bank_name",
    "bic",
    "warnings"
  ],
  "properties": {
    "iban": {
      "type": "string",
      "description": "The IBAN as checked (upper case, no spaces)."
    },
    "valid": {
      "type": "boolean",
      "description": "true when the IBAN has the length of its country and right check digits."
    },
    "reason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "invalid_format",
        "unknown_country",
        "invalid_length",
        "invalid_checksum",
        null
      ],
      "description": "Why the IBAN is invalid; null when valid. invalid_checksum is often a typo."
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "Two-letter country code of the IBAN."
    },
    "sepa": {
      "type": "boolean",
      "description": "The country belongs to the SEPA area."
    },
    "bank_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The bank code read from the IBAN, null when invalid or not described for the country."
    },
    "branch_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The branch code, for the countries that have one."
    },
    "bank_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the bank, null when unknown. Known for Austria, Belgium, Finland, France, Germany, Latvia, Lithuania and the Netherlands."
    },
    "bic": {
      "type": [
        "string",
        "null"
      ],
      "description": "BIC of the bank, null when unknown."
    },
    "company": {
      "type": "object",
      "description": "Present only with company_id.",
      "required": [
        "id",
        "status",
        "country_match"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "closed",
            "unknown"
          ]
        },
        "country_match": {
          "type": "boolean",
          "description": "The bank of the account is in the country of the company."
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "not_sepa",
          "country_mismatch",
          "company_closed"
        ]
      },
      "description": "Points to check before paying; empty when there are none."
    }
  }
}