Unicorn

The Unicorn Documentation Hub

Welcome to the Unicorn documentation hub where you'll find useful information to help you start working with Unicorn as quickly as possible.

Guides    

Direct Debit XML Input Example

Note: For ACH Direct Debit, the PAIN standard is PAIN.008.001.02. This is seen in the 2nd line of the example below.

The example below is for the ACH Direct Debit CCD rail. The XML for ACH Direct Debit PPD is identical to that of ACH Direct Debit CCD, except that the value of the Prtry element is "PPD".

<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02">
  <CstmrDrctDbtInitn>
    <GrpHdr>
      <MsgId>DOMC10000029</MsgId>
      <CreDtTm>2020-09-03T16:32:48</CreDtTm>
      <NbOfTxs>3</NbOfTxs>
      <CtrlSum>6.00</CtrlSum>
      <InitgPty>
        <Nm>John Doe Corporation</Nm>
        <Id>
          <OrgId>
            <Othr>
              <Id>7812871377</Id>
            </Othr>
          </OrgId>
        </Id>
      </InitgPty>
    </GrpHdr>
    <PmtInf>
      <PmtInfId>DOMC10000029</PmtInfId>
      <PmtMtd>DD</PmtMtd>
      <BtchBookg>true</BtchBookg>
      <NbOfTxs>3</NbOfTxs>
      <CtrlSum>6.00</CtrlSum>
      <PmtTpInf>
        <SvcLvl>
          <Cd>NURG</Cd>
        </SvcLvl>
        <LclInstrm>
          <Prtry>CCD</Prtry>
        </LclInstrm>
      </PmtTpInf>
      <ReqdColltnDt>2020-09-03</ReqdColltnDt>
      <Cdtr>
        <Nm>Upgrade Corporation</Nm>
        <PstlAdr>
          <Ctry>US</Ctry>
          <AdrLine>275 Battery Street, 23rd Floor</AdrLine>
          <AdrLine>94111 San Francisco</AdrLine>
        </PstlAdr>
        <Id>
          <OrgId>
            <Othr>
              <Id>7812871377</Id>
            </Othr>
          </OrgId>
        </Id>
      </Cdtr>
      <CdtrAcct>
        <Id>
          <Othr>
            <Id>2152485385</Id>
          </Othr>
        </Id>
        <Ccy>USD</Ccy>
      </CdtrAcct>
      <CdtrAgt>
        <FinInstnId>
          <ClrSysMmbId>
            <MmbId>021214891</MmbId>
          </ClrSysMmbId>
          <PstlAdr>
            <Ctry>US</Ctry>
          </PstlAdr>
        </FinInstnId>
      </CdtrAgt>
      <DrctDbtTxInf>
        <PmtId>
          <EndToEndId>100DDEB000040</EndToEndId>
        </PmtId>
        <InstdAmt Ccy="USD">3.00</InstdAmt>
        <DbtrAgt>
          <FinInstnId>
            <ClrSysMmbId>
              <MmbId>123345678</MmbId>
            </ClrSysMmbId>
            <Nm>DUMMY</Nm>
            <PstlAdr>
              <Ctry>US</Ctry>
            </PstlAdr>
          </FinInstnId>
        </DbtrAgt>
        <Dbtr>
          <Nm>DUMMY</Nm>
          <PstlAdr>
            <Ctry>US</Ctry>
          </PstlAdr>
        </Dbtr>
        <DbtrAcct>
          <Id>
            <Othr>
              <Id>61651561516</Id>
            </Othr>
          </Id>
        </DbtrAcct>
        <RmtInf>
          <Ustrd>Testing</Ustrd>
        </RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId>
          <EndToEndId>100DDEB000042</EndToEndId>
        </PmtId>
        <InstdAmt Ccy="USD">2.00</InstdAmt>
        <DbtrAgt>
          <FinInstnId>
            <ClrSysMmbId>
              <MmbId>123345678</MmbId>
            </ClrSysMmbId>
            <Nm>DUMMY</Nm>
            <PstlAdr>
              <Ctry>US</Ctry>
            </PstlAdr>
          </FinInstnId>
        </DbtrAgt>
        <Dbtr>
          <Nm>DUMMY</Nm>
          <PstlAdr>
            <Ctry>US</Ctry>
          </PstlAdr>
        </Dbtr>
        <DbtrAcct>
          <Id>
            <Othr>
              <Id>61651561516</Id>
            </Othr>
          </Id>
        </DbtrAcct>
        <RmtInf>
          <Ustrd>Testing</Ustrd>
        </RmtInf>
      </DrctDbtTxInf>
      <DrctDbtTxInf>
        <PmtId>
          <EndToEndId>100DDEB000041</EndToEndId>
        </PmtId>
        <InstdAmt Ccy="USD">1.00</InstdAmt>
        <DbtrAgt>
          <FinInstnId>
            <ClrSysMmbId>
              <MmbId>123345678</MmbId>
            </ClrSysMmbId>
            <Nm>DUMMY</Nm>
            <PstlAdr>
              <Ctry>US</Ctry>
            </PstlAdr>
          </FinInstnId>
        </DbtrAgt>
        <Dbtr>
          <Nm>DUMMY</Nm>
          <PstlAdr>
            <Ctry>US</Ctry>
          </PstlAdr>
        </Dbtr>
        <DbtrAcct>
          <Id>
            <Othr>
              <Id>61651561516</Id>
            </Othr>
          </Id>
        </DbtrAcct>
        <RmtInf>
          <Ustrd>Testing</Ustrd>
        </RmtInf>
      </DrctDbtTxInf>
    </PmtInf>
  </CstmrDrctDbtInitn>
</Document>

Updated 5 months ago

Direct Debit XML Input Example


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.