How do I add HSN codes to Shopify products?
Shopify suggests storing the HSN code in each product's HS tariff code field, in the Shipping section of the product page, and that field needs at least 6 digits. On a GST tax invoice, a seller with aggregate turnover up to ₹5 crore in the previous year shows a 4-digit HSN code (and may leave it off invoices to unregistered buyers); above ₹5 crore, 6 digits. Your invoices and the HSN summary in GSTR-1 then read the code from the product.
Your CA should confirm the HSN code and rate for each product; this guide covers where the codes go.
What is an HSN code and why does it matter?
It's the product classification code that decides the GST rate and has to be printed on tax invoices.
HSN (Harmonised System of Nomenclature) classifies goods; services use SAC (Services Accounting Code). Rule 46 of the CGST Rules lets the government set how many HSN digits a tax invoice must show, by class of seller (Rule 46 text via GSTZen). The code also drives the HSN summary table in GSTR-1, where you report totals per HSN and rate.
How many digits do I need on an invoice?
4 digits up to ₹5 crore aggregate turnover in the previous financial year; 6 digits above.
Notification 78/2020-Central Tax, dated 15 October 2020 and in force from 1 April 2021, sets the table:
| Aggregate turnover in the preceding financial year | HSN digits on the tax invoice |
|---|---|
| Up to ₹5 crore | 4 |
| More than ₹5 crore | 6 |
It adds that a registered person with turnover up to ₹5 crore "may not mention the number of digits of HSN Code" on tax invoices issued to unregistered persons, in other words B2C invoices. Many stores print the code anyway, because the GSTR-1 HSN summary needs it.
Where do I store HSN codes in Shopify?
In the product's HS tariff code field, or in a product metafield if you need fewer than 6 digits.
Shopify's GST in India FAQ says: "You can use the HS tariff code for products to store the HSN code." The field "is in the Shipping section of the product page" and "requires that codes have at least 6 digits." Because it sits with the shipping details, check it on each variant.
Two things to know:
- If you're under ₹5 crore and want 4 digits on the invoice, the 6-digit field holds more than you print. Your invoice template or app has to cut it or use another field.
- The HS tariff code is also used for international shipping customs. If you export, the customs code may have more digits than your GST invoice uses.
A metafield on the product (say custom.hsn) avoids both issues: any length, and shown wherever your invoice template reads it.
How do I add HSN codes to many products at once?
Use Shopify's bulk editor, starting with your best sellers.
Select products in the admin and open the bulk editor; you can add columns for the fields and metafields you want to fill and paste codes down a column. If you store codes in a metafield, this is the quickest way. Start with your best sellers: one wrong code repeats on every invoice.
Do I need SAC codes too?
Yes for services you charge for, such as shipping billed as its own line.
If your invoice shows shipping as a separate line, it needs a classification too. Courier services fall under SAC heading 9968; your CA will tell you which one and whether shipping should follow the goods' rate instead.
How do HSN codes get onto my invoices?
Through your invoice template or app, which reads the field you chose.
- Shopify's invoice template. Shopify lets you edit invoice templates with Liquid (Shopify Help Center). You can print the HS tariff code or a metafield next to each line.
- A GST invoice app. Most read either the HS tariff code or their own field.
Fizz GST Invoice adds an HSN/SAC code field to each product and has a default HSN code and GST rate in its Settings for products without one, plus a SAC for shipping. Each invoice line prints the code, and the GSTR-1 export builds the HSN summary from it (split into B2B and B2C). Issued invoices never change, so fixing a code later applies to new invoices only. Fizz GST Invoice is free to install while it launches; its templates haven't been reviewed by a chartered accountant yet.
How do I check my HSN codes are right?
Check every code against the tariff with your CA, then compare the GSTR-1 HSN summary with your sales.
- List your products with their codes (a product export works).
- Ask your CA to confirm each code and its GST rate. A wrong code often means a wrong rate.
- After a month, look at the HSN summary in GSTR-1: totals per code should look like your sales mix. A large total under your default code means products without their own.
Checklist
- Every product has an HSN code (services: SAC).
- 4 or 6 digits on the invoice, by your previous year's aggregate turnover.
- The rate in Shopify matches the code (how to set up GST rates in Shopify).
- The HSN summary in GSTR-1 is built from the same codes as your invoices.