CRS and FATCA account data for SARS
Finance and banking South Africa
Checks a South African financial institution’s CRS and FATCA account data against SARS’s requirements before it’s submitted: every field of the five record types, and that account holders, their jurisdictions, accounts and controlling persons link up.
From SARS’s business requirements specification for the automatic exchange of information (FATCA and CRS), version 3.0.0-17, which applies from 1 March 2026
- 87validation rules
- 24pipeline stages
- 100fields checked
- 4 minto build and check
See it in Quantemplate
The pipeline

The checks

The checked accounts

What it checks
87 rules 81 Fail 6 Warning
- Account holdersNature of person, names, dates and countries of birth, addresses, equity interest types, self-certification, lengths and characters, and that each holder has a jurisdiction and an account 23 Fail, 3 Warning 26
- Holder jurisdictionsCountries, documented status, compliance indicators, TINs, FATCA and CRS account holder types, and controlling persons for passive entities 14 Fail 14
- AccountsAccount numbers and types, the due diligence procedure for the open date, joint accounts, dates, payments, balances and currencies 14 Fail 14
- Controlling personsThe account holder rules for each person, their types and self-certification, and that they’re individuals or partnerships where the holder has an account opened from 1 March 2016 23 Fail, 3 Warning 26
- Person jurisdictionsCountries, ID number indicators and TINs 6 Fail 6
- Unique numbersEach unique number appears once in its file 1 Fail 1
A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule is listed in plain English in crs-validations.txt in the download.
How the pipeline works
- Stages 1–5 Prepare Clean each of the five files, put codes in upper case and add the columns the checks need
- Stages 6–10 Counts Count each holder’s jurisdictions, accounts and controlling persons, and each person’s jurisdictions
- Stages 11–14 Account holders Add the counts and whether a jurisdiction is the US to each holder, then run the 26 holder rules
- Stages 15–22 Linked records Join jurisdictions, accounts and controlling persons to their holders, and person jurisdictions to their persons, then check each
- Stages 23–24 Unique numbers Stack the five files and check each unique number appears once
What’s in the download
- The 87 rules in plain English, and the definition of every stage and rule
- SARS’s country and currency codes, from the specification’s appendices
- Account holders, holder jurisdictions, accounts, controlling persons and person jurisdictions for a fictional financial institution, clean and with records built to fail each rule
- The rules each broken record should fail
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
The specification isn’t included. Download it from SARS’s FATCA and CRS page.
Build it
- Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
- With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the SARS CRS and FATCA account data pipeline from the sars-crs-fatca folder. Test it with the broken and clean files and compare the results with the expected ones.
- Claude creates the pipeline, uploads the five test files, builds the 24 stages and checks both sets of test files. This takes around 4 minutes.
The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.
Using your own account data
- Give each of the five record types its own file, with the same columns as the test files: account holders, holder jurisdictions, accounts, controlling persons and person jurisdictions.
- Start each row with its Unique Number. Jurisdictions, accounts and controlling persons name their account holder in AHDD Unique Number, and person jurisdictions name their controlling person in CPDD Unique Number.
- Use the codes in SARS’s specification: natures of person from Appendix A, countries from Appendix C, currencies from Appendix M, and the CRS, FATCA and OECD codes it gives for each field. Separate several equity interest or controlling person types with ‘/’.
- Write dates as CCYY-MM-DD, and leave currencies blank for rand.
- The 6 warnings are for fields SARS accepts a file without but reports on, so they don’t block Auto Export.
- The checked records are ready for a tool that writes SARS’s pipe-separated submission file. Leave out the columns the checks add, such as Text Fields, TIN Check and Currency Codes.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- The rules are written from version 3.0.0-17 of SARS’s specification. Review them against your own reading, and check for later versions.
- It checks the account records. The submission’s header, submitting entity, reporting financial institution and trailer aren’t checked, and nor are dates against the reporting period.
- The check on the due diligence procedure follows the specification’s logic validation, which splits new and pre-existing accounts at 1 July 2014. Its description of the field gives 1 March 2016 for CRS, so check which applies to your accounts.
- Only pre-existing individual accounts can be undocumented, but account dates aren’t checked for this.
- SARS’s currency table is an older ISO 4217 list, with BYR rather than BYN and ZWL rather than ZWG.
- Amounts are checked as numbers with 2 decimal places at most. The tool that writes the submission file must write exactly two.
- It doesn’t write the submission file or send it to SARS.
- The financial institution and its customers are made up.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.