{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whitebit/json-schema/whitebit-travel-rule-deposit-verification-request-schema.json",
  "title": "TravelRuleDepositVerificationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whitebit-travel-rule-api-openapi.yml#/components/schemas/TravelRuleDepositVerificationRequest",
  "type": "object",
  "required": [
    "uniqueId",
    "walletType",
    "originator",
    "request",
    "nonce"
  ],
  "properties": {
    "uniqueId": {
      "type": "string",
      "maxLength": 100,
      "description": "Transaction external ID (from deposit/withdraw history)"
    },
    "walletType": {
      "type": "string",
      "enum": [
        "hosted",
        "unhosted"
      ],
      "description": "Wallet type:\n- `hosted` - VASP-hosted wallet (exchange, custodian). Requires `vaspData` object.\n- `unhosted` - Self-custody wallet (hardware wallet, software wallet).\n"
    },
    "originator": {
      "$ref": "#/$defs/TravelRuleOriginator"
    },
    "vaspData": {
      "$ref": "#/$defs/TravelRuleVasp"
    },
    "request": {
      "type": "string",
      "description": "Request signature"
    },
    "nonce": {
      "type": "integer",
      "description": "Unique request identifier"
    }
  },
  "$defs": {
    "TravelRuleAddress": {
      "type": "object",
      "required": [
        "country",
        "city",
        "addressLine1"
      ],
      "description": "Physical address for travel rule compliance",
      "properties": {
        "country": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "description": "ISO 3166-1 alpha-3 country code (3 letters)"
        },
        "city": {
          "type": "string",
          "maxLength": 100,
          "description": "City name"
        },
        "postCode": {
          "type": "string",
          "maxLength": 20,
          "description": "Postal code (optional)"
        },
        "addressLine1": {
          "type": "string",
          "maxLength": 200,
          "description": "Street address"
        }
      }
    },
    "TravelRuleOriginator": {
      "type": "object",
      "required": [
        "type",
        "residenceCountry",
        "walletAddress",
        "address"
      ],
      "description": "Originator information for travel rule compliance",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "individual",
            "entity"
          ],
          "description": "Party type:\n- `individual` - Natural person. Requires `firstName` and `lastName`.\n- `entity` - Legal entity. Requires `fullName`.\n"
        },
        "firstName": {
          "type": "string",
          "maxLength": 100,
          "description": "First name. Required if type = `individual`."
        },
        "lastName": {
          "type": "string",
          "maxLength": 100,
          "description": "Last name. Required if type = `individual`."
        },
        "fullName": {
          "type": "string",
          "maxLength": 200,
          "description": "Full legal name. Required if type = `entity`."
        },
        "residenceCountry": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "description": "ISO 3166-1 alpha-3 country code (3 letters, e.g., `NLD`, `DEU`, `GBR`)"
        },
        "walletAddress": {
          "type": "string",
          "maxLength": 200,
          "description": "Source wallet address"
        },
        "address": {
          "$ref": "#/$defs/TravelRuleAddress"
        }
      }
    },
    "TravelRuleVasp": {
      "type": "object",
      "description": "VASP (Virtual Asset Service Provider) information. Required when `walletType` is `hosted`.\nProvide either `vaspId` (if VASP is in the list from `/travel-rule/vasps`) or `vaspName` (if not in list).\n",
      "properties": {
        "vaspId": {
          "type": "string",
          "maxLength": 100,
          "description": "VASP ID from `/travel-rule/vasps` endpoint. Use this if the VASP is in the list."
        },
        "vaspName": {
          "type": "string",
          "maxLength": 200,
          "description": "VASP name as fallback if not in the list."
        }
      }
    }
  }
}