Migrate from BharatQR APIs to QR Codes APIs

Migrate from our BharatQR APIs to QR Code APIs. Compare features, API Parameters and Webhook events.


Given below is the high-level migration process.

  1. Explore the QR Codes APIs using the Postman collection.
  2. Understand the QR Code API Request and Response structure and the webhook payloads.
  3. Integrate with QR Code APIs. You can refer to the provided sample codes.

The table below lists the features availability on BharatQR API and QR Codes API:

FeatureBharatQR APIQR Codes API
Dynamic BharatQRNoYes
Static BharatQRYesYes
Dynamic UPI QRYesYes
Static UPI QRNoYes
Get count of payments collected on QR codeNoYes
Dashboard accessNoYes
Your business branding on QR imageNoYes
Dedicated VPA for your businessNoYes

Compare BharatQR and QR Code API parameters.

Given below is a comparison of the parameters and their descriptions.

BharatQR ParameterQR Codes ParameterDescription
receivers.typestypeThe type of QR code. Possible values:
  • upi_qr: Create a QR code that accepts only UPI payments.
  • bharat_qr: Create a QR code that accepts UPI and card payments.

For receivers.types , the only possible value was qr_code .
descriptiondescriptionA brief description of the QR code.
customer_idcustomer_idUnique identifier of the customer the QR code is linked with.
close_byclose_byUNIX timestamp at which the QR code is scheduled to be automatically closed. The time must be at least 15 minutes after the current time.
notesnotesKey-value pair that can be used to store additional information about the QR code. Maximum 15 key-value pairs, 256 characters (maximum) each.
amount_expectedNAThe maximum amount you expect to receive in this virtual account.
NAnameLabel entered to identify the QR code. For example, Store Front Display .
NAusageIndicates if the QR code should be allowed to accept single payment or multiple payments. Possible values:
  • single_use: QR code will accept only one payment and then close automatically.
  • multiple_use (default): QR code will accept multiple payments.
NAfixed_amountIndicates if the QR should accept payments of specific amounts or any amount. Possible values:
  • true: QR code accepts only a specific amount.
  • false (default): QR code will accept any amount.
NApayment_amountThis parameter is mandatory if fixed_amount parameter is in use. The amount allowed for a transaction. If this is specified, then any transaction of amount less than or more than this value will not be allowed. For example, if this amount is set as 500000 , the customer cannot pay an amount less than or more than ₹5000.

API Reference Links

Given below is a comparison of the parameters and their descriptions.

For this action, only one path parameter needs to be passed, the QR code id.

BharatQR ParameterQR Codes ParameterDescription
Virtual Account IDQR Code IDThe unique identifier of the virtual account/QR code that is to be closed.

API Reference Links

The fetch query parameters remain the same across the APIs as given below:

BharatQR ParameterQR Codes ParameterDescription
fromfromTimestamp, in seconds, from when QR codes are to be fetched.
totoTimestamp, in seconds, till when QR codes are to be fetched.
countcountNumber of QR codes to be fetched. The default value is 10 and the maximum value is 100. This can be used for pagination, in combination with skip.
skipskipNumber of records to be skipped while fetching the QR codes. This can be used for pagination, in combination with count.

API Reference Links

Given below is a comparison of the parameters and their descriptions.

For this action, only one path parameter needs to be passed, the QR code id.

BharatQR ParameterQR Codes ParameterDescription
Virtual Account IDQR Code IDThe unique identifier of the virtual account/QR code whose details are to be fetched.

API Reference Links

Given below is a comparison of the parameters and their descriptions.

For this action, only one path parameter needs to be passed, the QR code identifier.

BharatQR ParameterQR Codes ParameterDescription
Virtual Account IDQR Code IDThe unique identifier of the virtual account/QR code whose payment details are to be fetched.

API Reference Links


Was this page helpful?