post https://cac-api.cashfree.com/cac/v1/changeVAStatus
Use this API to change virtual account status from ACTIVE to INACTIVE and vice-versa.
URLs
- Production/Live: https://cac-api.cashfree.com/cac/v1/changeVAStatus
- Sandbox/Test: <https://cac-gamma.cashfree.com/cac/v1/changeVAStatus
Request and Response Sample Code
Status:200
{
"vAccountId":"cashfreetest",
"status":"INACTIVE"
}
{
"status": "SUCCESS",
"subCode": "200",
"message": "Vitual account status updated succesfully"
}
Status:403
{
"vAccountId":"abcd123",
"status":"ACTIVE"
}
{
"status": "ERROR",
"subCode": "403",
"message": "Virtual account not found with given id"
}
Status:422
{
"vAccountId":"cashfreetest",
"status":"ACTIVATE"
}
{
"status": "ERROR",
"subCode": "422",
"message": "Please provide a valid status"
}