API Test Keys
Close a Customer Identifier
POST
/v1/virtual_accounts/:id/close
Click to copy
Use this endpoint to close a Customer Identifier.
Is this page helpful?
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X POST https://api.razorpay.com/v1/virtual_accounts/va_Di5gbNptcWV8fQ/close
Success
1{2"id":"va_Di5gbNptcWV8fQ",3"name":"Acme Corp",4"entity":"virtual_account",5"status":"closed",6"description":"Customer Identifier created for M/S ABC Exports",7"amount_expected":230000,8"notes":{9"material":"teakwood"10},11"amount_paid":239000,12"customer_id":"cust_DOMUFFiGdCaCUJ",13"receivers":[14{15"id":"ba_Di5gbQsGn0QSz3",16"entity":"bank_account",17"ifsc":"RATN0VAAPIS",18"bank_name": "RBL Bank",19"name":"Acme Corp",20"notes":[],21"account_number":"1112220061746877"22}23],24"allowed_payers": [25{26"type": "bank_account",27"id":"ba_DlGmm9mSj8fjRM",28"bank_account": {29"ifsc": "UTIB0000013",30"account_number": "914010012345679"31}32},33{34"type": "bank_account",35"id":"ba_Cmtnm5tSj6agUW",36"bank_account": {37"ifsc": "UTIB0000014",38"account_number": "914010012345680"39}40}41],42"close_by":1574427237,43"closed_at":1574164078,44"created_at":157414351745}
Path Parameters
id
*
string
The unique identifier of the Customer Identifier that is to be closed.
Response Parameters
id
string
The unique identifier of the Customer Identifier.
name
string
The merchant billing label
as it appears on the Dashboard.
entity
string
Indicates the type of entity. Here, it is virtual account
.
status
string
Indicates whether the Customer Identifier is in active
or closed
state.
description
string
A brief description about the Customer Identifier.
amount_expected
integer
The amount expected by the merchant.
amount_paid
integer
The amount paid by the customer into the Customer Identifier.
notes
json object
Any custom notes you might want to add to the Customer Identifier can be entered here. Check the
to know more.customer_id
string
Unique identifier of the customer the Customer Identifier is linked with. Check the
section to know more.receivers
json object
Configuration of desired receivers for the Customer Identifier.
Show child parameters (7)
allowed_payers
array
Details 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_by
integer
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_at
integer
UNIX timestamp at which the Customer Identifier is automatically closed.
created_at
integer
UNIX timestamp at which the Customer Identifier was created.
Close a Customer Identifier
POST
/v1/virtual_accounts/:id/close
Click to copy
Use this endpoint to close a Customer Identifier.
Is this page helpful?
Path Parameters
id
*
string
The unique identifier of the Customer Identifier that is to be closed.
Response Parameters
id
string
The unique identifier of the Customer Identifier.
name
string
The merchant billing label
as it appears on the Dashboard.
entity
string
Indicates the type of entity. Here, it is virtual account
.
status
string
Indicates whether the Customer Identifier is in active
or closed
state.
description
string
A brief description about the Customer Identifier.
amount_expected
integer
The amount expected by the merchant.
amount_paid
integer
The amount paid by the customer into the Customer Identifier.
notes
json object
Any custom notes you might want to add to the Customer Identifier can be entered here. Check the
to know more.customer_id
string
Unique identifier of the customer the Customer Identifier is linked with. Check the
section to know more.receivers
json object
Configuration of desired receivers for the Customer Identifier.
Show child parameters (7)
allowed_payers
array
Details 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_by
integer
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_at
integer
UNIX timestamp at which the Customer Identifier is automatically closed.
created_at
integer
UNIX timestamp at which the Customer Identifier was created.
1curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \2-X POST https://api.razorpay.com/v1/virtual_accounts/va_Di5gbNptcWV8fQ/close
Success
1{2"id":"va_Di5gbNptcWV8fQ",3"name":"Acme Corp",4"entity":"virtual_account",5"status":"closed",6"description":"Customer Identifier created for M/S ABC Exports",7"amount_expected":230000,8"notes":{9"material":"teakwood"10},11"amount_paid":239000,12"customer_id":"cust_DOMUFFiGdCaCUJ",13"receivers":[14{15"id":"ba_Di5gbQsGn0QSz3",16"entity":"bank_account",17"ifsc":"RATN0VAAPIS",18"bank_name": "RBL Bank",19"name":"Acme Corp",20"notes":[],21"account_number":"1112220061746877"22}23],24"allowed_payers": [25{26"type": "bank_account",27"id":"ba_DlGmm9mSj8fjRM",28"bank_account": {29"ifsc": "UTIB0000013",30"account_number": "914010012345679"31}32},33{34"type": "bank_account",35"id":"ba_Cmtnm5tSj6agUW",36"bank_account": {37"ifsc": "UTIB0000014",38"account_number": "914010012345680"39}40}41],42"close_by":1574427237,43"closed_at":1574164078,44"created_at":157414351745}