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.
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.
| Version | Registration status | Published in |
|---|---|---|
| cain.012.001.01latest | Registered | Archive |
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]KeyXchgRspnKeyExchangeResponse [1..1]HdrHeader [1..1]Header17Information related to the protocol management.
MsgFctnMessage Function [1..1]MessageFunction6CodeIdentifies the type of process related to the message.
PrtcolVrsnProtocol Version [1..1]Max6TextVersion of the acquirer to issuer protocol specifications.
XchgIdExchange Identification [1..1]Max3NumericTextUnique identification of an exchange occurrence.
ReTrnsmssnCntrRe Transmission Counter [0..1]Max3NumericTextNumber of retransmission of the message.
CreDtTmCreation Date Time [1..1]ISODateTimeDate and time at which the message was sent.
InitgPtyInitiating Party [1..1]GenericIdentification73Unique identification of the partner that has initiated the exchange.
IdIdentification [1..1]Max35TextTpType [0..1]PartyType9CodeIssrIssuer [0..1]PartyType9CodeCtryCountry [0..1]Min2Max3AlphaTextShrtNmShort Name [0..1]Max35Text
RcptPtyRecipient Party [0..1]GenericIdentification73Unique identification of the partner that is the recipient of the message exchange.
IdIdentification [1..1]Max35TextTpType [0..1]PartyType9CodeIssrIssuer [0..1]PartyType9CodeCtryCountry [0..1]Min2Max3AlphaTextShrtNmShort Name [0..1]Max35Text
TracbltTraceability [0..*]Traceability3Identification of partners involved in exchange from the merchant to the issuer, with the relative timestamp of their exchanges.
RlayIdRelay Identification [1..1]GenericIdentification74TracDtTmInTrace Date Time In [1..1]ISODateTimeTracDtTmOutTrace Date Time Out [1..1]ISODateTime
KeyXchgRspnKey Exchange Response [1..1]AcquirerKeyExchangeResponse1Information related to the response to a key exchange.
EnvtEnvironment [1..1]CardTransactionEnvironment6Environment of the transaction.
SndgInstnSending Institution [1..1]GenericIdentification73RcvgInstnReceiving Institution [1..1]GenericIdentification73
TxTransaction [1..1]CardTransaction14Key exchange transaction.
KeyXchgTpKey Exchange Type [1..1]CardServiceType3CodeInitrDtTmInitiator Date Time [1..1]ISODateTimeKeyVrfctnKey Verification [0..*]KEKIdentifier3KeyKey [0..*]CryptographicKey6TxRspnTransaction Response [1..1]ResponseType2
SctyTrlrSecurity Trailer [1..1]ContentInformationType12Trailer of the message containing a MAC or a digital signature.
CnttTpContent Type [1..1]ContentType2CodeType of data protection.
EnvlpdDataEnveloped Data [0..1]EnvelopedData4Data protection by encryption, with a session key.
VrsnVersion [0..1]NumberRcptRecipient [1..*]Recipient4Choice (choice)NcrptdCnttEncrypted Content [0..1]EncryptedContent3
AuthntcdDataAuthenticated Data [0..1]AuthenticatedData4Data protection by a message authentication code (MAC).
VrsnVersion [0..1]NumberRcptRecipient [1..*]Recipient4Choice (choice)MACAlgoMAC Algorithm [1..1]AlgorithmIdentification15NcpsltdCnttEncapsulated Content [1..1]EncapsulatedContent3MACMAC [1..1]Max140Binary
SgndDataSigned Data [0..1]SignedData4Data protected by a digital signatures.
VrsnVersion [0..1]NumberDgstAlgoDigest Algorithm [1..*]AlgorithmIdentification16NcpsltdCnttEncapsulated Content [1..1]EncapsulatedContent3CertCertificate [0..*]Max5000BinarySgnrSigner [1..*]Signer3
DgstdDataDigested Data [0..1]DigestedData4Data protected by a digest.
VrsnVersion [0..1]NumberDgstAlgoDigest Algorithm [1..1]AlgorithmIdentification16NcpsltdCnttEncapsulated Content [1..1]EncapsulatedContent3DgstDigest [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.