TFN Declaration Validation Rules
This document lists the fields that make up a tax file number declaration and the validation rules that apply to them, including the rules that hold between fields. Many of these rules come directly from the ATO's requirements for TFN declarations.
TFN or exemption, never both
Every declaration carries either a tax file number or a reason the employee is not quoting one:
tfnis provided alone when the employee has quoted their TFN.tfn_exemption_typeis provided alone when they have not.- Providing both, or neither, is invalid.
The TFN itself must be 9 digits and pass the ATO's checksum. Spaces and other non-digit characters are stripped before validation, so 049 333 118 is accepted. The all-zeros placeholder is rejected.
The exemption types are:
| Value | Meaning |
|---|---|
not_quoted | The employee does not want to quote their TFN to this employer |
pending | The employee has applied for a TFN and is waiting to receive it |
under_eighteen | The employee is under 18 and does not earn enough to pay tax |
pensioner | The employee receives a pension, benefit or allowance |
Rules for exempt declarations
An employee who has not quoted a TFN cannot make claims that require one:
tax_free_threshold_claimedmust befalse, with one exception. Anunder_eighteenexemption combined with a date of birth under 18 years may still claim the tax-free threshold.has_study_and_training_repaymentmust befalse. Study and training repayments can only be withheld against a quoted TFN.
has_financial_supplement_debt is not restricted by exemption status.
Residency rules
residency_type is one of australian_resident_for_tax_purposes, foreign_resident or working_holiday_maker.
country_of_originis required for foreign residents and working holiday makers, in ISO 3166-1 alpha-3 format (for examplenzl). It is not used for Australian residents.- Only
australian_resident_for_tax_purposesmay claim the tax-free threshold. Claiming it as a foreign resident or working holiday maker is invalid. The under-18 exception described above also applies here.
Personal details
title,given_name,family_nameanddate_of_birthare required.middle_nameis optional.- When
titleisother,title_othermust describe the title. - All name fields are limited to 40 characters by the ATO and are trimmed of surrounding whitespace.
- Previous names travel together. Supplying either
previous_given_nameorprevious_family_namerequires both, because a previous name on the TFN declaration form is a whole name rather than two independent fields. Omitting both records no previous name. date_of_birthis an ISO 8601 date. The employee must be at least 12 years old and no older than 120.
Address
address_line_1,locality,postcodeandstateare required.address_line_2is optional.- Address lines are limited to 50 characters by the ATO. Characters that cannot appear in an ATO address (such as
<,>,&, quotes and brackets) are rejected. localityaccepts letters, numbers and spaces only.postcodemust be a valid four digit Australian postcode.
Other tax details
pay_basisis required and is one offull_time,part_time,casual,labour_hireornon_employee.tax_free_threshold_claimed,has_study_and_training_repaymentandhas_financial_supplement_debtare required booleans, subject to the exemption and residency rules above.
Declarations
declaration_tfnd_acceptedanddeclaration_information_acceptedmust both betrue. These record the employee's acceptance and the declaration is invalid without them.declaration_stapling_acceptedmust be supplied. It records whether the employer has accepted the stapling declaration.
Getting help
Stuck with something and need help? Please contact us at support@superapi.com.au or by phone on 0405 472 748 (Sam). Have you setup a shared Slack or Teams channel with us? If not, please reach out so we can provide realtime support.