API Test Keys
Raise a Complaint
POST/v1/complaints/raiseClick to copy
Use this endpoint to register a complaint for a failed or unsatisfactory UPI transaction.
Is this page helpful?
Curl
1curl -X POST 'https://api.rzp.<bank>.com/v1/complaints/raise' \2-u [YOUR_KEY_id]:[YOUR_SECRET] \3-H "Content-type: application/json" \4-H "Authorization: Bearer <token>" \5-H "x-device-fingerprint: <device_fingerprint>" \6-H "x-device-fingerprint-timestamp: 1496918882000" \7-H "x-customer-reference: customer-id-from-customer" \8-d '{9"reference_id": "123214121",10"upi_transaction_id": "1234567890",11"upi_original_transaction_id": "1231312321412",12"upi_initiation_mode": "00",13"upi_purpose_code": "01",14"upi_reference_category": "00",15"upi_reference_url": "https://www.abcxyz.com/",16"request_adjustment_amount": "500",17"request_adjustment_code": "U010",18"request_adjustment_flag": "PBRB",19"description": "Amount not credited"20}'
Success
1{2"entity": "upi.complaint",3"reference_id": "123214121",4"upi_reference_id": "123214121",5"upi_transaction_id": "1234567890",6"upi_response_code": "01",7"upi_customer_reference_number": "123214121",8"payee": {9"vpa": "acme.corp@rzp",10"name": "AcmeCorp Pvt. Ltd."11},12"description": "Your Complaint is Raised",13"status": "initiated",14"request_adjustment_amount": "500",15"request_adjustment_code": "U010",16"request_adjustment_flag": "PBRB"17}
Request Parameters
reference_id *
stringUnique id generated by the business for the complaint.
upi_transaction_id *
stringUnique transaction id on which the complaint is raised.
upi_original_transaction_id *
stringOriginal UPI transaction id used at the time of payment.
upi_initiation_mode enumIndicates the 2-digit code defined by NPCI. Possible values:
00: Default - When no specific code is assigned or for general default scenarios.01: QR Code - For making payments by scanning a standard QR code.02: Secure QR Code - For payments that require additional security with QR codes.03: Bharat QR Code - For interoperable payments across various payment networks using Bharat QR.04: Intent - For payments initiated by an intent from an application or browser.05: Secure Intent - For payments initiated by a secure intent from an app or browser.06: NFC (Near Field Communication) - For contactless payments using NFC technology.07: BLE (Bluetooth) - For payments made through Bluetooth Low Energy technology.08: UHF (Ultra High Frequency) - For payments made using UHF technology, typically for toll payments.09: Aadhaar - For payments authenticated using an Aadhaar number and biometric verification.10: SDK (Software Development Kit) - For payments initiated through an SDK embedded in an app.11: UPI-Mandate - For setting up recurring payments or mandates using UPI.12: FIR (Foreign Inward Remittance) - For receiving remittances from foreign countries.13: QR Mandate - For setting up recurring payments using a QR code.14: BBPS - For making bill payments through the Bharat Bill Payment System.
upi_purpose_code enumThe 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
01: SEBI02: AMC03: Travel04: Hospitality05: Hospital06: Telecom07: Insurance08: Education09: Gifting10: BBPS11: Global UPI12: Metro ATM QR13: Non-metro ATM QR14: Standing Instruction15: Corporate disbursement
upi_reference_category *
stringThe 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
00: NULL01: Advertisement02: Invoice
upi_reference_url stringIndicates a URL that, upon clicking, provides the customer with further transaction details such as bill details, bill copy, order copy, ticket details, and so on. When used, this URL should be related to the particular transaction and not be used to send unsolicited information irrelevant to the transaction.
request_adjustment_amountintegerComplaint amount in paisa.
request_adjustment_codestringNPCI-defined reason code for complaint.
request_adjustment_flagstringNPCI-defined flag associated with the complaint reason.
descriptionstringDescription for the complaint.
Response Parameters
entitystring Entity type. Here it is upi.complaint.
reference_idstringBusiness-generated complaint reference id.
upi_reference_idstringIdentifier returned by Razorpay for the complaint.
upi_transaction_idstringUPI transaction id related to the complaint.
upi_response_codestringCode returned by NPCI indicating complaint status.
upi_customer_reference_numberstringComplaint id shared by NPCI.
payeeobjectThe payee details.
Show child parameters (2)
descriptionstringAcknowledgement or status description.
statusstringIndicates the complaint status. Possible values:
initiatedactivecompletedpausedfailed
request_adjustment_amountintegerThe adjustment amount for the complaint, in paise.
request_adjustment_codestringCode representing complaint reason from NPCI.
request_adjustment_flagstringFlag associated with the complaint reason from NPCI.
Raise a Complaint
POST/v1/complaints/raiseClick to copy
Use this endpoint to register a complaint for a failed or unsatisfactory UPI transaction.
Is this page helpful?
Request Parameters
reference_id *
stringUnique id generated by the business for the complaint.
upi_transaction_id *
stringUnique transaction id on which the complaint is raised.
upi_original_transaction_id *
stringOriginal UPI transaction id used at the time of payment.
upi_initiation_mode enumIndicates the 2-digit code defined by NPCI. Possible values:
00: Default - When no specific code is assigned or for general default scenarios.01: QR Code - For making payments by scanning a standard QR code.02: Secure QR Code - For payments that require additional security with QR codes.03: Bharat QR Code - For interoperable payments across various payment networks using Bharat QR.04: Intent - For payments initiated by an intent from an application or browser.05: Secure Intent - For payments initiated by a secure intent from an app or browser.06: NFC (Near Field Communication) - For contactless payments using NFC technology.07: BLE (Bluetooth) - For payments made through Bluetooth Low Energy technology.08: UHF (Ultra High Frequency) - For payments made using UHF technology, typically for toll payments.09: Aadhaar - For payments authenticated using an Aadhaar number and biometric verification.10: SDK (Software Development Kit) - For payments initiated through an SDK embedded in an app.11: UPI-Mandate - For setting up recurring payments or mandates using UPI.12: FIR (Foreign Inward Remittance) - For receiving remittances from foreign countries.13: QR Mandate - For setting up recurring payments using a QR code.14: BBPS - For making bill payments through the Bharat Bill Payment System.
upi_purpose_code enumThe 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
01: SEBI02: AMC03: Travel04: Hospitality05: Hospital06: Telecom07: Insurance08: Education09: Gifting10: BBPS11: Global UPI12: Metro ATM QR13: Non-metro ATM QR14: Standing Instruction15: Corporate disbursement
upi_reference_category *
stringThe 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
00: NULL01: Advertisement02: Invoice
upi_reference_url stringIndicates a URL that, upon clicking, provides the customer with further transaction details such as bill details, bill copy, order copy, ticket details, and so on. When used, this URL should be related to the particular transaction and not be used to send unsolicited information irrelevant to the transaction.
request_adjustment_amountintegerComplaint amount in paisa.
request_adjustment_codestringNPCI-defined reason code for complaint.
request_adjustment_flagstringNPCI-defined flag associated with the complaint reason.
descriptionstringDescription for the complaint.
Response Parameters
entitystring Entity type. Here it is upi.complaint.
reference_idstringBusiness-generated complaint reference id.
upi_reference_idstringIdentifier returned by Razorpay for the complaint.
upi_transaction_idstringUPI transaction id related to the complaint.
upi_response_codestringCode returned by NPCI indicating complaint status.
upi_customer_reference_numberstringComplaint id shared by NPCI.
payeeobjectThe payee details.
Show child parameters (2)
descriptionstringAcknowledgement or status description.
statusstringIndicates the complaint status. Possible values:
initiatedactivecompletedpausedfailed
request_adjustment_amountintegerThe adjustment amount for the complaint, in paise.
request_adjustment_codestringCode representing complaint reason from NPCI.
request_adjustment_flagstringFlag associated with the complaint reason from NPCI.
Curl
1curl -X POST 'https://api.rzp.<bank>.com/v1/complaints/raise' \2-u [YOUR_KEY_id]:[YOUR_SECRET] \3-H "Content-type: application/json" \4-H "Authorization: Bearer <token>" \5-H "x-device-fingerprint: <device_fingerprint>" \6-H "x-device-fingerprint-timestamp: 1496918882000" \7-H "x-customer-reference: customer-id-from-customer" \8-d '{9"reference_id": "123214121",10"upi_transaction_id": "1234567890",11"upi_original_transaction_id": "1231312321412",12"upi_initiation_mode": "00",13"upi_purpose_code": "01",14"upi_reference_category": "00",15"upi_reference_url": "https://www.abcxyz.com/",16"request_adjustment_amount": "500",17"request_adjustment_code": "U010",18"request_adjustment_flag": "PBRB",19"description": "Amount not credited"20}'
Success
1{2"entity": "upi.complaint",3"reference_id": "123214121",4"upi_reference_id": "123214121",5"upi_transaction_id": "1234567890",6"upi_response_code": "01",7"upi_customer_reference_number": "123214121",8"payee": {9"vpa": "acme.corp@rzp",10"name": "AcmeCorp Pvt. Ltd."11},12"description": "Your Complaint is Raised",13"status": "initiated",14"request_adjustment_amount": "500",15"request_adjustment_code": "U010",16"request_adjustment_flag": "PBRB"17}