API Test Keys
Fetch a Customer Identifier Using ID With TPV
GET/v1/virtual_accounts/:idClick to copy
Use this endpoint to fetch a Customer Identifier using id.
Is this page helpful?
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X GET \3https://api.razorpay.com/v1/virtual_accounts/va_D6Vw6zyJ0OmRZg \
Success
Failure
1{2"id": "va_D6Vw6zyJ0OmRZg",3"name": "Acme Corp",4"entity": "virtual_account",5"status": "active",6"description": "Customer Identifier for Raftar Soft",7"amount_expected": 5000,8"notes": [],9"amount_paid": null,10"customer_id": "cust_9xnHzNGIEY4TAV",11"receivers": [12{13"id": "ba_D6Vw76RrHA3DC9",14"entity": "bank_account",15"ifsc": "RATN0VAAPIS",16"bank_name": "RBL Bank",17"name": "Acme Corp",18"notes": [],19"account_number": "2223330025991681"20}21],22"allowed_payers": [23{24"type": "bank_account",25"id":"ba_DlGmm9mSj8fjRM",26"bank_account": {27"ifsc": "UTIB0000013",28"account_number": "914010012345679"29}30},31{32"type": "bank_account",33"id":"ba_Cmtnm5tSj6agUW",34"bank_account": {35"ifsc": "UTIB0000014",36"account_number": "914010012345680"37}38}39],40"close_by": null,41"closed_at": 1568109789,42"created_at": 156593903643}
Path Parameters
id *
stringThe unique identifier of the Customer Identifier whose details are to be fetched.
Response Parameters
idstringThe unique identifier of the Customer Identifier.
namestring The merchant billing label as it appears on the Dashboard.
entitystring Indicates the type of entity. Here, it is virtual account.
statusstring Indicates whether the Customer Identifier is in active or closed state.
descriptionstringA brief description about the Customer Identifier.
amount_expectedintegerThe amount expected by the merchant.
amount_paidintegerThe amount paid by the customer into the Customer Identifier.
notesjson objectAny custom notes you might want to add to the Customer Identifier can be entered here. Check the
to know more.customer_idstringUnique identifier of the customer the Customer Identifier is linked with. Check the
section to know more.receiversjson objectConfiguration of desired receivers for the Customer Identifier.
Show child parameters (7)
allowed_payersarrayDetails of customer bank accounts which will be allowed to make payments to your Customer Identifier. The parent parameter under which the customer bank account details must be passed as child parameters. You can add account details of 10 allowed payers for a Customer Identifier. For more details, refer to the
section.Show child parameters (3)
close_byinteger UNIX timestamp at which the Customer Identifier is scheduled to be automatically closed. The time must be at least 15 minutes after current time. The date range can be set till 2147483647 in UNIX timestamp format (equivalent to Tuesday, January 19, 2038 8:44:07 AM GMT+05:30). Any request beyond 2147483647 UNIX timestamp will fail.
closed_atintegerUNIX timestamp at which the Customer Identifier is automatically closed.
created_atintegerUNIX timestamp at which the Customer Identifier was created.
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 a Customer Identifier Using ID With TPV
GET/v1/virtual_accounts/:idClick to copy
Use this endpoint to fetch a Customer Identifier using id.
Is this page helpful?
Path Parameters
id *
stringThe unique identifier of the Customer Identifier whose details are to be fetched.
Response Parameters
idstringThe unique identifier of the Customer Identifier.
namestring The merchant billing label as it appears on the Dashboard.
entitystring Indicates the type of entity. Here, it is virtual account.
statusstring Indicates whether the Customer Identifier is in active or closed state.
descriptionstringA brief description about the Customer Identifier.
amount_expectedintegerThe amount expected by the merchant.
amount_paidintegerThe amount paid by the customer into the Customer Identifier.
notesjson objectAny custom notes you might want to add to the Customer Identifier can be entered here. Check the
to know more.customer_idstringUnique identifier of the customer the Customer Identifier is linked with. Check the
section to know more.receiversjson objectConfiguration of desired receivers for the Customer Identifier.
Show child parameters (7)
allowed_payersarrayDetails of customer bank accounts which will be allowed to make payments to your Customer Identifier. The parent parameter under which the customer bank account details must be passed as child parameters. You can add account details of 10 allowed payers for a Customer Identifier. For more details, refer to the
section.Show child parameters (3)
close_byinteger UNIX timestamp at which the Customer Identifier is scheduled to be automatically closed. The time must be at least 15 minutes after current time. The date range can be set till 2147483647 in UNIX timestamp format (equivalent to Tuesday, January 19, 2038 8:44:07 AM GMT+05:30). Any request beyond 2147483647 UNIX timestamp will fail.
closed_atintegerUNIX timestamp at which the Customer Identifier is automatically closed.
created_atintegerUNIX timestamp at which the Customer Identifier was created.
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/virtual_accounts/va_D6Vw6zyJ0OmRZg \
Success
Failure
1{2"id": "va_D6Vw6zyJ0OmRZg",3"name": "Acme Corp",4"entity": "virtual_account",5"status": "active",6"description": "Customer Identifier for Raftar Soft",7"amount_expected": 5000,8"notes": [],9"amount_paid": null,10"customer_id": "cust_9xnHzNGIEY4TAV",11"receivers": [12{13"id": "ba_D6Vw76RrHA3DC9",14"entity": "bank_account",15"ifsc": "RATN0VAAPIS",16"bank_name": "RBL Bank",17"name": "Acme Corp",18"notes": [],19"account_number": "2223330025991681"20}21],22"allowed_payers": [23{24"type": "bank_account",25"id":"ba_DlGmm9mSj8fjRM",26"bank_account": {27"ifsc": "UTIB0000013",28"account_number": "914010012345679"29}30},31{32"type": "bank_account",33"id":"ba_Cmtnm5tSj6agUW",34"bank_account": {35"ifsc": "UTIB0000014",36"account_number": "914010012345680"37}38}39],40"close_by": null,41"closed_at": 1568109789,42"created_at": 156593903643}