---
title: "UPI payment QR code"
method: GET
path: "/v1/upi-qr"
tags: ["QR codes and barcodes"]
---

# UPI payment QR code

`GET /v1/upi-qr`

## Request

- Base URL: `https://api.dharun.dev`
- URL: `https://api.dharun.dev/v1/upi-qr`
- Auth: none declared

A QR code any UPI app can scan to pay, built to NPCI's upi://pay link format. format=json returns the link instead of the image. Nothing is checked with a bank.

## Query parameters

- `pa` string, required
- `pn` string
- `am` string
- `tn` string
- `tr` string
- `mc` string
- `format` 'svg' | 'png'
- `size` integer
- `margin` integer
- `fg` string
- `bg` string

## Response `200`

Success

## Other responses

- `400`: Error
- `404`: Error
- `429`: Error

---

[API](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data.md) · [All operations](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/llms.txt) · [OpenAPI document](https://skmtc.dev/dharun/apis/india-api-free-open-source-apis-for-indian-data/revisions/ecd8b0ec7863?raw)
