QR Code APIs

Checklist to integrate using QR Code APIs. List of QR Codes APIs and GST QR Code APIs - Create, Close, Fetch and Refund.


You can use the QR Codes APIs to perform various actions. You can perform all of these actions from the

as well.

Watch Out!

Once the QR Code has been created, you cannot edit its details.

  1. If you are creating a Dynamic QR code, we suggest you create a single customer_id rather than making multiple ids for the same customer. In any case, if their details change, you can use the

    .

  2. To keep a check on the duplicate customer details:

    • If you use the fail_existing : 1 parameter, the API throws an error when existing customer details are added.
    • If you use the fail_existing : 0 parameter, the API returns the customer_id when existing customer details are added.
  3. Use

    to check for any downtimes that might affect the UPI generation/transactions.

  4. Please note that the Razorpay order id gets generated automatically when a customer makes the payment using the QR code provided by you.

  5. While

    or using the Razorpay Dashboard, make sure that you pass all the critical parameters for non-GST and GST QR codes.

  6. Pass the type as upi_qr while creating the QR Code. Since we also have a BharatQR feature, not passing the type can lead to errors.

  7. Check the difference between Static and Dynamic QR Codes:

  8. If the fixed_amount parameter is passed, you must pass the amount parameter at the time of QR code creation.

  9. To fetch the details about the QR codes, you can use

    or use to get details about payment activity or the status of your QR codes.

  10. We recommend using the

    to fetch relative information about QR codes.

Best Practices for Image Content Integration

You can check the contents passed in the QR Code using the response payload for

. The image_content parameter displays the QR Code content. For Example, once the qr_image_content feature is enabled, you can get the create QR Code response as given on the right-hand side.

The table below lists the various QR Code APIs and gives a brief description of each API:

The table below lists the various QR Code APIs and gives a brief description of each API:


Was this page helpful?


qr code api
qr code api integration
create qr code api