Main data file
This page outlines the specifications for the primary data file to be sent to SurePay via SFTP. Follow these guidelines to ensure your file is correctly formatted and processed efficiently.
File Purpose
To transmit account data securely. The file ensures that the account data shared with SurePay is accurate, consistent, and complete. By following the specified format and structure, organizations can minimize errors and discrepancies in the data transmission process.
The dummy file below contains an example of how the file should be structure:
Fields and formatting
Within the following fields, you will encounter shared attributes applicable to both Natural Persons and Organisations. However, each of these entities also possesses distinct attributes, which can be located within the "Persons" and "Organisations" objects respectively. It's important to mention that a file can contain multiple records from both Natural persons and Organisations.
account
objectMandatoryaccountHolder
ObjectMandatoryperson
Objectorganisation
Object
XML Line (Record)
<account iban="NL88SRPY9056000789" startDate="2022-10-30" ascription="JOHN MARK PETERSON" status="active" bankAccountType="PAYMENTS"><accountHolder><person fullGivenName="JOHN MARK" initials="J.M." correspondence="J.M. MIREY" birthName="MIREY"/></accountHolder></account>
XML Line (Record)
<account iban="NL57SRPYB0906840880" startDate="1997-05-08" ascription="VOORN MATHIAS RODRIGUEZ en M.A. SMITH-RODRIGUEZ" status="active" bankAccountType="MORTGAGE"><accountHolder><person fullGivenName="VOORN MATHIAS" initials="V.M." surnameCombined="VOORN" correspondence="V.M. RODRIGUEZ" birthName="RODRIGUEZ"/><person fullGivenName="MARIE ALEXANDRA" initials="M.A." surnameCombined="SMITH-RODRIGUEZ" correspondence="M.A. SMITH" birthName="SMITH"/></accountHolder></account>
XML Line (Record)
<account iban="NL91SRPY9000000555" startDate="2018-05-12" ascription="AlCAMO BIKE SERVICES" status="active" bankAccountType="SAVINGS"><accountHolder><organisation legalName="AlCAMO BIKE SERVICES" kvkNumber="59581853" kvkBranchNumber="000015063097" residentialPostalCode="1012DH" residentialCountry="NL" legalStructure="LTD" commercialNameShort="ALCAMO BIKES"/></accountHolder></account>
Common Errors and Troubleshooting
To ensure a smooth onboarding process, we've compiled a list of common errors you might encounter when working with the XML file and their respective solutions. If you experience any issues, please refer to the information below.
1. File Naming Error
- Issue: Incorrect file naming convention.
- Solution: Ensure the file is named accounts_bank.pgp, replacing
bank
with the respective bank name.
2. File Format Error
- Issue: Incorrect end-of-line characters.
- Solution: Use Unix end-of-line characters for each record.
XML Line (Record)
<account iban="NL88SRPY9056000789" startDate="2022-10-30" ascription="JOHN MARK PETERSON" status="active" bankAccountType="PAYMENTS"><accountHolder><person fullGivenName="JOHN MARK" initials="J.M." correspondence="J.M. MIREY" birthName="MIREY"/></accountHolder></account>
<account iban="NL57SRPYB0906840880" startDate="1997-05-08" ascription="VOORN MATHIAS RODRIGUEZ en M.A. SMITH-RODRIGUEZ" status="active" bankAccountType="MORTGAGE"><accountHolder><person fullGivenName="VOORN MATHIAS" initials="V.M." surnameCombined="VOORN" correspondence="V.M. RODRIGUEZ" birthName="RODRIGUEZ"/><person fullGivenName="MARIE ALEXANDRA" initials="M.A." surnameCombined="SMITH-RODRIGUEZ" correspondence="M.A. SMITH" birthName="SMITH"/></accountHolder></account>
<account iban="NL91SRPY9000000555" startDate="2018-05-12" ascription="AlCAMO BIKE SERVICES" status="active" bankAccountType="SAVINGS"><accountHolder><organisation legalName="AlCAMO BIKE SERVICES" kvkNumber="59581853" kvkBranchNumber="000015063097" residentialPostalCode="1012DH" residentialCountry="NL" legalStructure="LTD" commercialNameShort="ALCAMO BIKES"/></accountHolder></account>
3. IBAN Format Error
- Issue: Incorrect IBAN format.
- Solution: Ensure the IBAN is Mod97 compliant and follows the format:
[A-Z]{2}[0-9]{2}[a-zA-Z0-9]{30}
[18-34] characters- Example: NL88SRPY9056000789.
4. Date Format Error
- Issue: Incorrect date format for 'startDate'.
- Solution: Use the format 'YYYY-MM-DD'.
- Example: '2003-03-12'.
5. Mandatory Field Error
- Issue: Missing mandatory fields.
- Solution: Ensure all mandatory fields like 'iban', 'status', 'startDate', 'ascription', and 'bankAccountType' are filled correctly.
- For the
'persons'
object: Ensure the mandatory fields like 'birthName' is filled correctly. - For the
'organisations'
object: Ensure the mandatory fields like 'kvkNumber', 'legalName' and 'residentialPostalCode' are filled correctly.
- For the
6. Account Status Error
- Issue: Invalid account status.
- Solution: Use either 'ACTIVE' or 'INACTIVE' for the status field.
7. Character Limit Error
- Issue: Exceeding character limits.
- Solution: Adhere to the specified character limits for each field.
- Example: ascription should be 2-70 characters.
8. Invalid Enum Value Error
- Issue: Invalid enumeration value added to an enum field.
- Solution: Adhere to the specified values for each field enumeration field.
- Example: For the field 'bankAccountType', the expected values are PAYMENTS, SAVINGS, MORTGAGE, TRUST, COLLECTION, INVESTMENT, OTHER, UNKNOWN.