IT3(c) capital gains and losses data for SARS

Finance and banking South Africa

Checks a South African financial institution’s IT3(c) capital gains and losses data against SARS’s requirements before it’s submitted: every field of the three record types, and that account holders, partners and financial data link up.

From SARS’s business requirements specification for IT3 data submission, version 4.0.0D-10

IT3(c) capital gains and losses data for SARS
Rules, SARS’s code tables, test files and a pipeline snapshot. Zip, 56 KB.
Download the template

See it in Quantemplate

The pipeline

The SARS IT3(c) Capital Gains Data pipeline in Quantemplate: all 12 stages listed, from Prepare account holders to Check unique numbers, with the three test files uploaded to stages 1 to 3, one for each record type.

The checks

The run’s validation report for the Check financial data stage on the broken test files: financial data rules F01 to F11, each with rows failed, such as F05, Source Code is 4250 or 4252 when Gain or Loss is 0.00, with 3 rows failed, and F08, account types, with 6.

The checked financial data

Stage 11’s output on the clean test files, 14 financial records, each with its record status, unique number, holder’s I3C unique number, source code, asset description, account number, account type, Sharia indicator, joint account flag, units sold and base cost. A foreign tax credit record has source code 4114 with 0.000000 units sold, and an account with no number reads NO ACCOUNT NUMBER with account type 23.

What it checks

69 rules 62 Fail 7 Warning

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 it3c-validations.txt in the download.

How the pipeline works

  1. 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
  2. Stages 4–5 Counts Stack the three files and count each account holder’s records, partners and FICA status
  3. Stages 6–7 Account holders Add the counts to each holder, then run the 28 holder rules
  4. Stages 8–11 Linked records Join partners and financial data to their holders, then check each
  5. Stage 12 Unique numbers Count the records with each unique number and check it appears once in its file

What’s in the download

The specification isn’t included. Download it from SARS’s IT3 data submission page.

Build it

  1. Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the SARS IT3(c) capital gains data pipeline from the sars-it3c folder. Test it with the broken and clean files and compare the results with the expected ones.
  3. Claude creates the pipeline, uploads the three test files, builds the 12 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(c) data

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits