Delete Virtual Account
Close and delete a virtual account.
Closes a virtual account so it can no longer receive deposits.
Endpoint
DELETE /v1/virtual-accounts/:accountNumberAuthentication
API key only (JWT not accepted). This route uses the API-key guard exclusively.
Header
Value
Authorization
<api_key>
Path parameters
Parameter
Type
Description
accountNumber
string
Virtual account number
Example request
curl -X DELETE https://ramp-api.ivorypay.io/api/v1/virtual-accounts/9900123456 \
-H "Authorization: your_api_key"const response = await fetch("https://ramp-api.ivorypay.io/api/v1/virtual-accounts/9900123456", {
method: "DELETE",
headers: {
"Authorization": "your_api_key",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.delete(
"https://ramp-api.ivorypay.io/api/v1/virtual-accounts/9900123456",
headers={
"Authorization": "your_api_key",
},
)
print(response.json())Example response
The data payload echoes the (now INACTIVE) VirtualAccount row.
Last updated