Get Malaysia tax ID number (TIN) for multiple business reg num (SSM) or NRIC
Ready for 3.0What this workflow does
This workflow has 16 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Setup LHDN Connection (Edit Fields (Set)): sets or maps fields
- Setup GSheet Connection (Edit Fields (Set)): sets or maps fields
- Get new LHDN API Token (HTTP Request): calls an HTTP API
- Remember token expiry (Edit Fields (Set)): sets or maps fields
- Get all Google Sheet records to process (Google Sheets): uses Google Sheets
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Wait: pauses before continuing
- Compare token expiry vs now (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Search Taxpayer TIN (HTTP Request): calls an HTTP API
…plus 5 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets
From the author
BACKGROUND Malaysia's Inland Revenue (LHDN) provides an API to get the tax id number for a business entity, based on a given Business Registration number (BRN or SSM), or NRIC (MyKad). PROBLEM However, the API only allows one search at a time. SOLUTION This…