IT3(b) investment income data for SARS
Finance and banking South Africa
Checks a South African financial institution’s IT3(b) investment income data against SARS’s requirements before it’s submitted: every field of the four record types, and that account holders, partners, financial data and withholding tax on interest link up.
From SARS’s business requirements specification for IT3 data submission, version 4.0.0D-10
- 80validation rules
- 15pipeline stages
- 108fields checked
- 4 minto build and check
See it in Quantemplate
The pipeline

The checks

The checked financial data

What it checks
80 rules 76 Fail 4 Warning
- Account holdersRecord and FICA status, names, ID numbers with the South African ID and company registration checks, tax numbers, dates of birth, addresses, contact details, lengths and characters, and that each partnership has a partner 25 Fail, 2 Warning 27
- PartnersThe account holder rules for each partner, and that each belongs to an account holder 20 Fail, 2 Warning 22
- Financial dataSource codes, account numbers and types, monthly credits and debits for the months the account was open, income, balances, dates in one tax year and foreign tax paid 18 Fail 18
- Withholding tax on interestSource code, account numbers and types, gross interest, tax withheld, exemptions and rates 12 Fail 12
- 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 it3b-validations.txt in the download.
How the pipeline works
- Stages 1–4 Prepare Clean each of the four files, put codes in upper case and add the columns the checks need, such as ID and tax number check digits
- Stages 5–6 Counts Stack the four files and count each account holder’s records, partners and FICA status
- Stages 7–8 Account holders Add the counts to each holder, then run the 27 holder rules
- Stages 9–14 Linked records Join partners, financial data and withholding tax records to their holders, then check each
- Stage 15 Unique numbers Count the records with each unique number and check it appears once in its file
What’s in the download
- The 80 rules in plain English, and the definition of every stage and rule
- SARS’s codes for natures of person, income sources, account types, countries, ID types and withholding tax exemptions, from the specification’s appendices
- Account holders, partners, financial data and withholding tax records for a fictional bank, 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(b) investment income data pipeline from the sars-it3b folder. Test it with the broken and clean files and compare the results with the expected ones.
- Claude creates the pipeline, uploads the four test files, builds the 15 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 IT3(b) data
- Give each of the four record types its own file, with the same columns as the test files: account holders, partners, financial data and withholding tax on interest.
- Start each row with its Record Status and Unique Number, and give every record its account holder’s I3B Unique Number.
- Use the codes in SARS’s specification: natures of person from Appendix A, source codes from Appendix B, account types from Appendix E, countries from Appendix F, ID types from Appendix G and withholding tax exemptions from Appendix P.
- Write dates as CCYY-MM-DD and amounts in rand. Give each month’s credits and debits for the months the account was open in the tax year.
- Give an account with more than one kind of income a financial record for each source code.
- The 4 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, SA ID Check and Tax Number 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(b) records only. IT3(c) and IT3(s) have their own templates, and IT3(d) and IT3(e) aren’t covered.
- The submission’s header, submitting entity and trailer aren’t checked, and nor are dates against the submission’s tax year or against today.
- 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.
- Codes compare as numbers, so 001 and 1 are the same ID type. The tool that writes the submission file must pad them.
- Company registration numbers are accepted with any year from 1800, so a future year isn’t caught.
- Monthly credits and debits are required for the months an account was open, but aren’t refused outside them.
- It doesn’t write the submission file or send it to SARS.
- The bank 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.