UPI QR Codes in GST Invoices

Updated Apr 13, 20262 min read

GST Pro allows you to add a UPI QR code to your invoices, enabling customers to make payments instantly by scanning the code.

This is especially useful for B2B orders, where quick and accurate payment collection is important.

⚠️ Note: This is an advanced feature. If you're unsure about setup, feel free to contact support for assistance.


What This Feature Does

  • Adds a QR code to your invoice

  • When scanned, it opens the customer’s UPI app

  • Automatically fills:

    • Payee details

    • Invoice amount

    • Transaction reference

This reduces manual errors and speeds up payments.


How to Enable

  1. Go to Templates

  2. Click Customize

  1. Open the Overview section

  1. Enable Show QR Code


QR Code Fields Explained

After enabling, you will see two fields:

1. QR Title

  • This is the label shown above the QR code

  • Example:

    • Scan to Pay

    • UPI Payment

    • Pay via UPI

2. QR Content (Important)

This is where you define the UPI payment link.

  • Supports Liquid variables (dynamic order data)

  • Used to generate a dynamic QR code per invoice


Sample UPI QR Content (Dynamic)

Copy and paste the following:

upi://pay?ver=01&mode=15&tr=3230300090&tn=00&pa=COMPANY@HDFCBANK&pn=COMPANYPRIVATELIMITED&mc=4118&am={{order.current_total_price}}&gstBrkUp={% if order.same_province %}CGST:{{order.o_total_half_tax}}|SGST:{{order.o_total_half_tax}}{% else %}IGST:{{order.o_total_tax}}{% endif %}&qrMedium=02&InvoiceNo={{order.invoice_number}}&InvoiceDate={{order.created_at}}&QRexpire={{order.created_at | date:"%s" | plus: 345600 | date: "%Y-%m-%dT%H:%M:%S%z"}}&gstin={{order.store_gst_number}}

What You Need to Customize

Before using the above template, replace the following:

  • COMPANY@HDFCBANK → Your UPI ID

  • COMPANYPRIVATELIMITED → Your business name

  • tr=3230300090 → Transaction/reference ID logic (optional customization)


How It Works

  • A unique QR code is generated for each invoice

  • The amount is auto-filled using:

    {{order.current_total_price}}
  • GST breakdown is included based on:

    • Intra-state → CGST + SGST

    • Inter-state → IGST


Important Notes

  • Ensure your UPI ID is correct, or payments will fail

  • Test the QR code with a sample order before going live

  • The QR code includes an expiry date (default: 4 days)

  • Works best for B2B or manual payment workflows


UPI QR Code Specifications

For detailed technical standards, refer to NPCI documentation:
https://www.npci.org.in/PDF/npci/upi/circular/2017/Circular18_BankCompliances_to_enbaleUPIMerchantecosystem_0.pdf


Tips

  • Add a clear label like “Scan to Pay via UPI”

  • Inform customers that the amount is auto-filled

  • Reach out to support if you are unsure about the set up

Related articles

Still need help?

Start a chat and we'll pick it up right here.