pain.007.001.05
Scope The CustomerPaymentReversal message is sent by the initiating party to the next party in the payment chain. It is used to reverse a payment previously executed. Usage The CustomerPaymentReversal message is exchanged between a non-financial institution customer and an agent to reverse a CustomerDirectDebitInitiation message that has been settled. The result will be a credit on the debtor account. The CustomerPaymentReversal message refers to the original CustomerDirectDebitInitiation message by means of references only or by means of references and a set of elements from the original instruction. The CustomerPaymentReversal message can be used in domestic and cross-border scenarios.
Message Construction
Every ISO20022 message has at the highest level what we call ‘building blocks’. Because the message is constructed as immutable records, the association is by composition. Below you can see the relationship between the message and its constituent building blocks: For comparison, see the ISO20022 official specification
classDiagram direction LR %% CustomerPaymentReversalV05 recursion level 0 with max 0 CustomerPaymentReversalV05 *-- "1..1" GroupHeader56 : GroupHeader CustomerPaymentReversalV05 *-- "1..1" OriginalGroupHeader3 : OriginalGroupInformation CustomerPaymentReversalV05 *-- "0..1" OriginalPaymentInstruction11 : OriginalPaymentInformationAndReversal CustomerPaymentReversalV05 *-- "0..1" SupplementaryData1 : SupplementaryData
Now, we will zero-in one-by-one on each of these building blocks.
GroupHeader building block
Set of characteristics shared by all individual transactions included in the message. Set of characteristics shared by all individual transactions included in the message. For comparison, see the ISO20022 official specification
classDiagram direction tb %% GroupHeader56 recursion level 0 with max 1 class GroupHeader56{ MessageIdentification IsoMax35Text CreationDateTime IsoISODateTime NumberOfTransactions IsoMax15NumericText ControlSum IsoDecimalNumber GroupReversal IsoTrueFalseIndicator } GroupHeader56 *-- "0..2" IAuthorisation1Choice : Authorisation GroupHeader56 *-- "0..1" PartyIdentification43 : InitiatingParty GroupHeader56 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : ForwardingAgent GroupHeader56 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : DebtorAgent GroupHeader56 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : CreditorAgent %% IAuthorisation1Choice recursion level 1 with max 1 %% PartyIdentification43 recursion level 1 with max 1 class PartyIdentification43{ Name IsoMax140Text CountryOfResidence CountryCode } PartyIdentification43 *-- "0..1" PostalAddress6 : PostalAddress PartyIdentification43 *-- "0..1" IParty11Choice : Identification PartyIdentification43 *-- "0..1" ContactDetails2 : ContactDetails %% BranchAndFinancialInstitutionIdentification5 recursion level 1 with max 1 BranchAndFinancialInstitutionIdentification5 *-- "1..1" FinancialInstitutionIdentification8 : FinancialInstitutionIdentification BranchAndFinancialInstitutionIdentification5 *-- "0..1" BranchData2 : BranchIdentification %% BranchAndFinancialInstitutionIdentification5 recursion level 1 with max 1 BranchAndFinancialInstitutionIdentification5 *-- "1..1" FinancialInstitutionIdentification8 : FinancialInstitutionIdentification BranchAndFinancialInstitutionIdentification5 *-- "0..1" BranchData2 : BranchIdentification %% BranchAndFinancialInstitutionIdentification5 recursion level 1 with max 1 BranchAndFinancialInstitutionIdentification5 *-- "1..1" FinancialInstitutionIdentification8 : FinancialInstitutionIdentification BranchAndFinancialInstitutionIdentification5 *-- "0..1" BranchData2 : BranchIdentification
GroupHeader56 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
MessageIdentification | Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message. | Usage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period. |
CreationDateTime | Date and time at which the message was created. | IsoISODateTime - Required 1..1 |
Authorisation | User identification or any user key to be used to check whether the initiating party is allowed to initiate transactions from the account specified in the message. | |
NumberOfTransactions | Number of individual transactions contained in the message. | IsoMax15NumericText - Required 1..1 |
ControlSum | Total of all individual amounts included in the message, irrespective of currencies. | IsoDecimalNumber - Optional 0..1 |
GroupReversal | Indicates whether the reversal applies to the whole group of transactions or to individual transactions within the original group. | IsoTrueFalseIndicator - Optional 0..1 |
InitiatingParty | Party that initiates the reversal message. | Usage: This can be either the creditor or a party that initiates the reversal of the direct debit on behalf of the creditor. |
ForwardingAgent | Financial institution that receives the instruction from the initiating party and forwards it to the next agent in the payment chain. | BranchAndFinancialInstitutionIdentification5 - Optional 0..1 |
DebtorAgent | Financial institution servicing an account for the debtor. | BranchAndFinancialInstitutionIdentification5 - Optional 0..1 |
CreditorAgent | Financial institution servicing an account for the creditor. | BranchAndFinancialInstitutionIdentification5 - Optional 0..1 |
OriginalGroupInformation building block
Information concerning the original group of transactions, to which the message refers. Provides details on the original group, to which the message refers. For comparison, see the ISO20022 official specification
classDiagram direction tb %% OriginalGroupHeader3 recursion level 0 with max 1 class OriginalGroupHeader3{ OriginalMessageIdentification IsoMax35Text OriginalMessageNameIdentification IsoMax35Text OriginalCreationDateTime IsoISODateTime } OriginalGroupHeader3 *-- "0..0" PaymentReversalReason7 : ReversalReasonInformation %% PaymentReversalReason7 recursion level 1 with max 1 class PaymentReversalReason7{ AdditionalInformation IsoMax105Text } PaymentReversalReason7 *-- "0..1" PartyIdentification43 : Originator PaymentReversalReason7 *-- "0..1" IReversalReason4Choice : Reason
OriginalGroupHeader3 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
OriginalMessageIdentification | Point to point reference, as assigned by the original instructing party, to unambiguously identify the original message. | IsoMax35Text - Required 1..1 |
OriginalMessageNameIdentification | Specifies the original message name identifier to which the message refers. | IsoMax35Text - Required 1..1 |
OriginalCreationDateTime | Date and time at which the original message was created. | IsoISODateTime - Optional 0..1 |
ReversalReasonInformation | Provides detailed information on the reversal reason. | PaymentReversalReason7 - Unknown 0..0 |
OriginalPaymentInformationAndReversal building block
Information concerning the original payment information, to which the reversal message refers. Provides details on the original transactions, to which the status report message refers. For comparison, see the ISO20022 official specification
classDiagram direction tb %% OriginalPaymentInstruction11 recursion level 0 with max 1 class OriginalPaymentInstruction11{ ReversalPaymentInformationIdentification IsoMax35Text OriginalPaymentInformationIdentification IsoMax35Text OriginalNumberOfTransactions IsoMax15NumericText OriginalControlSum IsoDecimalNumber BatchBooking IsoBatchBookingIndicator PaymentInformationReversal IsoTrueFalseIndicator } OriginalPaymentInstruction11 *-- "0..0" PaymentReversalReason7 : ReversalReasonInformation OriginalPaymentInstruction11 *-- "0..0" PaymentTransaction56 : TransactionInformation %% PaymentReversalReason7 recursion level 1 with max 1 class PaymentReversalReason7{ AdditionalInformation IsoMax105Text } PaymentReversalReason7 *-- "0..1" PartyIdentification43 : Originator PaymentReversalReason7 *-- "0..1" IReversalReason4Choice : Reason %% PaymentTransaction56 recursion level 1 with max 1 class PaymentTransaction56{ ReversalIdentification IsoMax35Text OriginalInstructionIdentification IsoMax35Text OriginalEndToEndIdentification IsoMax35Text OriginalInstructedAmount IsoActiveOrHistoricCurrencyAndAmount ReversedInstructedAmount IsoActiveOrHistoricCurrencyAndAmount ChargeBearer ChargeBearerType1Code } PaymentTransaction56 *-- "0..0" PaymentReversalReason7 : ReversalReasonInformation PaymentTransaction56 *-- "0..1" OriginalTransactionReference20 : OriginalTransactionReference PaymentTransaction56 *-- "0..0" SupplementaryData1 : SupplementaryData
OriginalPaymentInstruction11 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
ReversalPaymentInformationIdentification | Unique identification, as assigned by an instructing party for an instructed party, to unambiguously identify the reversed payment information group. | Usage: The instructing party is the party sending the reversal message and not the party that sent the original instruction that is being reversed. |
OriginalPaymentInformationIdentification | Unique identification, as assigned by the original sending party, to unambiguously identify the original payment information group. | IsoMax35Text - Required 1..1 |
OriginalNumberOfTransactions | Number of individual transactions contained in the original payment information group. | IsoMax15NumericText - Optional 0..1 |
OriginalControlSum | Total of all individual amounts included in the original payment information group, irrespective of currencies. | IsoDecimalNumber - Optional 0..1 |
BatchBooking | Identifies whether a single entry per individual transaction or a batch entry for the sum of the amounts of all transactions within the group of a message is requested. | Usage: Batch booking is used to request and not order a possible batch booking. |
PaymentInformationReversal | Indicates whether or not the reversal applies to the complete original payment information group or to individual transactions within that group. | IsoTrueFalseIndicator - Optional 0..1 |
ReversalReasonInformation | Provides detailed information on the reversal reason. | PaymentReversalReason7 - Unknown 0..0 |
TransactionInformation | Provides information on the original transactions to which the reversal message refers. | PaymentTransaction56 - Unknown 0..0 |
SupplementaryData building block
Additional information that cannot be captured in the structured elements and/or any other specific block. Additional information that can not be captured in the structured fields and/or any other specific block. For comparison, see the ISO20022 official specification
classDiagram direction tb %% SupplementaryData1 recursion level 0 with max 1 class SupplementaryData1{ PlaceAndName IsoMax350Text } SupplementaryData1 *-- "1..1" IsoSupplementaryDataEnvelope1 : Envelope %% IsoSupplementaryDataEnvelope1 recursion level 1 with max 1
SupplementaryData1 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
PlaceAndName | Unambiguous reference to the location where the supplementary data must be inserted in the message instance. In the case of XML, this is expressed by a valid XPath. | IsoMax350Text - Optional 0..1 |
Envelope | Technical element wrapping the supplementary data. | IsoSupplementaryDataEnvelope1 - Required 1..1 |
Extensibility and generalization considerations
To facilitate generalized design patterns in the system, the CustomerPaymentReversalV05 implementation follows a specific implementaiton pattern. First of all, CustomerPaymentReversalV05 impleemnts IOuterRecord indicating it is the outermost logical part of the message definition. Like all message wrappers, CustomerPaymentReversalV05Document implements IOuterDocument. Because CustomerPaymentReversalV05 implements IOuterDocument, it is a suitable template parameter for IOuterDocument, and causes the internal ‘Message’ to be of type CustomerPaymentReversalV05.
classDiagram class IOuterRecord CustomerPaymentReversalV05 --|> IOuterRecord : Implements CustomerPaymentReversalV05Document --|> IOuterDocument~CustomerPaymentReversalV05~ : Implements class IOuterDocument~CustomerPaymentReversalV05~ { CustomerPaymentReversalV05 Message }
Document wrapper for serialization
The only real purpose CustomerPaymentReversalV05Document serves is to cause the document to be serialized into the ‘urn:iso:std:iso:20022:tech:xsd:pain.007.001.05’ namespace. Therefore, it will probably be the usual practice to build the message and construct this wrapper at the last minute using CustomerPaymentReversalV05.ToDocument() method. The returned CustomerPaymentReversalV05Document value will serialize correctly according to ISO 20022 standards.
classDiagram CustomerPaymentReversalV05Document *-- CustomerPaymentReversalV05 : Document
Sample of message format
This is an abbreviated version of what the message should look like.
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.007.001.05">
<CstmrPmtRvsl>
<GrpHdr>
<!-- GroupHeader inner content -->
</GrpHdr>
<OrgnlGrpInf>
<!-- OriginalGroupInformation inner content -->
</OrgnlGrpInf>
<OrgnlPmtInfAndRvsl>
<!-- OriginalPaymentInformationAndReversal inner content -->
</OrgnlPmtInfAndRvsl>
<SplmtryData>
<!-- SupplementaryData inner content -->
</SplmtryData>
</CstmrPmtRvsl>
</Document>
Data from ISO specification
This is the technical data from the specification document.
<messageDefinition
xmi:id="_NasXRRPeEeSVo-TFVwFHvA"
nextVersions="_akmeHTqxEeWZFYSPlduMhw"
previousVersion="_Z15XoSGmEeKjd4jizyIDGA"
name="CustomerPaymentReversalV05"
definition="Scope
The CustomerPaymentReversal message is sent by the initiating party to the next party in the payment chain. It is used to reverse a payment previously executed.
Usage
The CustomerPaymentReversal message is exchanged between a non-financial institution customer and an agent to reverse a CustomerDirectDebitInitiation message that has been settled. The result will be a credit on the debtor account.
The CustomerPaymentReversal message refers to the original CustomerDirectDebitInitiation message by means of references only or by means of references and a set of elements from the original instruction.
The CustomerPaymentReversal message can be used in domestic and cross-border scenarios."
registrationStatus="Registered"
messageSet="_urpIICeJEeOCeO5e7islRQ"
xmlTag="CstmrPmtRvsl"
rootElement="Document"
xmlns:xmi="http://www.omg.org/XMI">
<constraint
xmi:id="_NasXRxPeEeSVo-TFVwFHvA"
nextVersions="_akmeHzqxEeWZFYSPlduMhw"
previousVersion="_Z15XoyGmEeKjd4jizyIDGA"
name="GroupReversalAndPaymentInformationNotPresentRule"
definition="If GroupHeader/GroupReversal is true, then OriginalPaymentInformationAndReversal is not allowed."
registrationStatus="Provisionally Registered"
expression="<RuleDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ComplexRule xsi:type="ComplexRule"><mustBe><connector>AND</connector><BooleanRule xsi:type="Absence"><leftOperand>/OriginalPaymentInformationAndReversal[*]</leftOperand></BooleanRule></mustBe><onCondition><connector>AND</connector><BooleanRule xsi:type="Presence"><leftOperand>/GroupHeader/GroupReversal</leftOperand></BooleanRule><BooleanRule xsi:type="EqualToValue"><leftOperand>/GroupHeader/GroupReversal</leftOperand><rightOperand>true</rightOperand></BooleanRule></onCondition></ComplexRule></RuleDefinition>
" />
<constraint
xmi:id="_NasXSRPeEeSVo-TFVwFHvA"
nextVersions="_akmeITqxEeWZFYSPlduMhw"
previousVersion="_Z15XpyGmEeKjd4jizyIDGA"
name="GroupReversalAndReasonRule"
definition="If GroupHeader/GroupReversal is true, then OriginalGroupInformation/ReversalReasonInformation/ReversalReason must present."
registrationStatus="Provisionally Registered"
expression="<RuleDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ComplexRule xsi:type="ComplexRule"><mustBe><connector>AND</connector><BooleanRule xsi:type="Presence"><leftOperand>/OriginalGroupInformation/ReversalReasonInformation[*]/Reason</leftOperand></BooleanRule></mustBe><onCondition><connector>AND</connector><BooleanRule xsi:type="Presence"><leftOperand>/GroupHeader/GroupReversal</leftOperand></BooleanRule><BooleanRule xsi:type="EqualToValue"><leftOperand>/GroupHeader/GroupReversal</leftOperand><rightOperand>true</rightOperand></BooleanRule></onCondition></ComplexRule></RuleDefinition>
" />
<constraint
xmi:id="_NasXSxPeEeSVo-TFVwFHvA"
nextVersions="_akmeIzqxEeWZFYSPlduMhw"
previousVersion="_Z15XqyGmEeKjd4jizyIDGA"
name="GroupReversalAndNumberOfTransactionsGuideline"
definition="If GroupHeader/GroupReversal is false and OriginalPaymentInformationAndReversal[*]/PaymentInformationReversal is false, then NumberOfTransactions must equal the number of occurrences of OriginalPaymentInformationAndReversal[*]/TransactionInformation."
registrationStatus="Provisionally Registered" />
<constraint
xmi:id="_NasXTRPeEeSVo-TFVwFHvA"
nextVersions="_akmeJTqxEeWZFYSPlduMhw"
previousVersion="_Z15XryGmEeKjd4jizyIDGA"
name="GroupReversalAndPaymentInformationPresentRule"
definition="If GroupHeader/GroupReversal is false, then at least one occurrence of OriginalPaymentInformationAndReversal must be present."
registrationStatus="Provisionally Registered"
expression="<RuleDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ComplexRule xsi:type="ComplexRule"><mustBe><connector>AND</connector><BooleanRule xsi:type="Presence"><leftOperand>/OriginalPaymentInformationAndReversal[1]</leftOperand></BooleanRule></mustBe><onCondition><connector>AND</connector><BooleanRule xsi:type="Presence"><leftOperand>/GroupHeader/GroupReversal</leftOperand></BooleanRule><BooleanRule xsi:type="EqualToValue"><leftOperand>/GroupHeader/GroupReversal</leftOperand><rightOperand>false</rightOperand></BooleanRule></onCondition></ComplexRule></RuleDefinition>
" />
<constraint
xmi:id="_NasXTxPeEeSVo-TFVwFHvA"
nextVersions="_akmeJzqxEeWZFYSPlduMhw"
previousVersion="_gGzM7SHZEeKGEZlIMFwKzg"
name="SupplementaryDataRule"
definition="The SupplementaryData building block at message level must not be used to provide additional information about a transaction. The SupplementaryData element at transaction level should be used for that purpose."
registrationStatus="Provisionally Registered" />
<messageBuildingBlock
xmi:id="_NasXURPeEeSVo-TFVwFHvA"
nextVersions="_akmeKTqxEeWZFYSPlduMhw"
previousVersion="_Z15XsyGmEeKjd4jizyIDGA"
name="GroupHeader"
definition="Set of characteristics shared by all individual transactions included in the message."
registrationStatus="Provisionally Registered"
maxOccurs="1"
minOccurs="1"
xmlTag="GrpHdr"
complexType="_s8i-Y1kyEeGeoaLUQk__nA_845535139" />
<messageBuildingBlock
xmi:id="_NasXUxPeEeSVo-TFVwFHvA"
nextVersions="_akmeKzqxEeWZFYSPlduMhw"
previousVersion="_Z15XtyGmEeKjd4jizyIDGA"
name="OriginalGroupInformation"
definition="Information concerning the original group of transactions, to which the message refers."
registrationStatus="Provisionally Registered"
maxOccurs="1"
minOccurs="1"
xmlTag="OrgnlGrpInf"
complexType="_sinbcFkyEeGeoaLUQk__nA_1576775271" />
<messageBuildingBlock
xmi:id="_NasXVRPeEeSVo-TFVwFHvA"
nextVersions="_akmeLTqxEeWZFYSPlduMhw"
previousVersion="_Z15XuyGmEeKjd4jizyIDGA"
name="OriginalPaymentInformationAndReversal"
definition="Information concerning the original payment information, to which the reversal message refers."
registrationStatus="Provisionally Registered"
minOccurs="0"
xmlTag="OrgnlPmtInfAndRvsl"
complexType="_pvfnTR72EeSxevWRRWxNAg" />
<messageBuildingBlock
xmi:id="_NasXVxPeEeSVo-TFVwFHvA"
nextVersions="_akmeLzqxEeWZFYSPlduMhw"
previousVersion="_Z15XwyGmEeKjd4jizyIDGA"
name="SupplementaryData"
definition="Additional information that cannot be captured in the structured elements and/or any other specific block."
registrationStatus="Provisionally Registered"
minOccurs="0"
xmlTag="SplmtryData"
complexType="_Qn0zC9p-Ed-ak6NoX_4Aeg_468227563" />
<messageDefinitionIdentifier
businessArea="pain"
messageFunctionality="007"
flavour="001"
version="05" />
</messageDefinition>
ISO Building Blocks
The following items are used as building blocks to construct this message.