UPI QR Code API- Developers Resources

Developers can integrate our UPI QR Code API ( Application Programming Interface) into their web applications or mobile applications to generate dynamic UPI QR Code. To use the API, Register Login to Member Area, In Member Area get apikey and set seckey to use the API.

API ENDPOINT: https://www.upiqrcode.com/upi-qr-code-api/v01/

ParametersData TypeWhether MandatoryDescription
apikey string Yes Register and get API Key from member area
seckey string Yes Login to member area and set Secret Key
paymode string conditional bankac for transferring payment by bank account and IFSC Code
mobile for transferring payment by mobile no. and mmid
vpa for transferring payment by UPI ID
Parameter Not required for receiving payment by VPA.
vpa string yes Virtual Private Address created from any bank UPI APP
bankaccount@ifsccode
mobileno@mmid
Note:VPA will be assumed as default, in case paymode parameter is not defined.
payee string Yes Receiver of the payment
payer string No Name of the party making payment
billno string No Bill No.
Note: If bill Number is not supplied, then you will not be able to identify against which bill, payment has been received.
amount Currency #.00 No Bill Amount
minamt Currency #.00 No Minimum amount payable
size Number between 150-1000 No Size of the UPI QR Code to be generated. If blank, then default size will be applied
url string No Transaction Referance URL
sign string No Base 64 encoded Digital signature needs to be passed in this tag.
will not be processed for free users
orgid string No If the transaction is initiated by any PSP app then the respective orgID needs to be passed. For merchant initiated/created intent/QR "000000" will be used
will not be processed for free users
mid string No Merchant id (max 20) shall be passed in this tag
will not be processed for free users
msid string No Store id (max 20) shall be passed in this tag
will not be processed for free users
mtid string No Terminal id /Sales Man id (max 20) shall be passed in this tag
will not be processed for free users
front Hexa Color Code for foreground No If not supplied , then black and white UPI QR Code with be generated.
back HexaColor Code for background No If not supplied , then black and white UPI QR Code with be generated.
logo Logo file URL No If Logo is not supplied, UPI QR Code till be generated without Logo. You should check whether QR Code is readable after displaying logo.

A Request to UPI QR Code API with transfer Mode

Method : GET Request
Parameter : paymode
Value for Parameter : String
Whether Mendatory: No

Parameters: bankac ->to receive payment by Bank Account No. & IFSC Code
mobile -> to receive payment by mobile no & MMID
For VPA, no need to send parameter

A Simple Request to UPI QR Code API

Method : GET Request
Parameter : vpa
Value for Parameter : String
Whether Mendatory: Yes

A simple request to the UPI QR Code API to transfer payment by UPI ID can be made as:

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode

Request to UPI QR Code API to transfer payment by account no & IFSC can be made as:

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&paymode=bankac&vpa=bankAccountno@IFSCCode

Request to UPI QR Code API to transfer payment by mobile no & MMID can be made as:

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&paymode=mobile&vpa=mobileno@mmid

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode

The above request to our UPI QR Code API will generate a upi qr code without any customization.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name" alt="" title=""/>

UPI QR Code with Size Request to UPI QR Code API

Note:Size in pixel, without px suffix, i.e. 200 , 300, 400 to maximum size 1000.

Parameter : size
Value for Parameter : Number
Minimum Value:No size parameter for default size
Maximum Value:1000
Whether Mendatory: No

Sample request with QR Code Size


https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&size=150
The above request to our UPI QR CODE API will generate a upi qr code with size.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&size=150" alt="" title=""/>

UPI QR Code with Foreground Color Request to UPI QR Code API

Note:Hex Color codes without # prefix i.e 922B21, 76448A, 6C3483, etc

Foreground Color Parameter
Parameter : front
Minimum Size : 6 Character Hex Code
Maximum Size : 6 Character Hex Code
Whether Mendatory: No

Sample request with Foreground Color


https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&front=922B21

The above request to our UPI QR Code API will generate a upi qr code with specified foreground color code.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&front=922B21" alt="" title=""/>

UPI QR Code with background Color Request to UPI QR Code API

Note:Hex Color codes without # prefix i.e 922B21, 76448A, 6C3483, etc

Background Color Parameter
Parameter : back
Minimum Value for background Color : 6 Character Hex Code
Maximum Value for background Color : 6 Character Hex Code
Whether Mendatory: No

Sample request with Background Color

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee%20name&back=922B21

The above request to our UPI QR Code API will generate a upi qr code with specified background color code.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&back=922B21" alt="" title=""/>

UPI QR Code with background Color, Foreground Color & Size Request to UPI QR Code API

Sample request with Background Color, Foreground Color & Size

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&back=922B21&front=76448A&size=150

The above request to our UPI QR Code API will generate a upi qr code with specified foreground color, background color code and size.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee%20name&back=922B21&front=76448A&size=150" alt="" title=""/>

UPI QR Code with Logo API

Sample request with Background Color, Foreground Color, Size & Logo

https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&back=F5F111&front=6F2735&size=250&logo=https://www.upiqrcode.com/images/upi-qr-code.png


The above request to our UPI QR Code API will generate a upi qr code with specified foreground color, background color code and size.
You can embed the generated UPI QR Code into you HTML page with tag in following manner:

<img src="https://www.upiqrcode.com/upi-qr-code-api/v01/?apikey=apikey&seckey=seckey&vpa=vpa@bankcode&payee=payee%20name&back=F5F111&front=6F2735&size=250&logo=https://www.upiqrcode.com/images/upi-qr-code.png" alt="" title=""/>

PHP Code to Integrate UPI QR Code API into your website

Javascript for integrating UPI QR Code API into your website

ASP.NET Code for integrating UPI QR API into your website

Integrating UPI QR API into BI Publisher

Share this page




Back to Top