Templates / Get Malaysia tax ID number (TIN) for multiple business reg num (SSM) or NRIC

Get Malaysia tax ID number (TIN) for multiple business reg num (SSM) or NRIC

Ready for 3.0

by Alex Halfborg · 339 views · created 2025-06-08 · Document Extraction

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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”.

  1. Setup LHDN Connection (Edit Fields (Set)): sets or maps fields
  2. Setup GSheet Connection (Edit Fields (Set)): sets or maps fields
  3. Get new LHDN API Token (HTTP Request): calls an HTTP API
  4. Remember token expiry (Edit Fields (Set)): sets or maps fields
  5. Get all Google Sheet records to process (Google Sheets): uses Google Sheets
  6. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  7. Wait: pauses before continuing
  8. Compare token expiry vs now (Code): runs custom JavaScript code
  9. If: checks a condition and branches into true / false
  10. Search Taxpayer TIN (HTTP Request): calls an HTTP API

…plus 5 more steps. See the full node list below.

Services it uses

Google Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

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…

Excerpt from Alex Halfborg's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.