NbOfTxs

ISO20022 describes NbOfTxs as an optional element which can be given in GrpdHdr and in PmtInf levels. When given in GrpdHdr it is used to indicate the total number transactions in the message. When given in PmtInf it is used to indicate the total number of transactions in the group.

(Bank specific rules may still apply to make either of the levels mandatory.)

Unless otherwise decided with the bank, the validator checks whether the amount of transactions matches with the amount given in NbOfTxs.

The following has valid NbOfTxs:

<GrpHdr> 
<NbOfTxs>3</NbOfTxs>
</GrpHdr>
<PmtInf>
<NbOfTxs>1</NbOfTxs>
    <CdtTrfTxInf>
     <!---->
    </CdtTrfTxInf>
</PmtInf>
<PmtInf>
<NbOfTxs>2</NbOfTxs>
<CdtTrfTxInf>
<!---->
</CdtTrfTxInf>
<CdtTrfTxInf>
<!---->
</CdtTrfTxInf>
</PmtInf>

(Various elements removed for the sake of the example)