What is HSN code used for?

HSN codes are used to classify the commodities into various sections, chapters, headings, and sub-headings for convenience.