QR code for a UPI payment (scannable by any UPI app)

Generates a UPI payment QR code that opens any UPI app (GPay, PhonePe, Paytm…) with the payee and amount filled in.

Request

GEThttps://qr-code-generator.p.apihiver.com/v1/upi?vpa=shop%40okhdfcbank&name=Shop&amount=10
*
String. Payee UPI ID, e.g. shop@okhdfcbank.
*
String. Payee name.
Number. Amount in rupees to pre-fill (optional) (0–100000).
String. Payment note shown in the UPI app (optional).
Number. Image size in pixels (64–2000, default 300).
Language
Client
1curl --request GET \
2  --url 'https://qr-code-generator.p.apihiver.com/v1/upi?vpa=shop%40okhdfcbank&name=Shop&amount=10&note=%7Bnote%7D&size=%7Bsize%7D' \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

QR code for a UPI payment (scannable by any UPI app): QR Code Generator & Reader API reference

Generates a UPI payment QR code that opens any UPI app (GPay, PhonePe, Paytm…) with the payee and amount filled in. This endpoint is part of the QR Code Generator & Reader API: Create QR codes for links, text, UPI payments, Wi-Fi logins and contact cards (PNG/SVG, custom colours) and read QR codes from images.

Example response (200, image/png)

The UPI QR code image.

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "vpa: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.