{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/idenfy/main/json-schema/idenfy-bank-card-token-schema.json",
  "title": "BankCardToken",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/idenfy-bank-card-verification-api-openapi.yml#/components/schemas/BankCardToken",
  "type": "object",
  "properties": {
    "tokenString": {
      "type": "string",
      "readOnly": true,
      "description": "Token string identifying the bank card verification session."
    },
    "expiration": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Date and time when this token will become expired."
    },
    "isValid": {
      "type": "boolean",
      "readOnly": true,
      "description": "Indicates whether this token is valid."
    },
    "sessionUrl": {
      "type": "string",
      "format": "uri",
      "readOnly": true,
      "description": "The URL to send your end user to in order to complete the card check."
    },
    "mobileCode": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "Eight-digit code the end user can enter in the iDenfy mobile app to open this session. Returned only when `generateMobileCode` was set."
    }
  },
  "required": [
    "expiration",
    "isValid",
    "sessionUrl",
    "tokenString"
  ]
}