Create a QR code
Creates a new QR code for accepting UPI payments.
Authorizations
Use your Razorpay Key ID as the username and Key Secret as the password.
Body
Type of QR code. Use upi_qr for UPI payments.
upi_qr "upi_qr"
Whether the QR code can be used once or multiple times.
single_use, multiple_use "single_use"
Name or label for the QR code.
"Store Front Display"
Set to true to create a QR code with a fixed payment amount.
true
Fixed payment amount in smallest currency unit (paise). Required if fixed_amount is true.
100
Description of the QR code.
"For Store 1"
Unique identifier of the customer to associate with this QR code.
"cust_EtjRHOF6vrzpfy"
Unix timestamp after which the QR code will be automatically closed.
1681615838
Key-value pairs for storing additional information. Maximum 15 pairs.
Response
QR code created successfully.
A Razorpay QR Code object for UPI payments.
Unique identifier of the QR code.
"qr_EtjRHL7viz7RCz"
Entity type. Always qr_code.
"qr_code"
Unix timestamp at which the QR code was created.
1623914648
Name or label for the QR code.
"Store Front Display"
Whether the QR code can be used for single or multiple payments.
single_use, multiple_use "single_use"
Type of QR code. upi_qr for UPI payments.
upi_qr "upi_qr"
URL of the QR code image. Can be embedded or downloaded.
"https://rzp.io/i/w2CEwYmkAu"
Fixed payment amount in smallest currency unit (paise). Null for open amount QR codes.
100
Current status of the QR code.
active, closed "active"
Description of the QR code.
"For Store 1"
Whether the QR code has a fixed payment amount.
true
Total amount received through this QR code in smallest currency unit.
0
Total number of payments received through this QR code.
0
Key-value pairs for storing additional information.
Unique identifier of the customer associated with this QR code.
"cust_EtjRHOF6vrzpfy"
Unix timestamp after which the QR code will be automatically closed.
1681615838
Unix timestamp at which the QR code was closed.
null
Reason for closing the QR code.
null