{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-payment-cryptography/json-schema/amazon-payment-cryptography-generate-pin-data-output-schema.json",
  "title": "GeneratePinDataOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-payment-cryptography-pindata-api-openapi.yml#/components/schemas/GeneratePinDataOutput",
  "type": "object",
  "properties": {
    "GenerationKeyArn": {
      "type": "string",
      "description": "The keyARN of the pin data generation key that Amazon Web Services Payment Cryptography uses for PIN, PVV or PIN Offset generation."
    },
    "GenerationKeyCheckValue": {
      "type": "string",
      "description": "The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography computes the KCV according to the CMAC specification."
    },
    "EncryptionKeyArn": {
      "type": "string",
      "description": "The keyARN of the PEK that Amazon Web Services Payment Cryptography uses for encrypted pin block generation. For ECDH, it is the keyARN of the asymmetric ECC key."
    },
    "EncryptionKeyCheckValue": {
      "type": "string",
      "description": "The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography computes the KCV according to the CMAC specification."
    },
    "EncryptedPinBlock": {
      "type": "string",
      "description": "The PIN block encrypted under PEK from Amazon Web Services Payment Cryptography. The encrypted PIN block is a composite of PAN (Primary Account Number) and PIN (Personal Identification Number), generated in accordance with ISO 9564 standard."
    },
    "PinData": {
      "$ref": "#/$defs/PinData"
    }
  },
  "required": [
    "GenerationKeyArn",
    "GenerationKeyCheckValue",
    "EncryptionKeyArn",
    "EncryptionKeyCheckValue",
    "EncryptedPinBlock",
    "PinData"
  ],
  "$defs": {
    "PinData": {
      "type": "object",
      "properties": {
        "PinOffset": {
          "type": "string",
          "description": "The PIN offset value."
        },
        "VerificationValue": {
          "type": "string",
          "description": "The unique data to identify a cardholder. In most cases, this is the same as cardholder's Primary Account Number (PAN). If a value is not provided, it defaults to PAN."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}