Pain.008

The pain.008 message defined by ISO 20022 is used to submit instructions (PAyment INitiation) to banks. Specifically, pain.008 is a Customer Direct Debit Initiation file FinDock uses for native direct debit processing of SEPA, CH-DD, and LSV+ payment collection.

FinDock supports the follow pain.008 versions:

  • Pain.008.001.02
  • Pain.008.001.03
  • Pain.008.001.08

Pain.008 file structure

The pain.008 file in aa nested XML with three main sections:

  • Group header node
    • Payment information node
      • One or more transaction details nodes

Pain.008 field mapping

The following table outlines how Salesforce data is mapped to pain.008 elements. Please note the mappings cover the most common data points and is not an exhaustive mapping of all possible variables.

Group Header node

The Group Header (GrpHdr) node includes details covering the entire scope of the file.

ObjectFieldPain.008 elementFurther info
N/AmessageIdMsgIdUnique reference generated by FinDock
N/AN/ACreDtTmTime file was generated, Y-m-d\TH:i:s
N/AtotalRecordsNbOfTxsCalculated during file generation
N/AtotalAmountCtrlSumCalculated during file generation
N/ANameInitgPty / NmFrom target on payment schedule

Payment Information node

The Payment Information (PmtInf) node includes details about the creditor and the payment collection (batch of transactions).

ObjectFieldPain.008 elementFurther info
N/AbatchIdPmtInfiIdPrefix PAY-ID- + section nr. + sequence type + file generation date
N/AN/APmtMtdAlways DD
N/ABatch Record CountNbOfTxsCalculated during file generation
N/ABatch Record AmountCtrlSumCalculated during file generation
N/AN/APmtTpInf / SvcLvl / CdAlways SEPA
N/AN/APmtTpInf / LclInstrm / CdAlways CORE
InstallmentSequence TypePmtTpInf / SeqTpRCUR, OOFF or FIRST
Payment ScheduleCollection DateReqdColltnDt-
N/ANameCdtr / NmFrom target on payment schedule
N/AIBANCdtrAcct / Id / IBANFrom target on payment schedule
N/ABICCdtrAcct / CcyEUR added if multi-currency org
N/AN/ACdtrAgt / FinInstnId / BICFIFrom target on payment schedule
N/AN/AChrgBrAlways SLEV
N/ACreditor IdCdtrSchmeId / Id / PrvtId / Other / IdFrom target on payment schedule
N/AN/ACdtrSchmeId / Id / PrvtId / Other / SchmeNm / PrtryAlways SEPA

Direct Debit Transaction Information node

The Direct Debit Transaction Information (DrctDbtTxInf) node includes details of individual installments to be collected.

ObjectFieldPain.008 elementFurther info
InstallmentFinal Payment ReferencePmtId / EndtoEndId-
InstallmentAmountInstdAmt / CcyEUR + Amount
InstallmentMandate IdInstdDrctDbtTx / MndtRltdInf / MndtIdFrom linked mandate
InstallmentMandate Date SignedInstdDrctDbtTx / MndtRltdInf / DtOfSgntrFrom linked mandate
InstallmentBICDbtrAgent / FinInstanId / BICFIIf non-EEA account
InstallmentAccount Holder NameDbtr / NmTaken from linked payment profile
InstallmentCountryDbtr / PstlAdr / CtryIf non-EEA account; taken from linked payment profile
InstallmentStreet + House name or numberDbtr / PstlAdr / AdrLine1If non-EEA account, from linked payment profile
InstallmentZipcode + CityDbtr / PstlAdr / AdrLine2If non-EEA account, from linked payment profile
InstallmentIBANDbtrAcct / Id / IBAN-
N/AN/ADbtrAcct / CcyEUR added if multi-currency org
InstallmentBank Statement DescriptionRmtInf / Ustrd-

Swiss pain.008

The Swiss direct debit methods CH-DD and LSV+ also use pain.008 files for payment instructions. However, there are Swiss-specific modifications for these two methods compared to the standard SEPA Direct Debit pain.008 files. The table below outlines the pain.008 file mapping for CH-DD and LSV+ that either overrides or adds to the standard mapping outlined above.

ObjectFieldPain.008 elementFurther info
N/AN/APmtInf / PmtTpInf / SvcLvl / PrtryAlways CHTA
N/AN/APmtInf / PmtTpInf / LclInstrum / PrtryCH-DD of LSV+
N/ACompany NamePmtInf / Cdtr / NmTarget on payment schedule
N/ABank Account NumberPmtInf / CdtrAcct / Id / IBANTarget on payment schedule
N/ABank Account AdditionPmtInf / CdtrAgt / FinInstnId / ClrSysMmbId / MmbIdFrom target on payment schedule
N/AESR Participant NumberPmtInf / CdtrAgt / FinInstnId / Othr / IdFrom target on payment schedule
N/ACreditor IdPmtInf / CdtrSchmeId / Id / PrvtId / Other / IdFrom target on payment schedule
N/ACreditor IdPmtInf / CdtrSchmeId / Id / PrvtId / Other / SchmeNm / PrtryAlways CHLS
InstallmentFinal Payment ReferenceDrctDbtTxInf / PmtId / InstrId-
N/AN/ADrctDbtTxInf / PmtId / EndtoEndIdAlways NOTPROVIDED
InstallmentAmountDrctDbtTxInf / InstdAmt / CcyCHF + Amount
InstallmentBICDrctDbtTxInf / DbtrAgent / FinInstanId / ClrSysMmbId / MmbId-
N/AN/ADrctDbtTxInf / RmtInf / Strd / CdtrRefInf / Tp / CdOrPrtry / PrtryAlways ESR
InstallmentFinal Payment ReferenceDrctDbtTxInf / RmtInf / Strd / CdtrRefInf / Ref-

Was this page helpful?