Sections10
Reading time10 min
EvidenceDocument workflow

Answer in 30 seconds

Extract HSN and SAC codes with AI in Dynamite Docs. Review printed codes beside item descriptions, taxable values, and rates on Indian GST invoices.

Dynamite Docs logoDynamite Docs
The handoff
GOODS + SERVICES: A code stays with its itemUpload invoice batch. Review highlighted codes. Export for your books. Illustrative example, not extracted customer data.FROM SOURCE FILE TO A RESULT YOU CAN USEGOODS +SERVICESReview workspaceA codestays withits item1Upload invoicebatch2Reviewhighlighted codes3Export for yourbooks
  1. 01Upload invoice batch
  2. 02Review highlighted codes
  3. 03Export for your books
Match code to description Illustrative example.

Printed HSN and SAC codes by line item

  • Businesses with turnover above ₹5 Crore must report 6-digit HSN codes, while businesses up to ₹5 Crore report 4-digit codes. Missing digits can lead to return filing discrepancies.
  • Invoices often place the tariff code directly inside the description text (for example, "A4 Copier Paper 80GSM HSN:4820"), making manual copying slow.
  • Mixed invoices combining goods with freight or transport services require distinguishing goods tariff headings from Chapter 99 service codes.
  • Reviewing product codes line by line takes hours when processing dozens of multi-item invoices every month.

How classification codes are captured and structured

01

Upload invoice batch

Add PDF invoices, scanned bills or phone photos. Digital files may expose embedded text, while images need visual extraction. Include all pages when the code summary appears at the end.

02

Line-by-line classification

Visible 4, 6 or 8-digit HSN values and printed SAC values are proposed per line, with code text kept separate from the item description.

03

Review highlighted codes

Confidence scores flag any unusual code lengths or unclear digits so you can verify numbers quickly.

04

Export for your books

Export classified line items into Excel, CSV, JSON, or Google Sheets with dedicated HSN/SAC, quantity, and tax rate columns.

Document types this workflow handles

Goods tax invoices4, 6, and 8-digit HSN codes per line
Service invoices6-digit Chapter 99 SAC codes
Mixed supply invoicescombined goods and transport lines
Credit & debit notestariff adjustments against original invoices

What gets extracted per line

Dynamite Docs logoDynamite Docs
Inside the output
GOODS + SERVICES: A code stays with its itemHSN / SAC code: 4820 20 00 / 9965 11. Classification type: Goods (HSN) / Service (SAC). Clean item description: A4 Copier Paper (80 GSM). Illustrative example, not extracted customer data.Extracted fieldsDOCUMENT SCHEMAhsn_sac_code4820 20 00 / 9965 11classification_typeGoods (HSN) / Service (SAC)clean_item_descriptionA4 Copier Paper (80 GSM)A code stays with its itemDESTINATION FIELDSHSN / SAC codeMap to your destination schemaClassification typeMap to your destination schemaClean item descriptionMap to your destination schemaIllustrative mapping. Confirm the field names accepted by your destination.
HSN / SAC code
4820 20 00 / 9965 11
Classification type
Goods (HSN) / Service (SAC)
Clean item description
A4 Copier Paper (80 GSM)
Match code to description Illustrative example.

Every line item receives complete classification context, confidence-scored and normalized for accounting entries:

HSN / SAC code4820 20 00 / 9965 11
Classification typeGoods (HSN) / Service (SAC)
Code length4-digit / 6-digit / 8-digit
Clean item descriptionA4 Copier Paper (80 GSM)
Quantity & UQC40 reams (BOX/NOS/KGS)
Unit price & line discount₹600.00 (₹0.00 discount)
Line taxable value₹24,000.00
Applicable GST rate12% (6% CGST + 6% SGST)

Understanding HSN and SAC codes in GST invoices

Dynamite Docs logoDynamite Docs
The review
GOODS + SERVICES: A code stays with its itemKeep leading zeros. Match code to description. Review classification separately. Illustrative example, not extracted customer data.SOURCE DOCUMENTGOODS + SERVICESHSN / SAC code4820 20 00 / 9965 11Classification typeGoods (HSN) / Service…Clean item descriptionA4 Copier Paper (80 GSM)Review before exportHSN / SAC code4820 20 00 / 9965 11Compare with the source on the leftAccept after reviewMatch code to descriptionOriginal stays…
HSN / SAC code
4820 20 00 / 9965 11
Classification type
Goods (HSN) / Service (SAC)
Clean item description
A4 Copier Paper (80 GSM)
Match code to description Illustrative example.

HSN codes are used for goods and SAC codes for services. Extraction solves a document problem: finding the printed code and associating it with the correct line or summary value. Classification is a separate tax decision. A clearly read code can still be wrong on the supplier document, outdated for the transaction, or inappropriate for the buyer's treatment.

When a supplier embeds a value inside a description, such as "Industrial Valve [HSN-84818030] 25mm," the output can keep the printed code in its own column while preserving the full source description. Avoid deleting the original text during cleanup. It gives the reviewer context when a number could be a model number, SKU, internal item code or tax classification.

Multi-page invoices need an additional tie-out. Confirm that every extracted code is linked to the correct line and that all line taxable values reconcile to the invoice subtotal or HSN summary. Repeated table headers should not become false items. Freight, discounts and other charges may appear outside the main table, so review whether the source assigns them a separate SAC, HSN or tax treatment.

For recurring suppliers, maintain an approved item-to-classification mapping outside the raw extraction. Compare the printed value with that mapping and report differences as exceptions. Do not silently overwrite the source field. A useful review table has separate columns for printed code, approved code, variance reason, reviewer and review date.

Accurate line-item extraction with full model choice

Every signed-in tier can connect a supported provider key, and local Ollama is available on the applicable paid plan. Choose the processing route that fits the document quality and your data policy.

Digital PDFs may expose embedded text, while paper scans and mobile photos need visual extraction. Dense tables and small classification codes still require source review.

Reviewed classification rows can be exported to Excel, CSV or JSON, or pushed to Google Sheets when connected. Free and Starter own-key pages use monthly PE; Pro and Scale own-key runs do not consume PE.

Questions, answered

Extraction guides

Related document workflows

From the blog

Build a reviewed HSN and SAC schedule

Upload a representative multi-line invoice, review each printed HSN or SAC in context, and export a classification schedule. Connect your own provider key on any signed-in plan; monthly PE rules still apply on Free and Starter.

Can we save optional cookies?

Essential cookies keep you signed in. With your permission, optional analytics cookies and masked session replays help us understand usage and diagnose errors. Privacy policy. Change your choice anytime in Cookie settings.