API Test Keys
Fetch Payment Details Using ID and Transfer Method
GET
/v1/payments/:id/bank_transfer
Click 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.
Watch Out!
Smart Collect is not available in Malaysia.
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
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
*
string
The unique identifier of the payment made to the Customer Identifier.
Response Parameters
id
string
Unique identifier of the payment.
entity
string
Indicates the type of entity.
amount
integer
The payment amount in currency subunits. For example, for an amount of MYRÂ 1.00 enter 100.
currency
string
The currency in which the payment is made.
status
string
The status of the payment. Possible values:
created
authorized
captured
refunded
failed
method
string
The payment method used for making the payment. Possible values:
card
fpx
wallet
order_id
string
Order id, if provided. Know more about
.description
string
Description of the payment, if any.
amount_expected
integer
The amount expected by the merchant.
international
boolean
Indicates whether the payment is done via an international card or a domestic one.
refund_status
string
The refund status of the payment. Possible values:
null
partial
full
amount_refunded
integer
The amount refunded in currency subunits. For example, if amount_refunded = 100
, it is equal to MYRÂ 1.00.
captured
boolean
Indicates if the payment is captured.
email
string
Customer email address used for the payment.
contact
string
Customer contact number used for the payment.
fee
integer
Fee (including tax) charged by Curlec.
tax
integer
Tax charged for the payment.
error_code
string
Error that occurred during payment. For example, BAD_REQUEST_ERROR
.
error_description
string
Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP
.
error_source
string
The point of failure. For example, customer
.
error_step
string
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_reason
string
The exact error reason. For example, incorrect_otp
.
notes
json object
Contains user-defined fields, stored for reference purposes.
created_at
integer
Timestamp, in UNIX format, on which the payment was created.
card_id
string
The unique identifier of the card used by the customer to make the payment.
card
object
Details of the card used to make the payment.
Show child parameters (8)
bank
string
The 4-character bank code which the customer's account is associated with.
wallet
string
The name of the wallet used by the customer to make the payment. For example, grabpay
.
acquirer_data
array
A dynamic array consisting of a unique reference number.
Show child parameters (2)
Fetch Payment Details Using ID and Transfer Method
GET
/v1/payments/:id/bank_transfer
Click 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.
Watch Out!
Smart Collect is not available in Malaysia.
Is this page helpful?
Path Parameters
id
*
string
The unique identifier of the payment made to the Customer Identifier.
Response Parameters
id
string
Unique identifier of the payment.
entity
string
Indicates the type of entity.
amount
integer
The payment amount in currency subunits. For example, for an amount of MYRÂ 1.00 enter 100.
currency
string
The currency in which the payment is made.
status
string
The status of the payment. Possible values:
created
authorized
captured
refunded
failed
method
string
The payment method used for making the payment. Possible values:
card
fpx
wallet
order_id
string
Order id, if provided. Know more about
.description
string
Description of the payment, if any.
amount_expected
integer
The amount expected by the merchant.
international
boolean
Indicates whether the payment is done via an international card or a domestic one.
refund_status
string
The refund status of the payment. Possible values:
null
partial
full
amount_refunded
integer
The amount refunded in currency subunits. For example, if amount_refunded = 100
, it is equal to MYRÂ 1.00.
captured
boolean
Indicates if the payment is captured.
email
string
Customer email address used for the payment.
contact
string
Customer contact number used for the payment.
fee
integer
Fee (including tax) charged by Curlec.
tax
integer
Tax charged for the payment.
error_code
string
Error that occurred during payment. For example, BAD_REQUEST_ERROR
.
error_description
string
Description of the error that occurred during payment. For example, Payment processing failed because of incorrect OTP
.
error_source
string
The point of failure. For example, customer
.
error_step
string
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_reason
string
The exact error reason. For example, incorrect_otp
.
notes
json object
Contains user-defined fields, stored for reference purposes.
created_at
integer
Timestamp, in UNIX format, on which the payment was created.
card_id
string
The unique identifier of the card used by the customer to make the payment.
card
object
Details of the card used to make the payment.
Show child parameters (8)
bank
string
The 4-character bank code which the customer's account is associated with.
wallet
string
The name of the wallet used by the customer to make the payment. For example, grabpay
.
acquirer_data
array
A dynamic array consisting of a unique reference number.
Show child parameters (2)
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X GET \3https://api.razorpay.com/v1/payments/pay_CmiztqmYJPtDAu/bank_transfer \
Success
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}