The Harmonised System of Nomenclature (HSN) is an internationally standardised system for classifying goods. Under GST, each product is mapped to an HSN code, which determines its tax rate. The number of HSN digits a business must show on invoices depends on its turnover, as notified.
Using the correct HSN code matters because it drives the GST rate applied; the equivalent classification for services is the SAC code.