{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/track/json-schema/track-verification-session-schema.json",
  "title": "VerificationSession",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/track-payments-api-openapi.yml#/components/schemas/VerificationSession",
  "type": "object",
  "properties": {
    "progress": {
      "$ref": "#/$defs/VerificationProgress"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "expires_at",
    "progress",
    "url"
  ],
  "$defs": {
    "CustomerTypeEnum": {
      "enum": [
        "individual",
        "business"
      ],
      "type": "string",
      "description": "* `individual` - Individual\n* `business` - Business"
    },
    "VerificationProgress": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "enabled": {
          "type": "boolean"
        },
        "can_manage": {
          "type": "boolean"
        },
        "can_start": {
          "type": "boolean"
        },
        "provider_name": {
          "type": "string"
        },
        "subject_type": {
          "type": "string"
        },
        "available_subject_types": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CustomerTypeEnum"
          }
        },
        "status": {
          "$ref": "#/$defs/VerificationProgressStatusEnum"
        },
        "next_action": {
          "$ref": "#/$defs/VerificationProgressNextActionEnum"
        },
        "observed_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "refresh_failed": {
          "type": "boolean"
        }
      },
      "required": [
        "available_subject_types",
        "can_manage",
        "can_start",
        "enabled",
        "id",
        "next_action",
        "observed_at",
        "provider_name",
        "refresh_failed",
        "status",
        "subject_type"
      ]
    },
    "VerificationProgressNextActionEnum": {
      "enum": [
        "start",
        "resume",
        "refresh",
        "wait",
        "complete",
        "support"
      ],
      "type": "string",
      "description": "* `start` - start\n* `resume` - resume\n* `refresh` - refresh\n* `wait` - wait\n* `complete` - complete\n* `support` - support"
    },
    "VerificationProgressStatusEnum": {
      "enum": [
        "not_started",
        "in_progress",
        "pending",
        "verified",
        "rejected",
        "unknown"
      ],
      "type": "string",
      "description": "* `not_started` - not_started\n* `in_progress` - in_progress\n* `pending` - pending\n* `verified` - verified\n* `rejected` - rejected\n* `unknown` - unknown"
    }
  }
}