IT3(s) tax-free investment data for SARS
Finance and banking South Africa
Checks a South African financial institution’s IT3(s) tax-free investment account data against SARS’s requirements before it’s submitted: every field of the three record types, that accounts and transactions link up, and that each account has the transaction records SARS requires.
From SARS’s business requirements specification for IT3 data submission, version 4.0.0D-10
- 53validation rules
- 14pipeline stages
- 60fields checked
- 3 minto build and check
See it in Quantemplate
The pipeline

The checks

The checked financial data

What it checks
53 rules 50 Fail 3 Warning
- Account holdersRecord and FICA status, names, ID types and numbers with the South African ID check, tax numbers, dates of birth, tax residence, natures of person, addresses, contact details, lengths and characters 23 Fail, 1 Warning 24
- Financial dataAccount numbers and types, balances, account dates within one tax year, the net return or its parts with their source codes, market value, and that each account has the transaction records SARS requires, plus checks that the net return matches its parts and that the closing balance adds up, to within 2% 18 Fail, 2 Warning 20
- TransactionsThat each transaction belongs to an account, with a valid date, type, matching source code and value 8 Fail 8
- 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 it3s-validations.txt in the download.
How the pipeline works
- Stages 1–3 Prepare Clean each of the three files, put codes in upper case and add the columns the checks need, such as ID and tax number check digits, tax years and transaction types
- Stages 4–6 Counts Stack the three files, then count each holder’s records, and each account’s records and the number and value of its transactions of each type
- Stages 7–8 Account holders Add the counts to each holder, then run the 24 holder rules
- Stages 9–11 Financial data Join each account to its holder and its transaction counts and totals, then run the 20 financial data rules
- Stages 12–13 Transactions Join each transaction to its account, then run the 8 transaction rules
- Stage 14 Unique numbers Count the records with each unique number and check it appears once in its file
What’s in the download
- The 53 rules in plain English, and the definition of every stage and rule
- SARS’s codes for natures of person, account types, countries, ID types, source codes and transaction types, from the specification’s appendices
- Account holders, financial data and transactions for a fictional investment manager, 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 IT3 data submission 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 IT3(s) tax-free investment data pipeline from the sars-it3s folder. Test it with the broken and clean files and compare the results with the expected ones.
- Claude creates the pipeline, uploads the three test files, builds the 14 stages and checks both sets of test files. This takes around 3 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 IT3(s) data
- Give each of the three record types its own file, with the same columns as the test files: account holders, financial data and transactions.
- Start each row with its Record Status and Unique Number. Give account holders and financial data the holder’s I3S Unique Number, and give each transaction its account’s Unique Number in Account Unique Number.
- Use the codes in SARS’s specification: natures of person from Appendix A, account types from Appendix E, countries from Appendix F, ID types from Appendix G, source codes from Appendix N and transaction types from Appendix O.
- Give amounts in rand with up to 2 decimal places. Balances and market values can be negative, but a net loss or a capital loss is a positive amount under source code 4240 or 4244.
- Give every account a contribution, transfer in, transfer out and withdrawal record, with R0.00 for a type with none. When Transaction Value Total Indicator is Y, give one record per type with the year’s total.
- The account holder warning is for a field SARS accepts a file without but reports on. The two financial data warnings are Quantemplate’s own checks: that the net return matches its parts, and that the closing balance follows from the opening balance, the transactions and the return. None of them blocks 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, SA ID Check and Return Check.
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 4.0.0D-10 of SARS’s specification. Review them against your own reading, and check for later versions.
- It checks IT3(s) records only. IT3(b) and IT3(c) have their own templates, and IT3(d) and IT3(e) aren’t covered.
- The submission’s header, submitting entity and trailer aren’t checked, including the trailer’s sum of the amounts, and nor are dates against today.
- Annual and lifetime tax-free savings limits aren’t checked, because they depend on the holder’s accounts at other institutions.
- The closing balance check allows a gap of up to 2% of the larger balance, for fees IT3(s) doesn’t report, so a smaller error isn’t flagged. It only runs when the account’s return is given.
- Free text is checked for Latin-1 characters with no pipe, not against the specification’s narrower list for each field.
- Amounts are checked as numbers with 2 decimal places at most. The tool that writes the submission file must write exactly two, with no leading zeros.
- Codes compare as numbers, so 001 and 1 are the same ID type. The tool that writes the submission file must pad them.
- It doesn’t write the submission file or send it to SARS.
- The investment manager 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.