Singapore IR21
Tax clearance · Form IR21 · Foreign employees · SPR · IRAS API · CorpPass · myTax
Overview
Captivea Singapore IR21 prepares
tax clearance for foreign and Singapore Permanent Resident
employees from Odoo HR. When an employee ceases employment, goes on an
overseas posting, or leaves Singapore for more than three months, the
employer must file Form IR21 at least one month before the last day and
withhold monies until IRAS issues a Clearance Directive.
This app validates FIN/NRIC, maps IRAS Form IR21, and can
file directly to IRAS through the official
Form IR21 Submission API (CorpPass, scope IITFormIR21Sub).
Validate-only does not need a CorpPass token; submit redirects the
authorised officer to CorpPass and stores the IRAS submission reference.
PDF, XML and text export remains available for myTax e-File as a fallback.
How It Works
01
Install module cap_sg_ir21 from the Apps menu
(depends on Employees and Discuss). Open
Settings → Employees or Company → Singapore IR21
and set employer UEN, IR21 contact, notice days (default 30),
and IRAS Client ID / Client Secret from the API Marketplace.
Register the HTTPS callback
/sg_ir21/corppass/callback with IRAS
(go.gov.sg/apicallback).
02
On the employee, set residency (SPR or foreigner), work pass type, FIN/NRIC (checksum validated), date of arrival, and expected cessation / departure. Singapore Citizens are skipped — IR21 does not apply.
03
Use Prepare IR21 (employee or Singapore IR21 menu). Enter income for the year of cessation and the preceding year. Optional: seed salary from payslips if Payroll is installed. Validate with IRAS (no CorpPass token), then Submit to IRAS (CorpPass login). Fallback: Fill official Form IR21, Print summary, or Export PDF + XML + TXT and e-File on myTax.
04
Store the IRAS submission reference on the document. After IRAS issues a Clearance Directive, record the directive reference. Withhold monies until then. A daily reminder flags cessations inside the notice window with no IR21.
Key Features
- Direct file to IRAS Form IR21 Submission API (CorpPass, scope IITFormIR21Sub)
- Validate-only without a CorpPass token; submit with Singpass / CorpPass consent
- Stores IRAS submission reference and request/response JSON
- IR21 wizard from one or many employees
- FIN/NRIC checksum (S, T, F, G, M series)
- IRAS Form IR21 income, withholding, short-notice reason, tax borne by employer
- Fill official IRAS Form IR21 PDF for paper filing (review before post)
- Export PDF, XML and text as a zip pack for myTax fallback
- Multi-company record rules; IRAS Client Secret restricted to HR managers
- One-month filing deadline and overdue ribbon
- Daily cron reminder when a foreign/SPR employee is leaving
- Optional payslip seeding when Payroll is installed (not required), with company payslip-code mapping
- Full Form IR21 coverage: spouse/children, last salary, bonus split, deductions, Appendix 1 housing/BIK, Appendix 2/3 ESOP/ESOW
- Kanban, graph and pivot dashboard for IR21 documents
Need Help?
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Employees (hr) |
| Lines of code | 4384 |
| Technical Name |
cap_sg_ir21 |
| License | OPL-1 |
| Website | https://www.captivea.com/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module