Every D2C brand hits the same wall around order #50: Shopify confirms orders beautifully, but the GST invoice — the document your CA actually needs — is still being made by hand in Excel, with tax math copied from a WhatsApp message some CA sent in 2024.
Invoice creation is the single most mechanical step in your entire order flow. It follows fixed rules. Which means it is the easiest thing to automate — if you get three rules right.
Rule 1: CGST/SGST vs IGST comes from the shipping state
If your buyer is in your own state, an 18% tax splits into CGST 9% + SGST 9%. If they are in another state, the whole 18% is charged as IGST. The decision comes from the place of supply — for D2C, effectively the shipping address. Humans get this right until the day they don't; automation reads the state code from the order and never gets bored.
Rule 2: invoice numbers must be consecutive — really consecutive
GST expects a consecutive serial for the financial year (like INV/26-27/0042). Gaps invite questions during scrutiny. The trap: two orders arriving in the same minute, or a failed order that "used up" a number. Numbering must be atomic — the number is allocated only when the invoice is actually created, in the same transaction, so no duplicates and no burnt numbers ever.
Rule 3: B2B and B2C are different documents
A B2C invoice carries no buyer GSTIN. A B2B buyer will demand their GSTIN printed correctly — that is how they claim input credit. Your flow should ask for a GSTIN when the buyer is a business, validate its format, and print it faithfully.
The automated flow
- Order lands (Shopify webhook, or a manual entry).
- Tax is computed from the shipping state — CGST/SGST or IGST, correctly split.
- A gapless invoice number is allocated atomically.
- The PDF is generated and sent to the customer on WhatsApp.
- The sale posts to Tally as a sales voucher with the same split — books and invoices never diverge.
In Yantra this is the "Order → GST invoice" template: one click, then describe any tweak in plain Hinglish. GST invoicing is built into the platform — numbering, tax split, PDF and the WhatsApp send included — and a failed run never costs a rupee.