Architecture & ERP• 7 min read• Published Sep 2026
SAC vs HSN Codes: Routing Classification Lookups
How to route goods and services code lookups to the correct endpoint without inferring a tax rate.
Fundamental Differences Between HSN and SAC
Enterprise billing and ERP applications in India must handle two distinct tax classification systems under GST:
• HSN (Goods): Chapters 01 to 98 covering 16,825 tangible goods. Variable length (2, 4, 6, 8 digits).
• SAC (Services): Chapter 99 exclusively covering 568 service classifications. Fixed 6 digits starting with '99'.
Common Tech & SaaS SAC Codes
• 998313: Information technology consulting and support services
• 998314: Internet telecommunication and hosting infrastructure services
• 998315: Web design and hosting services
• 998319: Other IT services not elsewhere classified
• 998431: On-line text and software retrieval services
Unified Dual Router Implementation
async function lookupClassification(query) {
const isService = query.startsWith('99') && /^\d{6}$/.test(query);
const endpoint = isService
? `/v1/sac/${query}`
: `/v1/hsn/${query}`;
const res = await fetch(endpoint);
return res.json();
}Indexed SEO Keywords:
#sac code search api#services accounting code gst lookup#difference between hsn and sac code api#chapter 99 gst services