{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/barclays/main/json-schema/barclays-retrieve-card-details-request-data-schema.json",
  "title": "RetrieveCardDetailsRequestData",
  "description": "Retrieve Card-Details Request Data",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/barclays-card-account-details-inquiry-external-api-api-openapi.yml#/components/schemas/RetrieveCardDetailsRequestData",
  "type": "object",
  "additionalProperties": false,
  "deprecated": false,
  "properties": {
    "data": {
      "$ref": "#/$defs/RetrieveCardDetailsRequest"
    }
  },
  "required": [
    "data"
  ],
  "nullable": false,
  "$defs": {
    "AccountLookupToken": {
      "type": "string",
      "description": "Account Lookup request reference Id",
      "maxLength": 36,
      "minLength": 36,
      "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    },
    "IsIdentityVerified": {
      "type": "string",
      "description": "Possible values of identity verification",
      "enum": [
        "Y",
        "N"
      ]
    },
    "POSMetaData": {
      "type": "object",
      "additionalProperties": false,
      "description": "Fraud Analysis Data",
      "properties": {
        "channel": {
          "type": "string",
          "description": "Channel originating the request",
          "maxLength": 30,
          "minLength": 3,
          "pattern": "^[a-zA-Z0-9\\-_]{3,30}$"
        },
        "storeId": {
          "type": "string",
          "description": "Store Id where the request made",
          "maxLength": 30,
          "minLength": 3,
          "pattern": "^[a-zA-Z0-9\\-_]{3,30}$"
        },
        "terminalId": {
          "type": "string",
          "description": "POS terminal id where the request was made",
          "maxLength": 30,
          "minLength": 3,
          "pattern": "^[a-zA-Z0-9\\-_]{3,30}$"
        },
        "zipCode": {
          "type": "string",
          "description": "ZipCode where the request originated",
          "maxLength": 20,
          "minLength": 5,
          "pattern": "^[a-zA-Z0-9\\-_\\s]{5,20}$"
        }
      },
      "required": [
        "channel",
        "storeId",
        "terminalId",
        "zipCode"
      ]
    },
    "RetrieveCardDetailsRequest": {
      "type": "object",
      "additionalProperties": false,
      "deprecated": false,
      "description": "Retrieve Card Details Request",
      "properties": {
        "accountLookupToken": {
          "$ref": "#/$defs/AccountLookupToken"
        },
        "isIdentityVerified": {
          "$ref": "#/$defs/IsIdentityVerified"
        },
        "posMetaData": {
          "$ref": "#/$defs/POSMetaData"
        }
      },
      "required": [
        "accountLookupToken",
        "posMetaData"
      ],
      "nullable": false
    }
  }
}