{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrebate-vip/json-schema/coinrebate-vip-referral-check-response-schema.json",
  "title": "ReferralCheckResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrebate-vip-openapi.json#/components/schemas/ReferralCheckResponse",
  "type": "object",
  "required": [
    "url",
    "exchange",
    "known_host",
    "carries_current_code",
    "code_expected",
    "http_status",
    "final_url",
    "verdict",
    "official_link"
  ],
  "properties": {
    "url": {
      "type": "string"
    },
    "exchange": {
      "type": [
        "string",
        "null"
      ]
    },
    "known_host": {
      "type": "boolean"
    },
    "carries_current_code": {
      "type": "boolean"
    },
    "code_expected": {
      "type": [
        "string",
        "null"
      ]
    },
    "http_status": {
      "type": [
        "integer",
        "null"
      ]
    },
    "final_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "verdict": {
      "type": "string",
      "enum": [
        "valid",
        "stale_code",
        "unknown_host",
        "unreachable"
      ]
    },
    "official_link": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "code_owner": {
      "type": "string",
      "enum": [
        "coinrebate_current",
        "coinrebate_retired",
        "other_or_none"
      ]
    },
    "scope_note": {
      "type": "string"
    },
    "reachability_note": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "waf_challenge"
      ]
    }
  }
}