Back to Blog

Automated GST Billing for Online Stores

Automated GST billing for online stores in India: how it works, the rules it must follow, 20 test cases, how to choose a tool and a 4-week rollout plan.

S
ShopMate Team · Dec 04, 2026 · 22 mins read
 Automated GST Billing for Online Stores

Automated GST billing means that your store creates a correct GST invoice for every order without anyone typing it: the system works out the place of supply, splits the tax into CGST and SGST or IGST, allocates discounts, assigns a unique invoice number, delivers the invoice to the customer, stores it, issues a credit note when an order is returned, and feeds the same data into the reports your accountant uses to file returns. Done well, it removes the most repetitive and error-prone task in running an Indian online store. Done badly, it produces wrong invoices faster than a person ever could.

This guide explains how automated GST billing works under the hood, in plain language, so you can judge it properly. It covers the data the system needs, the calculation steps with a worked example that includes a coupon and a rounding problem, how invoice numbers should be generated, how business buyers' GSTINs should be captured, how credit notes and e-invoicing fit in, how to test a platform with twenty realistic cases, how to compare building, plugging in and buying a platform, what a realistic time saving looks like, and how to roll automation out safely. It uses the CGST Rules as the legal reference and is clear that automation does not replace the judgement of your accountant.

Quick answer: Automated GST billing is only as good as the data and rules behind it. Before you trust it, check that every product has the right HSN code and GST rate, that the tax split follows the delivery state, that discounts reduce the taxable value line by line, that invoice numbers are unique, consecutive and at most sixteen characters, that credit notes are generated for returns, and that you can export invoice-wise and HSN-wise reports. Test with real cases, and have your accountant review the output before you go live.

What "automated" should mean

Many tools call themselves automatic because they fill in a template. A properly automated billing process covers the whole life of a sale. Think of it as a pipeline with ten steps:

  1. Capture. The order arrives with items, prices, discounts, the delivery address and, for business buyers, a GSTIN.
  2. Classify. Each item is matched to its stored HSN code and GST rate.
  3. Determine place of supply. The system compares your registered state with the delivery state.
  4. Calculate. Taxable value and tax are computed per line, after discounts, and split by tax type.
  5. Number. A unique invoice number is drawn from the correct series.
  6. Generate. The invoice document is produced with every legally required particular.
  7. Deliver and store. The customer receives it, and a permanent copy is kept and retrievable.
  8. Adjust. Returns, cancellations and post-sale discounts produce credit notes linked to the original invoice.
  9. Report. Invoice-wise and HSN-wise data is available for your accountant and, where relevant, for e-invoicing.
  10. Audit. Every document and change is logged, so any figure can be traced.

If a tool covers only step six, it is a template, not automation. Ask which of the ten steps a platform handles and which it leaves to you.

Why manual billing breaks as you grow

Manual invoicing, whether in a spreadsheet or a billing tool, works while orders are few. As volume rises, three things happen together: the time per invoice multiplies, the number of special cases grows, and the people doing the work become the bottleneck for dispatch. The errors that follow are predictable.

ErrorTypical cause in manual billingEffect
Wrong tax split (CGST and SGST used for an inter-state sale)The state check is done by eyeWrong tax head in returns
Wrong taxable value after a couponDiscount applied to the price but tax calculated on the originalOver-reported tax and customer disputes
Duplicate or skipped invoice numbersNumbers typed or copied by handBreaks the unique-number rule and creates gaps to explain
Missing HSN code or wrong rateProduct details re-entered each timeWrong tax on every sale of the item
Missing credit note after a returnReturns handled in a different process from billingTax reported on a reversed sale
Invoice sent late or not at allDependence on one personCustomer complaints and compliance gaps

The data automation depends on

An invoice is a view of data. If the data is wrong or missing, automation simply spreads the mistake. Before you switch on any automatic billing, make sure the following is in place.

Data itemWhere it livesWhy it matters
Your legal name, address and GSTINStore settingsRequired on every invoice (Rule 46(a)); the first two digits of the GSTIN also identify your state
Product HSN codeEach productRequired on the invoice (Rule 46(g)); linked to the tax rate
Product GST rate and effective dateEach product or a rate tableDrives every calculation; rate changes need an effective date
Whether prices include GSTStore or product settingDecides whether tax is backed out of the price or added to it
Unit of measureEach productRequired with quantity (Rule 46(i))
Delivery address with stateOrderDecides CGST and SGST versus IGST and the place of supply
Buyer GSTIN and business nameOrder, for business buyersRequired for registered recipients (Rule 46(d))
Discounts and couponsOrderReduce the taxable value (Rule 46(k))
Shipping and other chargesOrderShown as separate lines, with tax treatment agreed with your accountant
Invoice series settingsBilling settingsControls numbering, prefixes and the financial-year reset

The particulars in the table come from Rule 46 of the CGST Rules (CGST Rules, 2017, Rule 46). Our complete guide to GST invoices for online stores explains each field.

The calculation, step by step

Step 1: Decide intra-state or inter-state

The system compares the state in your GSTIN, taken from its first two digits, with the delivery state on the order. If they match, the supply is within the state, and the tax is split into CGST and SGST, each at half the rate. If they differ, the tax is IGST at the full rate. Rule 46(n) requires the invoice to state the place of supply with the name of the State for inter-State supplies, so the delivery state must be captured reliably at checkout, and a customer who changes the address after ordering can change the tax split.

Step 2: Allocate discounts

Rule 46(k) requires the taxable value to take discounts into account. An item-level discount is straightforward. An order-level coupon must be spread across the items, usually in proportion to their value, so that each line has the right taxable value and tax rate applied to it.

Step 3: Back the tax out of tax-inclusive prices

If your prices include GST, taxable value equals the amount paid for the line multiplied by 100 and divided by (100 plus the rate), and the tax is the remainder.

Step 4: Split and round

The tax is split into CGST and SGST, or kept as IGST, and amounts are rounded to paise. Rounding is where automation is most often sloppy, as the example below shows.

A worked example with a coupon and a rounding problem

The figures are assumed for illustration. A customer buys two items, both priced including GST, and uses a ₹150 order-level coupon. Rates of 18% and 5% are used only to demonstrate the arithmetic and are not statements about the correct rate for any product.

LineList priceCoupon share (proportional)Amount paidRateTaxable valueGST
Item A₹1,000₹100.00₹900.0018%₹762.71₹137.29
Item B₹500₹50.00₹450.005%₹428.57₹21.43
Total₹1,500₹150.00₹1,350.00 ₹1,191.28₹158.72

The coupon is shared in proportion to value: item A is two-thirds of ₹1,500, so it takes ₹100 of the ₹150, and item B takes ₹50. For item A, ₹900 × 100 ÷ 118 is ₹762.71 (to paise), leaving ₹137.29 of GST. For item B, ₹450 × 100 ÷ 105 is ₹428.57, leaving ₹21.43. Taxable values add up to ₹1,191.28 and tax to ₹158.72, which together make ₹1,350.00, exactly what the customer paid.

Now the rounding problem. For an intra-state sale, item A's ₹137.29 of GST must be split between CGST and SGST, but half of ₹137.29 is ₹68.645, which does not exist in paise. The invoice must show CGST and SGST amounts that add up to ₹137.29, so one of them will be ₹68.65 and the other ₹68.64. Item B's ₹21.43 splits as ₹10.72 and ₹10.71. A platform has to choose a rule for this, apply it consistently and make sure the totals tie out, and your accountant should confirm that the approach matches how you will report. For an inter-state sale there is no split: IGST is simply ₹137.29 on item A and ₹21.43 on item B. A good test of any billing automation is to give it exactly this kind of order and check that every line adds up to the penny.

Invoice numbers: the part that must never be left to chance

Rule 46(b) requires a consecutive serial number of no more than sixteen characters, using letters, numerals, a hyphen or a slash, unique for the financial year, in one or more series. Generating such numbers automatically is harder than it looks, because several orders arrive at the same moment and each needs a different number without gaps or duplicates.

Design choiceGood practiceWhy
FormatA short prefix, the financial year and a zero-padded sequence, for example INV/26-27/000123 (16 characters)Readable, sorts correctly, within the length limit
ResetRestart the sequence each financial year, or include the year in the numberNumbers must be unique for the year
SeriesSeparate series for online orders, the shop counter and credit notes where you want clearer reconciliationThe rule allows multiple series
ConcurrencyThe system locks or uses a database sequence so two orders cannot take the same numberAvoids duplicates under load
GapsIf a number is issued and the order fails, record the number as cancelled instead of reusing itA gap you can explain is better than a reused number
Order number versus invoice numberKeep them separate unless the order number itself meets all four conditionsAn order number often includes a date, a long prefix or a daily sequence

Ask any platform to show a sample invoice number and explain how it meets the sixteen-character, consecutive and unique-for-the-year conditions. If the answer is that the invoice number is the order number, check the format against the rule.

Business buyers and GSTIN capture

A buyer registered under GST may want to claim input tax credit, so Rule 46(d) requires their GSTIN and business name on the invoice. Automation should offer a clear option at checkout, such as "I want a GST invoice for this order", and then collect the business name and GSTIN, check the GSTIN's format, and print both on the invoice. A GSTIN has fifteen characters: a two-digit state code, the ten-character PAN, an entity number, the letter Z and a check character. Format checks catch typing errors, but they cannot confirm that a number is active, so for high-value or repeat business customers consider verifying it on the GST portal's Search Taxpayer page.

Three design points matter. First, capture the GSTIN at the time of the order, because changing it afterwards is a correction to a legal document and should go through your accountant. Second, record whether each invoice is business-to-business or business-to-consumer, because returns and reports treat them differently. Third, base the place of supply on the delivery location for goods, not on the state in the buyer's GSTIN, and confirm this approach with your accountant.

Credit notes: the half of automation that is usually missing

Sales on an online store are reversed constantly through returns, refused cash on delivery parcels and post-sale discounts. Each reversal after an invoice has been issued needs a credit note. Rule 53 lists what a credit note must contain: the supplier's name, address and GSTIN, the nature of the document, a serial number of up to sixteen characters unique for the financial year, the date, the recipient's details, the serial number and date of the corresponding tax invoice, the value of the taxable supply, the rate of tax and the amount of tax credited, and the supplier's signature (CGST Rules, 2017, Rule 53).

A system that automates credit notes should:

  • Create the credit note when a return is approved or a refund is processed, not weeks later.
  • Link it to the original invoice by number and date.
  • Reverse tax in proportion for partial returns, using the same rate and tax split as the original line.
  • Draw its number from its own series, with the same uniqueness rules.
  • Appear in the same reports as invoices, with a clear sign so that totals net correctly.
  • Be retrievable by the customer and by you.

Section 34 of the CGST Act governs credit notes and includes conditions and time limits, so confirm the current rules with your accountant. If a platform cannot generate credit notes, your accountant must prepare them outside it, which is tolerable at small volume and hard to sustain at scale.

Delivering, storing and protecting invoices

  • Delivery. The invoice should reach the customer automatically, by email and by download from their order page, in a format that cannot be accidentally altered.
  • Immutability. Once issued, an invoice should not be editable. Corrections should go through credit notes and, where applicable, revised invoices under Rule 53.
  • Retrieval. You should be able to find any invoice by number, date, order or customer in seconds, including years later.
  • Audit trail. The system should log who generated, downloaded, cancelled or reissued a document.
  • Privacy. Invoices contain names, addresses and sometimes GSTINs, which are personal data. India's Digital Personal Data Protection Act, 2023 requires reasonable security safeguards for personal data (DPDP Act, 2023, MeitY), so check who can access invoices, how long they are kept and how they are backed up.

Reports and reconciliation, produced automatically

Return filing starts from invoice data. The GST portal describes GSTR-1 as a statement of outward supplies that includes business-to-business invoice details, business-to-consumer transactions, credit and debit notes, supplies through e-commerce operators and HSN summaries (GST portal, Form GSTR-1). A billing system that is truly automated lets you export, for any month:

  • An invoice-wise list with number, date, buyer type, state, taxable value and tax by type.
  • Business-to-business invoices separated, with the buyer's GSTIN.
  • A summary by HSN code and rate.
  • Credit notes and debit notes with references to the original invoices.
  • The ranges of invoice numbers issued, including any cancelled numbers.

Our guide to GST compliance for ecommerce sellers shows how these reports feed the month-end reconciliation and the returns.

E-invoicing: does automation need to include it?

E-invoicing is a separate system in which certain business-to-business invoices are reported to a government-authorised Invoice Registration Portal. According to the e-invoice portal, the system is for registered persons uploading B2B invoices to the Invoice Registration Portal, which returns a unique Invoice Reference Number, a digitally signed e-invoice and a QR code (e-invoice portal). It applies above an aggregate turnover threshold, which practitioners report as ₹5 crore at the time of writing; confirm the current limit and scope on the portal and with your accountant.

If you are below the threshold and sell mostly to consumers, you may not need it today. If you are near it, or supply to registered businesses in volume, ask now whether your platform can generate e-invoices through an approved integration, because registering invoices one by one by hand does not scale. Rule 46(r) also requires a QR code carrying the invoice reference number on invoices issued in the e-invoice manner.

Test any billing automation with twenty cases

The only reliable way to judge automation is to put awkward orders through it and inspect the invoices. Use this list in a trial, and ask your accountant to review the output.

#Test caseWhat to check
1Intra-state order, one itemCGST and SGST each at half the rate; totals tie
2Inter-state order, one itemIGST at the full rate; place of supply shown
3Multi-item order, different ratesEach line has its own rate; tax totals by type
4Order with an item-level discountTaxable value reflects the discount
5Order with an order-level couponCoupon allocated across lines; totals match what was paid
6Odd-paise tax split (as in the worked example)CGST plus SGST equals the total tax to the paisa
7Tax-exclusive price settingTax added to the taxable value correctly
8Business buyer with a valid GSTINName and GSTIN on the invoice; B2B flag set
9Invalid GSTIN formatRejected before the order is placed
10Order of ₹50,000 or more to an unregistered buyerBuyer details, delivery address and state code appear as Rule 46(e) requires
11Shipping charge on the orderSeparate line with the tax treatment you agreed
12Cash on delivery orderInvoice issued the same way as a prepaid order
13Address changed before dispatchTax split recalculated if the state changed
14Order cancelled before dispatchNo taxable invoice, or a documented reversal
15Full return after deliveryCredit note for the whole invoice, linked to it
16Partial returnCredit note for the returned lines only, with proportionate tax
17Two orders placed at the same secondDifferent, consecutive invoice numbers, no duplicates
18Order at midnight on 31 March and 1 AprilCorrect financial year and series
19Product rate changed mid-monthOld orders keep the old rate; new orders use the new one
20Monthly exportInvoice-wise and HSN-wise totals match the invoices and credit notes

Build, plug in or buy: how to get automated GST billing

OptionHow it worksStrengthsWatch out for
Platform with built-in GST billingThe store software generates invoices as part of the order flowOne system; invoices share data with orders, stock and reportsCheck the ten pipeline steps; you depend on the vendor's rule updates
Store platform plus a GST invoicing app or serviceAn add-on generates invoices from order dataFlexibility to choose a specialist toolExtra cost, sync delays, two systems to keep consistent. Shopify, for instance, states on its own help page that it does not create a GST-compliant bill and recommends a third-party service or app (Shopify, GST in India)
Accounting software connected to the storeOrders flow into accounting software that issues invoicesStrong books and reportingIntegration effort and timing; check how returns flow back
Custom developmentDevelopers build billing into your own storeTotal controlHigh cost, and you own every rule change, bug and audit question

For most small and mid-sized Indian sellers, a platform with billing built in or a well-integrated add-on is the practical choice. Custom builds make sense only for unusual requirements and a team that can maintain them.

What automation saves: an illustration

The figures below are assumptions, not benchmarks. Replace them with your own.

AssumptionValue
Orders per month300
Time to create and send one invoice by hand4 minutes, so 20 hours a month
Credit notes per month (10% of orders) at 6 minutes each30 credit notes, so 3 hours a month
Invoices needing correction (2% of orders) at 15 minutes each6 corrections, so 1.5 hours a month
Total manual time24.5 hours a month
Value of your time (assumed)₹300 an hour
Monthly cost of manual billing₹7,350, or ₹88,200 a year

The arithmetic: 20 plus 3 plus 1.5 is 24.5 hours, multiplied by ₹300 is ₹7,350 a month, and twelve months make ₹88,200. Automation does not remove all of that time, because you still review reports and handle exceptions, but it removes most of the keying and nearly all of the dispatch delay. Weigh the saving against the platform's cost, using the commission or subscription you would pay, and remember that the bigger benefit is fewer wrong invoices, not only fewer hours.

Evaluation scorecard: questions to ask a vendor

  1. Which of the ten pipeline steps does the product automate?
  2. Can I see invoices for each of the twenty test cases above?
  3. How are invoice numbers generated, and how do they meet the sixteen-character, consecutive and unique-for-the-year conditions?
  4. How is the tax split between CGST and SGST rounded, and do the totals always tie out?
  5. How are order-level coupons allocated across items?
  6. Where are HSN codes and rates stored, and how do rate changes with effective dates work?
  7. Can customers enter a GSTIN at checkout, and is it validated?
  8. Does the product generate credit notes for returns, with their own series?
  9. Can I export invoice-wise and HSN-wise reports for any month?
  10. Can invoices be edited after they are issued, and how are corrections handled?
  11. How are invoices stored, backed up and protected, and for how long?
  12. Is there an audit trail of who did what?
  13. Does the product support e-invoicing now, or on a roadmap?
  14. Can offline sales use the same system and numbering approach?
  15. Who updates the product when GST rules change, and how fast?

Red flags

  • The vendor cannot show a sample invoice for an inter-state order or a discounted order.
  • Invoice numbers are reused, restart daily, or exceed sixteen characters.
  • Invoices can be edited freely after they are issued.
  • There is no way to issue a credit note.
  • Tax is calculated on the pre-discount price.
  • CGST plus SGST does not always equal the total tax.
  • The vendor cannot explain how rate changes are handled.
  • Your accountant is not allowed to see sample output before you commit.

A four-week rollout plan

WeekFocusFinish by the end of the week
1Data clean-upHSN codes and rates reviewed with your accountant for every product; GSTIN, address and state confirmed; price inclusion setting decided
2TestAll twenty test cases run; issues logged with the vendor; accountant has signed off sample invoices
3Parallel runAutomatic invoices issued alongside your old process; both compared daily
4Go live and reconcileOld process retired; month-end reconciliation run; reports exported and reviewed by your accountant

Keep the old process available for the first month, and keep a written record of the date you switched so your accountant can explain any change in invoice series.

How ShopMate approaches automated GST billing

ShopMate includes GST invoicing in its single plan, with GST invoicing and tax display on the storefront and GST invoices and receipts from the offline POS (ShopMate). In the product, the customer invoice lists each item with CGST and SGST for sales within the merchant's state, or IGST for sales to other states, and shows totals for each tax type. Customers can request a GST invoice at checkout by entering a business name and GSTIN, which are validated for format and printed in the Bill To section. Merchants can export a GST report for their accountant as a CSV or PDF, with an invoice-wise detail section and an HSN-wise summary section, and HSN codes are stored on products.

It is important to be clear about what remains with you. The merchant chooses each product's HSN code and rate, decides how prices are shown, and files returns on the GST portal, and ShopMate's terms state that the merchant is responsible for their own GST compliance, including issuing valid GST invoices where the law requires (ShopMate Terms and Conditions). In your demo, ask the team to run the twenty test cases above and to explain how invoice numbers are formed and how credit notes for returns are documented, and have your accountant review the results before you rely on them. Pricing is a flat 5% commission plus 18% GST on every order, with no setup fee, no yearly maintenance charge and no annual contract (ShopMate pricing).

Frequently asked questions

What is automated GST billing?

It is a process in which the store generates a correct GST invoice for each order automatically, working out the tax split, discounts and invoice number, delivering the document, issuing credit notes for returns and producing the reports your accountant needs. It replaces manual invoice creation in spreadsheets or billing tools.

Is automated GST billing legally acceptable?

Yes, provided the invoices contain the particulars required by Rule 46 of the CGST Rules and the other rules that apply, including the invoice number conditions. The law cares about what the invoice contains and how it is issued, not about whether a person typed it. Have your accountant review sample output.

How does automation decide between CGST, SGST and IGST?

It compares the state in your GSTIN with the delivery state on the order. If they are the same, the tax is split into CGST and SGST at half the rate each. If they differ, it is IGST at the full rate. The invoice must show the place of supply for inter-state sales.

How should discounts and coupons appear on a GST invoice?

The taxable value must take the discount into account. An order-level coupon should be allocated across the items, usually in proportion to their value, so that each line shows the right taxable value and tax. Always check this with a test order.

Does automation handle returns?

Only if the system generates credit notes. When an invoice has been issued and the sale is reduced or returned, a credit note referring to the original invoice is the usual document under Rule 53. Confirm that your platform produces them and includes them in reports.

Do I need e-invoicing for my online store?

E-invoicing applies to registered businesses above an aggregate turnover threshold, reported as ₹5 crore at the time of writing, for specified business-to-business supplies. Many small sellers are below it. Check the current rules on the e-invoice portal and with your accountant, and ask your platform whether it supports it.

Can I use the order number as the invoice number?

Only if it satisfies the rule: consecutive, no more than sixteen characters, using only letters, numerals, hyphens and slashes, and unique for the financial year. Many order-number formats are longer or reset daily, so check.

Does ShopMate generate GST invoices automatically?

Yes, ShopMate generates an invoice for each order showing CGST and SGST or IGST by item, and lets customers request a GST invoice with their GSTIN at checkout. The merchant remains responsible for HSN codes, rates and filing, and should ask for a demo of the test cases and have their accountant review the output.

Sources and further reading

Legal text in this guide comes from the CBIC's official rule pages and the GST portal's own guidance. Rules, rates and thresholds change, so confirm the current position before relying on this guide. Sources were last checked on 3 October 2026.

  1. Central Board of Indirect Taxes and Customs, CGST Rules, 2017, Rule 46 (Tax invoice) and Rule 53 (Revised tax invoice and credit or debit notes).
  2. Goods and Services Tax Network, Form GSTR-1, Search Taxpayer, e-invoice portal and official GST portal.
  3. Ministry of Electronics and Information Technology, The Digital Personal Data Protection Act, 2023.
  4. Shopify, GST in India, for Shopify's statement on GST-compliant bills.
  5. ShopMate, home, terms and conditions and pricing pages, for ShopMate features, responsibilities and pricing.

Disclaimer: This article is for general information only and is not legal, tax or financial advice. ShopMate is the publisher of this guide and has a commercial interest in the platform it describes. All worked examples use assumed figures and rates for illustration only; the correct rate for any product depends on its classification. GST law, rules, rates, thresholds and notifications change, and your situation may differ. Consult a qualified chartered accountant or legal professional before making decisions.

See automated GST billing on your own orders

The best test is your own awkward orders. ShopMate offers a 7-day free trial and a demo call, where you can place intra-state and inter-state orders, apply a coupon, enter a GSTIN at checkout and download the GST report your accountant will use. Book a free demo, review the pricing details, or read more about ShopMate.

S

Written by ShopMate Team

Published Dec 04, 2026
Share