ZagTrader

cain: Acquirer to Issuer Card Transaction

cain.012 Key Exchange Response

Written and maintained by ZagTrader. Last reviewed . How this page is sourced and checked

cain.012 is the ISO 20022 KeyExchangeResponse message in the Acquirer to Issuer Card Transaction business area (cain). The latest version is cain.012.001.01. It is no longer in the current catalogue of messages.

Message
KeyExchangeResponse
Latest version
cain.012.001.01
Submitting organisation
Not read from the catalogue
MT equivalent
None listed

Archived: no version is in the latest or previous version sets.

What cain.012 is for

The KeyExchangeResponse message is sent by an acquirer, an issuer or an agent to answer to a KeyExchangeInitiation message and complete a cryptographic key exchange.

Definition from the ISO 20022 e-Repository, release of 24 April 2025.

cain.012 versions

Every version published in the e-Repository, newest first. A message keeps its business purpose across versions; each new version is a separate schema with its own namespace.

VersionRegistration statusPublished in
cain.012.001.01latestRegisteredArchive

cain.012 message structure

The building blocks of cain.012.001.01 to three levels, with multiplicity ([0..1] optional, [1..1] mandatory, * any number) and the data type or component. Element names and definitions are from the ISO 20022 repository; usage guidelines such as CBPR+ or a market infrastructure's rules can restrict them further.

  • Document [1..1]
    • KeyXchgRspn KeyExchangeResponse [1..1]
      • Hdr Header [1..1]Header17

        Information related to the protocol management.

        • MsgFctn Message Function [1..1]MessageFunction6Code

          Identifies the type of process related to the message.

        • PrtcolVrsn Protocol Version [1..1]Max6Text

          Version of the acquirer to issuer protocol specifications.

        • XchgId Exchange Identification [1..1]Max3NumericText

          Unique identification of an exchange occurrence.

        • ReTrnsmssnCntr Re Transmission Counter [0..1]Max3NumericText

          Number of retransmission of the message.

        • CreDtTm Creation Date Time [1..1]ISODateTime

          Date and time at which the message was sent.

        • InitgPty Initiating Party [1..1]GenericIdentification73

          Unique identification of the partner that has initiated the exchange.

          • Id Identification [1..1]Max35Text
          • Tp Type [0..1]PartyType9Code
          • Issr Issuer [0..1]PartyType9Code
          • Ctry Country [0..1]Min2Max3AlphaText
          • ShrtNm Short Name [0..1]Max35Text
        • RcptPty Recipient Party [0..1]GenericIdentification73

          Unique identification of the partner that is the recipient of the message exchange.

          • Id Identification [1..1]Max35Text
          • Tp Type [0..1]PartyType9Code
          • Issr Issuer [0..1]PartyType9Code
          • Ctry Country [0..1]Min2Max3AlphaText
          • ShrtNm Short Name [0..1]Max35Text
        • Tracblt Traceability [0..*]Traceability3

          Identification of partners involved in exchange from the merchant to the issuer, with the relative timestamp of their exchanges.

          • RlayId Relay Identification [1..1]GenericIdentification74
          • TracDtTmIn Trace Date Time In [1..1]ISODateTime
          • TracDtTmOut Trace Date Time Out [1..1]ISODateTime
      • KeyXchgRspn Key Exchange Response [1..1]AcquirerKeyExchangeResponse1

        Information related to the response to a key exchange.

        • Envt Environment [1..1]CardTransactionEnvironment6

          Environment of the transaction.

          • SndgInstn Sending Institution [1..1]GenericIdentification73
          • RcvgInstn Receiving Institution [1..1]GenericIdentification73
        • Tx Transaction [1..1]CardTransaction14

          Key exchange transaction.

          • KeyXchgTp Key Exchange Type [1..1]CardServiceType3Code
          • InitrDtTm Initiator Date Time [1..1]ISODateTime
          • KeyVrfctn Key Verification [0..*]KEKIdentifier3
          • Key Key [0..*]CryptographicKey6
          • TxRspn Transaction Response [1..1]ResponseType2
      • SctyTrlr Security Trailer [1..1]ContentInformationType12

        Trailer of the message containing a MAC or a digital signature.

        • CnttTp Content Type [1..1]ContentType2Code

          Type of data protection.

        • EnvlpdData Enveloped Data [0..1]EnvelopedData4

          Data protection by encryption, with a session key.

          • Vrsn Version [0..1]Number
          • Rcpt Recipient [1..*]Recipient4Choice (choice)
          • NcrptdCntt Encrypted Content [0..1]EncryptedContent3
        • AuthntcdData Authenticated Data [0..1]AuthenticatedData4

          Data protection by a message authentication code (MAC).

          • Vrsn Version [0..1]Number
          • Rcpt Recipient [1..*]Recipient4Choice (choice)
          • MACAlgo MAC Algorithm [1..1]AlgorithmIdentification15
          • NcpsltdCntt Encapsulated Content [1..1]EncapsulatedContent3
          • MAC MAC [1..1]Max140Binary
        • SgndData Signed Data [0..1]SignedData4

          Data protected by a digital signatures.

          • Vrsn Version [0..1]Number
          • DgstAlgo Digest Algorithm [1..*]AlgorithmIdentification16
          • NcpsltdCntt Encapsulated Content [1..1]EncapsulatedContent3
          • Cert Certificate [0..*]Max5000Binary
          • Sgnr Signer [1..*]Signer3
        • DgstdData Digested Data [0..1]DigestedData4

          Data protected by a digest.

          • Vrsn Version [0..1]Number
          • DgstAlgo Digest Algorithm [1..1]AlgorithmIdentification16
          • NcpsltdCntt Encapsulated Content [1..1]EncapsulatedContent3
          • Dgst Digest [1..1]Max140Binary

Have a cain.012 message? Paste it into the parser to see every element with its name and definition, and format checks on BICs, IBANs, dates and amounts.

cain.012 questions

What is the latest version of cain.012?
The latest version in the ISO 20022 e-Repository release of 24 April 2025 is cain.012.001.01.
What is the root element of cain.012?
The XML document is Document with the namespace urn:iso:std:iso:20022:tech:xsd:cain.012.001.01, and its message element is KeyXchgRspn (KeyExchangeResponse).
Is there an MT equivalent of cain.012?
No Swift MT message is listed as its direct equivalent on this site. Many ISO 20022 messages have no MT counterpart.

All ISO 20022 messages · ISO 20022 code sets · MT messages

The ISO 20022 message definitions, element names and definitions on this page are reproduced from material published at iso20022.org under the ISO 20022 Intellectual Property Rights policy. This is not the official source: the up-to-date ISO 20022 standards and repository material are published only at iso20022.org. Explanations in our own words are by ZagTrader. ZagTrader is not affiliated with or endorsed by ISO or Swift.