curl -X POST 'api.rzp.<bank>.com/v1/payments/collect' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"reference_id": "RSKwpINfSkdEvtdxf",
"upi_initiation_mode": "00",
"upi_purpose_code": "00",
"upi_reference_url": "https://www.test.com",
"upi_reference_category": "00",
"device": {
"geocode": "1234.1213",
"ip": "198.1.1.1"
},
"currency": "INR",
"amount": 100,
"description": "UPI transaction",
"payer": {
"vpa": "7262093972.stage@rzp"
},
"payees": [
{
"vpa": "9560137963.stage@rzp"
}
],
"expire_at": 150603365
}'
{
"entity":"upi.payment",
"upi_transaction_id":"RZPc2ed455b797e4add8392110cfc528acc",
"reference_id":"ord_somfv432nsa",
"upi_customer_reference_number":"804813039157",
"upi_reference_url":"https://www.test.com",
"upi_reference_category":"00",
"upi_initiation_mode":"00",
"upi_purpose_code":"00",
"currency":"INR",
"amount":10024,
"type":"pay | collect",
"description":"flight tickets",
"payer":{
"vpa":"gaurav.kumar@exampleupi",
"fundsource":{
"ifsc":"AXIS0000058",
"masked_account_number":"XXXXXXXXXXX3000"
},
"name":"Gaurav Kumar",
"mcc":"0000",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
},
"payees":[
{
"vpa":"acme.corp@rzp",
"fundsource":{
"ifsc":"HDFC0000058",
"masked_account_number":"XXXXXXXXXXX6000"
},
"name":"AcmeCorp Pvt. Ltd.",
"mcc":"6765",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
}
],
"status":"initiated| success | failed",
"created_at":"1722317078",
"expire_at":"1722317078"
}
Collect a Payment
Collect a payment using the Razorpay API.
POST
/
v1
/
payments
/
collect
curl -X POST 'api.rzp.<bank>.com/v1/payments/collect' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"reference_id": "RSKwpINfSkdEvtdxf",
"upi_initiation_mode": "00",
"upi_purpose_code": "00",
"upi_reference_url": "https://www.test.com",
"upi_reference_category": "00",
"device": {
"geocode": "1234.1213",
"ip": "198.1.1.1"
},
"currency": "INR",
"amount": 100,
"description": "UPI transaction",
"payer": {
"vpa": "7262093972.stage@rzp"
},
"payees": [
{
"vpa": "9560137963.stage@rzp"
}
],
"expire_at": 150603365
}'
{
"entity":"upi.payment",
"upi_transaction_id":"RZPc2ed455b797e4add8392110cfc528acc",
"reference_id":"ord_somfv432nsa",
"upi_customer_reference_number":"804813039157",
"upi_reference_url":"https://www.test.com",
"upi_reference_category":"00",
"upi_initiation_mode":"00",
"upi_purpose_code":"00",
"currency":"INR",
"amount":10024,
"type":"pay | collect",
"description":"flight tickets",
"payer":{
"vpa":"gaurav.kumar@exampleupi",
"fundsource":{
"ifsc":"AXIS0000058",
"masked_account_number":"XXXXXXXXXXX3000"
},
"name":"Gaurav Kumar",
"mcc":"0000",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
},
"payees":[
{
"vpa":"acme.corp@rzp",
"fundsource":{
"ifsc":"HDFC0000058",
"masked_account_number":"XXXXXXXXXXX6000"
},
"name":"AcmeCorp Pvt. Ltd.",
"mcc":"6765",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
}
],
"status":"initiated| success | failed",
"created_at":"1722317078",
"expire_at":"1722317078"
}
Available in🇮🇳 India
UPI allows a customer or a payee to request a payment from another person or entity. This API is the same as the make payments API. The type of payment changes to collect and no credentials are required to be captured by the customer requesting the payment. Use this endpoint to collect a payment.
curl -X POST 'api.rzp.<bank>.com/v1/payments/collect' \
-u [YOUR_KEY_ID]:[YOUR_SECRET] \
-H "Content-type: application/json" \
-H "x-device-fingerprint: <device_fingerprint>" \
-H "x-device-fingerprint-timestamp: 1496918882000" \
-H "x-customer-reference: customer-id-from-customer" \
-d '{
"reference_id": "RSKwpINfSkdEvtdxf",
"upi_initiation_mode": "00",
"upi_purpose_code": "00",
"upi_reference_url": "https://www.test.com",
"upi_reference_category": "00",
"device": {
"geocode": "1234.1213",
"ip": "198.1.1.1"
},
"currency": "INR",
"amount": 100,
"description": "UPI transaction",
"payer": {
"vpa": "7262093972.stage@rzp"
},
"payees": [
{
"vpa": "9560137963.stage@rzp"
}
],
"expire_at": 150603365
}'
{
"entity":"upi.payment",
"upi_transaction_id":"RZPc2ed455b797e4add8392110cfc528acc",
"reference_id":"ord_somfv432nsa",
"upi_customer_reference_number":"804813039157",
"upi_reference_url":"https://www.test.com",
"upi_reference_category":"00",
"upi_initiation_mode":"00",
"upi_purpose_code":"00",
"currency":"INR",
"amount":10024,
"type":"pay | collect",
"description":"flight tickets",
"payer":{
"vpa":"gaurav.kumar@exampleupi",
"fundsource":{
"ifsc":"AXIS0000058",
"masked_account_number":"XXXXXXXXXXX3000"
},
"name":"Gaurav Kumar",
"mcc":"0000",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
},
"payees":[
{
"vpa":"acme.corp@rzp",
"fundsource":{
"ifsc":"HDFC0000058",
"masked_account_number":"XXXXXXXXXXX6000"
},
"name":"AcmeCorp Pvt. Ltd.",
"mcc":"6765",
"upi_response_code":"00",
"upi_reversal_response_code":"string"
}
],
"status":"initiated| success | failed",
"created_at":"1722317078",
"expire_at":"1722317078"
}
Request Parameters
Indicates the transaction ID used by merchants for their reference. It is used at the business level and not in the UPI ecosystem. This value should be alphanumeric and between 1 and 35 characters.
Indicates the 2-digit code defined by NPCI present in the intent URL or QR codes. 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.
The 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
Indicates 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.
The 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
00: NULL01: Advertisement02: Invoice
Response Parameters
Indicates the transaction ID used by merchants for their reference. It is used at the business level and not in the UPI ecosystem. This value should be alphanumeric and between 1 and 35 characters.
Indicates 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.
The 2-digit code defined by NPCI present in the intent URL or QR codes. Possible values:
00: NULL01: Advertisement02: Invoice
Indicates the 2-digit code defined by NPCI present in the intent URL or QR codes. 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.
The 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
Last modified on November 27, 2026
Was this page helpful?