{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordline/main/json-schema/wordline-get-cvv-request-schema.json",
  "title": "GetCvvRequest",
  "description": "encryptedSessionKey is the encrypted session key to be used for encrypting the CVV in the reply",
  "x-generated": "2026-10-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordline-card-cvv-api-openapi.yml#/components/schemas/GetCvvRequest",
  "type": "object",
  "required": [
    "encryptedSessionKey"
  ],
  "properties": {
    "encryptedSessionKey": {
      "$ref": "#/$defs/EncryptedData"
    }
  },
  "$defs": {
    "EncryptedData": {
      "type": "object",
      "required": [
        "algoId",
        "encryptedData",
        "keyId"
      ],
      "properties": {
        "algoId": {
          "type": "string",
          "description": "Algorithm used to encrypt Session Key\nAllowed Value:\n06 for RSA"
        },
        "encryptedData": {
          "type": "string",
          "description": "Cryptogram in hexadecimal string representation"
        },
        "keyId": {
          "type": "string",
          "description": "Key set used for request\nAllowed Value:\n01 - Keyset1\n02 - Keyset2"
        }
      },
      "title": "EncryptedData"
    }
  }
}