<?xml version="1.0" encoding="UTF-8"?>
<!--
  ValidateFin sample file - SEPA Credit Transfer, pain.001.001.03.
  Expected validation result: INVALID - exactly one error.
  Deliberate defect: CtrlSum declares 1 000.00 EUR but the transactions total
  1 500.00 EUR. The control sum must equal the sum of the amounts it covers.

  All parties and account numbers are fictitious.
  Reference page: https://validatefin.com/en/resources/samples/sepa-pain001-invalid-ctrlsum
  License: CC-BY-4.0
-->
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CstmrCdtTrfInitn>
    <GrpHdr>
      <MsgId>MSG-ERR-CTRLSUM-001</MsgId>
      <CreDtTm>2026-02-23T10:00:00</CreDtTm>
      <NbOfTxs>2</NbOfTxs>
      <CtrlSum>1000.00</CtrlSum>
      <InitgPty>
        <Nm>Societe Test Erreur</Nm>
      </InitgPty>
    </GrpHdr>
    <PmtInf>
      <PmtInfId>PMT-ERR-001</PmtInfId>
      <PmtMtd>TRF</PmtMtd>
      <NbOfTxs>2</NbOfTxs>
      <CtrlSum>1000.00</CtrlSum>
      <PmtTpInf>
        <SvcLvl>
          <Cd>SEPA</Cd>
        </SvcLvl>
      </PmtTpInf>
      <ReqdExctnDt>2026-02-25</ReqdExctnDt>
      <Dbtr>
        <Nm>Societe Test Erreur</Nm>
      </Dbtr>
      <DbtrAcct>
        <Id>
          <IBAN>FR7630006000011234567890189</IBAN>
        </Id>
      </DbtrAcct>
      <DbtrAgt>
        <FinInstnId>
          <BIC>BNPAFRPP</BIC>
        </FinInstnId>
      </DbtrAgt>
      <CdtTrfTxInf>
        <PmtId>
          <EndToEndId>E2E-ERR-001</EndToEndId>
        </PmtId>
        <Amt>
          <!-- Montant reel : 750 €, mais CtrlSum declare 1000 au total -->
          <InstdAmt Ccy="EUR">750.00</InstdAmt>
        </Amt>
        <CdtrAgt>
          <FinInstnId>
            <BIC>SOGEFRPP</BIC>
          </FinInstnId>
        </CdtrAgt>
        <Cdtr>
          <Nm>Creancier Test Un</Nm>
        </Cdtr>
        <CdtrAcct>
          <Id>
            <IBAN>FR0430003000209876543210093</IBAN>
          </Id>
        </CdtrAcct>
        <RmtInf>
          <Ustrd>Paiement test 1</Ustrd>
        </RmtInf>
      </CdtTrfTxInf>
      <CdtTrfTxInf>
        <PmtId>
          <EndToEndId>E2E-ERR-002</EndToEndId>
        </PmtId>
        <Amt>
          <!-- 750 + 750 = 1500, mais CtrlSum dit 1000 → ERREUR -->
          <InstdAmt Ccy="EUR">750.00</InstdAmt>
        </Amt>
        <CdtrAgt>
          <FinInstnId>
            <BIC>CMCIFRPP</BIC>
          </FinInstnId>
        </CdtrAgt>
        <Cdtr>
          <Nm>Creancier Test Deux</Nm>
        </Cdtr>
        <CdtrAcct>
          <Id>
            <IBAN>FR3314508600001234567890150</IBAN>
          </Id>
        </CdtrAcct>
        <RmtInf>
          <Ustrd>Paiement test 2</Ustrd>
        </RmtInf>
      </CdtTrfTxInf>
    </PmtInf>
  </CstmrCdtTrfInitn>
</Document>
