Here are the docs for the pain 008.001.02 format, write me a conversion library for js…
- User
Here are the docs for the pain 008.001.02 format, write me a conversion library for js that can take an csv as input and send back an xml with the correct iso 20022 format
Input XML File for PAIN.008.001.02 This page contains a description of the input XML file for the PAIN.008.001.02 specification, which is used for ACH Direct Debit (ACH Pull) CCD and PPD payments.
codeThe following is a high-level example of a PAIN.008.001.02 input XML file: XML <?xml version="1.0" encoding="UTF-8" ?>codeGroup Header (GrpHdr)Your XML Input file must include a group header using the GrpHdr building block. This building block is only present once in a file and contains a set of characteristics shared by all the individual instructions included in the message.
codeXMLMsgId: An ID number for the message, which you assign before sending the file to CRB. Best practice: Use a new for each file.** CreDtTm: The date and time the payment instruction was created. NbOfTxs: The total number of transaction instruction blocks in the message. Each instruction corresponds to one transaction, and will form a separate instruction block. For more information on the transaction instruction blocks, see the Direct Debit Transaction Information section below. CtrlSum: The total amount (as a number) of all the instructions included in the file, irrespective of currencies, used as a control sum. Note: Unicorn currently supports USD only. InitgPty: Indicates the party initiating the transfer. This is the party initiating the credit transfer on behalf of the debtor. See the Initiating Party section that follows for more details on the tags inside the InitgPty block. Note: All the above elements in the GrpHdr block are required.
codeInitiating Party (InitgPty)The Initiating Party is the party initiating the payment. This is the party that initiates the credit transfer on behalf of the debtor.
codeXMLNm: Name by which the originating party is known and which is usually used to identify that party. Id: Identifier. The parent element of the OrgId element containing the identifying information about the initiating party. OrgId: Organization Identification block containing the initiating party's identification in its child elements. Othr: A block containing the initiating party's identification in a child element. Id: The unique and unambiguous identifier the initiating party, which can be an organization or an individual person. Note: All the above elements in the InitgPty block are required.
code - Assistant