{"product_id":"gst-e-invoice-e-way-bill-automation-for-shopify-via-gsp","title":"GST E-Invoice \u0026 E-Way Bill Automation for Shopify via GSP","description":"\u003ch3\u003eAutomate GST e-Invoice \u0026amp; e-Way Bill creation for Shopify orders—powered by your GSP API\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically generates GST e-Invoice details (IRN\/QR) and\/or e-Way Bill for every \u003cstrong\u003eShopify order marked as paid\u003c\/strong\u003e, renders a compliant PDF, archives it to Google Drive, emails the invoice via Gmail, and logs everything to Google Sheets—while routing failures to Slack.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on payment:\u003c\/strong\u003e Starts when a Shopify order is marked \u003cem\u003epaid\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalculates GST \u0026amp; compliance routing:\u003c\/strong\u003e Loads seller configuration plus HSN and prior status from \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, then determines whether the order needs an \u003cstrong\u003eIRN\u003c\/strong\u003e, an \u003cstrong\u003ee-way bill\u003c\/strong\u003e, or no compliance document.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates or fetches IRN\/e-way via GSP:\u003c\/strong\u003e If required, authenticates with your \u003cstrong\u003eGSP\u003c\/strong\u003e and calls the relevant GSP API—fetching an existing IRN when the portal reports it was already generated.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses compliance response:\u003c\/strong\u003e Extracts IRN, acknowledgment details, signed QR data, and e-way bill information; posts errors to \u003cstrong\u003eSlack\u003c\/strong\u003e if creation fails.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates invoice PDF:\u003c\/strong\u003e Builds an HTML tax invoice (including a QR code via \u003cstrong\u003equickchart.io\u003c\/strong\u003e when available) and renders it to PDF using a \u003cstrong\u003eGotenberg\u003c\/strong\u003e server.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpdates records \u0026amp;amp\u0026gt; customer delivery:\u003c\/strong\u003e Saves the PDF to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e, emails it to the customer via \u003cstrong\u003eGmail\u003c\/strong\u003e, writes IRN\/e-way\/invoice details back to the Shopify order as metafields and a tag, and upserts the transaction into the \u003cstrong\u003eGoogle Sheets GST Register\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupports IRN cancellation:\u003c\/strong\u003e Accepts IRN cancellation requests via an n8n form, validates the \u003cstrong\u003e24-hour cancellation window\u003c\/strong\u003e against the GST Register, cancels through the \u003cstrong\u003eGSP API\u003c\/strong\u003e when allowed, and reports results to \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eShopify sellers who need \u003cstrong\u003eGST e-invoice automation\u003c\/strong\u003e with IRN\/QR and automated PDF delivery.\u003c\/li\u003e\n  \u003cli\u003eBusinesses shipping orders that require \u003cstrong\u003ee-way bill generation\u003c\/strong\u003e based on GST compliance rules.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers and SaaS operators managing invoice issuance, archiving, and audit logs in \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTrigger:\u003c\/strong\u003e Shopify order marked as paid\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData \u0026amp; logging:\u003c\/strong\u003e Google Sheets (GST register), Google Drive (PDF archive)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail:\u003c\/strong\u003e Gmail (send PDF to customer)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFailure handling:\u003c\/strong\u003e Slack (error posting)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePDF rendering:\u003c\/strong\u003e Gotenberg\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQR generation:\u003c\/strong\u003e quickchart.io (when available)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow nodes mentioned:\u003c\/strong\u003e if, code, gmail, slack, switch, sticky note\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46312247099571,"sku":"N8N-21777","price":9.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/q-5FycdSXUjDOrZ8eAAKC_DK9rGa9x.png?v=1793178124","url":"https:\/\/buyflowscripts.com\/products\/gst-e-invoice-e-way-bill-automation-for-shopify-via-gsp","provider":"N8N Commerce","version":"1.0","type":"link"}