API Test Keys
Fetch Payment Details Using ID and Transfer Method With TPV
GET/v1/payments/:id/bank_transferClick to copy
Use this endpoint to fetch payment details for a bank transfer. If Razorpay does not receive the bank account information of the customer from the remitting bank, the payer_bank_account parameter will be set to null.
Is this page helpful?
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X GET \3https://api.razorpay.com/v1/payments/pay_CmiztqmYJPtDAu/bank_transfer \
Success
Failure
1{2"id": "bt_Di5iqCElVyRlCb",3"entity": "bank_transfer",4"payment_id": "pay_Di5iqCqA1WEHq6",5"mode": "NEFT",6"bank_reference": "157414364471",7"amount": 239000,8"payer_bank_account": {9"id": "ba_Di5iqSxtYrTzPU",10"entity": "bank_account",11"ifsc": null,12"bank_name": null,13"name": "Acme Corp",14"notes": [],15"account_number": "765432123456789"16},17"virtual_account_id": "va_Di5gbNptcWV8fQ",18"virtual_account": {19"id": "va_Di5gbNptcWV8fQ",20"name": "Acme Corp",21"entity": "virtual_account",22"status": "closed",23"description": "Customer Identifier created for M/S ABC Exports",24"amount_expected": 2300,25"notes": {26"material": "teakwood"27},28"amount_paid": 239000,29"customer_id": "cust_DOMUFFiGdCaCUJ",30"receivers": [31{32"id": "ba_Di5gbQsGn0QSz3",33"entity": "bank_account",34"ifsc": "RATN0VAAPIS",35"bank_name": "RBL Bank",36"name": "Acme Corp",37"notes": [],38"account_number": "1112220061746877"39}40],41"allowed_payers": [42{43"type": "bank_account",44"id":"ba_DlGmm9mSj8fjRM",45"bank_account": {46"ifsc": "UTIB0000013",47"account_number": "914010012345679"48}49},50{51"type": "bank_account",52"id":"ba_Cmtnm5tSj6agUW",53"bank_account": {54"ifsc": "UTIB0000014",55"account_number": "914010012345680"56}57}58],59"close_by": 1574427237,60"closed_at": 1574164078,61"created_at": 157414351762}63}
Path Parameters
id *
stringThe unique identifier of the payment made to the Customer Identifier.
Response Parameters
idstringUnique identifier of the payment.
entitystringIndicates the type of entity.
amountintegerThe payment amount in currency subunits. For example, for an amount of RMÂ 1.00 enter 100.
currencystringThe currency in which the payment is made.
statusstringThe status of the payment. Possible values:
createdauthorizedcapturedrefundedfailed
methodstringThe payment method used for making the payment. Possible values:
cardfpxwallet
order_idstringOrder id, if provided. Know more about
.descriptionstringDescription of the payment, if any.
amount_expectedintegerThe amount expected by the merchant.
internationalbooleanIndicates whether the payment is done via an international card or a domestic one. Possible values:
true: Payment made using international card.false: Payment not made using international card.
refund_statusstringThe refund status of the payment. Possible values:
nullpartialfull
amount_refundedinteger The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to RMÂ 1.00.
capturedbooleanIndicates if the payment is captured. Possible values:
true: Payment has been captured.false: Payment has not been captured.
emailstringCustomer email address used for the payment.
contactstringCustomer contact number used for the payment.
feeintegerFee (including tax) charged by Razorpay Curlec.
taxintegerTax charged for the payment.
error_codestring Error that occurred during payment. For example, BAD_REQUEST_ERROR.
error_descriptionstring Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.
error_sourcestring The point of failure. For example, customer.
error_stepstring The stage where the transaction failure occurred. The stages can vary depending on the payment method used to complete the transaction. For example, payment_authentication.
error_reasonstring The exact error reason. For example, incorrect_otp.
notesjson objectContains user-defined fields, stored for reference purposes.
created_atintegerTimestamp, in UNIX format, on which the payment was created.
card_idstringThe unique identifier of the card used by the customer to make the payment.
cardobjectDetails of the card used to make the payment.
Show child parameters (8)
bankstringThe 4-character bank code which the customer's account is associated with.
walletstring The name of the wallet used by the customer to make the payment. For example, grabpay.
acquirer_dataarrayA dynamic array consisting of a unique reference number.
Show child parameters (2)
Errors
The API <key/secret> provided is invalid.
Error Status: 4xx
Occurs when there is a mismatch between the API credentials passed in the API call and the API credentials generated on the dashboard.
Solution
Fetch Payment Details Using ID and Transfer Method With TPV
GET/v1/payments/:id/bank_transferClick to copy
Use this endpoint to fetch payment details for a bank transfer. If Razorpay does not receive the bank account information of the customer from the remitting bank, the payer_bank_account parameter will be set to null.
Is this page helpful?
Path Parameters
id *
stringThe unique identifier of the payment made to the Customer Identifier.
Response Parameters
idstringUnique identifier of the payment.
entitystringIndicates the type of entity.
amountintegerThe payment amount in currency subunits. For example, for an amount of RMÂ 1.00 enter 100.
currencystringThe currency in which the payment is made.
statusstringThe status of the payment. Possible values:
createdauthorizedcapturedrefundedfailed
methodstringThe payment method used for making the payment. Possible values:
cardfpxwallet
order_idstringOrder id, if provided. Know more about
.descriptionstringDescription of the payment, if any.
amount_expectedintegerThe amount expected by the merchant.
internationalbooleanIndicates whether the payment is done via an international card or a domestic one. Possible values:
true: Payment made using international card.false: Payment not made using international card.
refund_statusstringThe refund status of the payment. Possible values:
nullpartialfull
amount_refundedinteger The amount refunded in currency subunits. For example, if amount_refunded = 100, it is equal to RMÂ 1.00.
capturedbooleanIndicates if the payment is captured. Possible values:
true: Payment has been captured.false: Payment has not been captured.
emailstringCustomer email address used for the payment.
contactstringCustomer contact number used for the payment.
feeintegerFee (including tax) charged by Razorpay Curlec.
taxintegerTax charged for the payment.
error_codestring Error that occurred during payment. For example, BAD_REQUEST_ERROR.
error_descriptionstring Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP.
error_sourcestring The point of failure. For example, customer.
error_stepstring The stage where the transaction failure occurred. The stages can vary depending on the payment method used to complete the transaction. For example, payment_authentication.
error_reasonstring The exact error reason. For example, incorrect_otp.
notesjson objectContains user-defined fields, stored for reference purposes.
created_atintegerTimestamp, in UNIX format, on which the payment was created.
card_idstringThe unique identifier of the card used by the customer to make the payment.
cardobjectDetails of the card used to make the payment.
Show child parameters (8)
bankstringThe 4-character bank code which the customer's account is associated with.
walletstring The name of the wallet used by the customer to make the payment. For example, grabpay.
acquirer_dataarrayA dynamic array consisting of a unique reference number.
Show child parameters (2)
Errors
The API <key/secret> provided is invalid.
Error Status: 4xx
Occurs when there is a mismatch between the API credentials passed in the API call and the API credentials generated on the dashboard.
Solution
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X GET \3https://api.razorpay.com/v1/payments/pay_CmiztqmYJPtDAu/bank_transfer \
Success
Failure
1{2"id": "bt_Di5iqCElVyRlCb",3"entity": "bank_transfer",4"payment_id": "pay_Di5iqCqA1WEHq6",5"mode": "NEFT",6"bank_reference": "157414364471",7"amount": 239000,8"payer_bank_account": {9"id": "ba_Di5iqSxtYrTzPU",10"entity": "bank_account",11"ifsc": null,12"bank_name": null,13"name": "Acme Corp",14"notes": [],15"account_number": "765432123456789"16},17"virtual_account_id": "va_Di5gbNptcWV8fQ",18"virtual_account": {19"id": "va_Di5gbNptcWV8fQ",20"name": "Acme Corp",21"entity": "virtual_account",22"status": "closed",23"description": "Customer Identifier created for M/S ABC Exports",24"amount_expected": 2300,25"notes": {26"material": "teakwood"27},28"amount_paid": 239000,29"customer_id": "cust_DOMUFFiGdCaCUJ",30"receivers": [31{32"id": "ba_Di5gbQsGn0QSz3",33"entity": "bank_account",34"ifsc": "RATN0VAAPIS",35"bank_name": "RBL Bank",36"name": "Acme Corp",37"notes": [],38"account_number": "1112220061746877"39}40],41"allowed_payers": [42{43"type": "bank_account",44"id":"ba_DlGmm9mSj8fjRM",45"bank_account": {46"ifsc": "UTIB0000013",47"account_number": "914010012345679"48}49},50{51"type": "bank_account",52"id":"ba_Cmtnm5tSj6agUW",53"bank_account": {54"ifsc": "UTIB0000014",55"account_number": "914010012345680"56}57}58],59"close_by": 1574427237,60"closed_at": 1574164078,61"created_at": 157414351762}63}