{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/curlec/json-schema/curlec-fund-account-validation-schema.json",
  "title": "FundAccountValidation",
  "description": "Bank/VPA account validation result. Live-mode only, RazorpayX Lite only.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/curlec-x-account-validation-api-openapi.yml#/components/schemas/FundAccountValidation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Validation ID (fav_*)"
    },
    "entity": {
      "type": "string",
      "enum": [
        "fund_account.validation"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "created",
        "completed",
        "failed"
      ]
    },
    "amount": {
      "type": "integer",
      "description": "Penny drop amount in paise"
    },
    "currency": {
      "type": "string"
    },
    "utr": {
      "type": "string"
    },
    "reference_id": {
      "type": "string"
    },
    "notes": {
      "type": "object"
    },
    "validated_account_type": {
      "type": "string"
    },
    "fund_account": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "account_type": {
          "type": "string"
        },
        "bank_account": {
          "type": "object"
        },
        "vpa": {
          "type": "object"
        }
      }
    },
    "validation_results": {
      "type": "object",
      "properties": {
        "account_status": {
          "type": "string"
        },
        "registered_name": {
          "type": "string"
        },
        "name_match_score": {
          "type": "integer"
        },
        "details": {
          "type": "object"
        }
      }
    },
    "status_details": {
      "type": "object"
    },
    "upi_intent": {
      "type": "object",
      "description": "Present only for reverse penny drop (UPI intent flow)",
      "properties": {
        "intent_url": {
          "type": "string"
        },
        "phonepe_url": {
          "type": "string"
        },
        "gpay_url": {
          "type": "string"
        },
        "paytm_url": {
          "type": "string"
        },
        "bhim_url": {
          "type": "string"
        },
        "encoded_qr_code": {
          "type": "string"
        }
      }
    },
    "created_at": {
      "type": "integer"
    }
  }
}