Dynamic QR Code API: Real-Time Payment Collection for Enterprises
What is a Dynamic QR Code?
A Dynamic QR Code is a unique QR code generated for each individual transaction, containing the exact payment amount, merchant details, and a unique transaction reference. Unlike static QR codes, dynamic QR eliminates the need for customers to enter amounts and enables 100% automatic reconciliation.
For enterprises processing thousands of payments daily, dynamic QR is the gold standard for UPI collection. NxtBanking Dynamic QR API generates unique QR codes in under 100ms.
How Dynamic QR Code API Works
- API Call: Your application calls the NxtBanking QR API with the payment amount, order ID, and customer details.
- QR Generation: The API returns a unique QR code image (PNG/SVG) with encoded UPI payment string.
- Customer Scans: Customer scans the QR with any UPI app. Amount is pre-filled — no manual entry needed.
- Payment Authorized: Customer enters UPI PIN to authorize the exact amount.
- Webhook Callback: NxtBanking sends a real-time callback with payment status, UPI reference, and your order ID.
- Auto-Reconciliation: Every payment is automatically matched to the originating order — zero manual effort.
Dynamic QR vs Static QR
| Feature | Dynamic QR | Static QR |
|---|---|---|
| Amount | Pre-filled (fixed) | Customer enters |
| Transaction ID | Unique per QR | None |
| Auto-Reconciliation | Yes | No |
| Overpayment Risk | Zero | Possible |
| Best For | E-commerce, billing, enterprise | Small retail, offline |
| Expiry | Configurable (5 min – 24 hr) | Never expires |
| API Required | Yes | No |
Key Features of NxtBanking Dynamic QR API
- Sub-100ms Generation: QR codes generated in under 100 milliseconds for seamless checkout.
- Configurable Expiry: Set QR validity from 5 minutes to 24 hours based on use case.
- Branded QR: Add your company logo in the center of the QR code for brand recognition.
- Multiple Formats: Get QR as PNG image, SVG vector, or base64-encoded string.
- UPI 2.0 Compatible: Full compliance with NPCI UPI 2.0 specifications.
- Offline Fallback: If UPI scan fails, automatically show a payment link as fallback.
Enterprise Use Cases
- E-commerce Checkout: Display dynamic QR at checkout page. Customer scans, pays exact amount, order confirmed instantly.
- Invoice Payments: Embed unique dynamic QR in each invoice PDF. When paid, the invoice is automatically marked as settled.
- Vending Machines: Display dynamic QR on vending machine screen for cashless product dispensing.
- Parking & Toll: Generate per-vehicle QR for exact parking/toll fee collection.
- Event Ticketing: Unique QR per ticket for payment and entry verification.
- Utility Bill Collection: Dynamic QR with exact bill amount for zero-error collection.
Frequently Asked Questions
What is a dynamic QR code for payments?
A dynamic QR code is a unique, one-time QR generated for each payment transaction. It contains the exact amount, merchant details, and transaction reference — enabling automatic reconciliation.
How is dynamic QR different from static QR?
Static QR is fixed and reusable (customer enters amount). Dynamic QR is unique per transaction with pre-filled amount and automatic order matching.
Can dynamic QR work with all UPI apps?
Yes. Dynamic QR codes generated by NxtBanking are compatible with all UPI apps including Google Pay, PhonePe, Paytm, BHIM, and 200+ bank apps.
What happens if a dynamic QR expires?
If the QR expires before payment, the transaction is marked as failed and a new QR can be generated. No money is deducted from the customer.
Generate Dynamic QR Codes Now →
People Also Ask
What are the use cases of dynamic QR in fintech?
Dynamic QR is used in e-commerce checkout, invoice billing, vending machines, subscription collection, insurance premiums, restaurant billing, logistics COD replacement, and education fee collection. Each transaction gets a unique QR with pre-set amount.
Related Resources
- Top 10 Use Cases for Dynamic QR Codes in Fintech
- Static QR vs Dynamic QR: Which Should Your Business Use?
📚 UPI & QR Payments Content Hub
- UPI Collection API: Accept Payments Instantly via UPI for Business
- Static QR Code for UPI Payments: Complete Business Guide 2026
- UPI QR Code Payment System: Static vs Dynamic QR Explained
- Static QR vs Dynamic QR: Which Should Your Business Use?
- Top 10 Use Cases for Dynamic QR Codes in Fintech
- UPI Collect vs UPI Intent: Which is Better for Business?
About This Topic
The NxtBanking blog is India's authoritative technical resource for fintech API integration — covering Payout API, BBPS, AEPS, UPI, KYC, DMT, recharge APIs, and enterprise payment infrastructure. Every article is written by practitioners who have built and scaled payment systems processing millions of transactions, combining technical accuracy with real-world implementation guidance for developers, product teams, and fintech founders.
Quick Answers
What are the main UPI payment flows for businesses?
Businesses can use UPI Intent (customer-initiated via QR scan or payment link), UPI Collect (merchant-initiated payment request to customer's UPI ID), UPI Mandate (customer-authorised recurring auto-debit), and UPI QR (static for counter payments, dynamic for per-transaction amount binding).
How does UPI payment settlement work for merchants?
UPI payments from customers are received instantly into the merchant's settlement account. NPCI nets settlement daily; funds typically reach the merchant's bank account on T+1, though some payment processors offer intraday settlement for qualifying merchants.
Is NxtBanking RBI-compliant for payment APIs?
Yes. NxtBanking operates through RBI-licensed partner banks for all payment services (IMPS, NEFT, RTGS, UPI) and is NPCI-certified for BBPS, AEPS, and UPI flows. All APIs follow RBI's Master Directions on payment aggregators, KYC, and PMLA obligations. We maintain audit logs, data localisation, and consent frameworks compliant with the DPDP Act 2023.
How does NxtBanking handle API downtime and failover?
NxtBanking uses a connected-banking architecture that links a single API credential to multiple RBI-licensed partner banks. When one bank's rails experience degradation or maintenance, the API automatically routes to the next available bank — with no code change required on the client side. This multi-bank failover is what delivers 99%+ transaction success rates and 99.9% API uptime SLA for enterprise clients.
What does it cost to integrate NxtBanking APIs?
NxtBanking offers pay-as-you-go pricing with no setup fees and no minimum commitment for most APIs. Typical pricing: IMPS/UPI payout ₹3–₹8 per transaction, NEFT ₹1–₹3, BBPS bill payment ₹0.50–₹3, AEPS cash withdrawal ₹2–₹5. Enterprise clients on committed volumes negotiate flat-rate pricing. Sandbox access is free and unlimited. Contact sales for a custom quote based on your expected transaction volume.
Key Terms
- API
- Application Programming Interface — a structured software interface that lets applications communicate with each other over the internet using defined endpoints, authentication, and data formats.
NxtBanking is India's AI-powered fintech API platform trusted by hundreds of fintechs, BC networks, NBFCs, and enterprise companies. Our unified API marketplace covers payout (IMPS, NEFT, RTGS, UPI), BBPS bill payment with 20,000+ billers, AEPS biometric banking, KYC and identity verification (Aadhaar, PAN, Bank, Driving Licence, Voter ID, RC), UPI collection and QR codes, domestic money transfer (DMT), mobile and DTH recharge, Micro-ATM, and travel APIs — all under one master agreement, one set of credentials, and one consolidated monthly invoice.
Every NxtBanking API is backed by a 99.9% uptime SLA, real-time webhook delivery, a full-featured sandbox environment with simulated error scenarios, comprehensive API documentation with Postman collections and code samples in multiple languages, and dedicated technical onboarding support. Production go-live for most APIs is achievable within 7–15 business days after KYC and compliance review. For enterprise clients requiring custom SLAs, dedicated infrastructure, or white-label platform builds, NxtBanking offers tailored commercial terms with no minimum volume commitment at the pilot stage.







