{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-status-response-schema.json",
  "title": "The results of the information requested.",
  "description": "Note that not all information that was requested is guaranteed to be available from the bank and present in the response.",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-verification-iban-verification-v1-openapi.yml#/components/schemas/StatusResponse",
  "type": "object",
  "properties": {
    "transaction_id": {
      "$ref": "#/$defs/TransactionID"
    },
    "status": {
      "type": "string",
      "description": "If the status is `open`, then the information was not yet available. Please try again after a few more seconds. If the status is `success` then you can expect the requested information to be present. A status of cancelled means that the user has cancelled the flow.\n",
      "enum": [
        "open",
        "success",
        "cancelled",
        "failure",
        "expired"
      ]
    },
    "issuer_id": {
      "$ref": "#/$defs/IssuerID"
    },
    "name": {
      "maxLength": 200,
      "type": "string"
    },
    "iban": {
      "maxLength": 20,
      "pattern": "^NL[0-9]{2}[A-Z-a-z0-9]{4}[0-9]{10}$",
      "type": "string"
    }
  },
  "$defs": {
    "IssuerID": {
      "pattern": "^[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}$",
      "type": "string",
      "description": "An identifier for the bank."
    },
    "TransactionID": {
      "maxLength": 16,
      "minLength": 16,
      "pattern": "^[0-9]+$",
      "type": "string",
      "description": "A token for this transaction. You should store this with your session data, so that at any point, you can make a callback to the CM api and retrieve the status and/or results. Note that it is not guaranteed that your user will return to you via your merchant_return_url. A connection might be dropped, a user might accidentally close a window, or they might trigger the back button and return that way. This id is the only way you can retrieve any information in that case.\n"
    }
  }
}