post https://cac-api.cashfree.com/cac/v1/editVA
URLs
- Production/Live: https://cac-api.cashfree.com/cac/v1/editVA
- Sandbox/Test: https://cac-gamma.cashfree.com/cac/v1/editVA
minAmount and maxAmount
- In the Edit Virtual Account request, if only minAmount or maxAmount is provided, the given value should be <= existing maxAmount or >= existing minAmount value for that virtual account.
- The default values 0 - 1000000000 is applicable if minAmount and MaxAmount are not applicable for a virtual account.
For example, a Virtual Account has (min,max) as (5,10).
New Edit Virtual Account request with only maxAmount as 4 will return 422 error.
Similarly, Edit Virtual Account request with only minAmount as 11 will return 422.
Request and Response Sample Code
Status: 200
{
"vAccountId":"VATEST",
"name":"TestVendor",
"phone":"9900111111",
"email":"[email protected]",
"remitterAccount" : "123456789",
"remitterIfsc":"HDFC0000549"
}
{
"status": "SUCCESS",
"subCode": "200",
"message": "Virtual account details updated"
}
Status: 403
{
"vAccountId":"VATEST1",
"name":"TestVendor",
"phone":"9876543210",
"email":"[email protected]"
}
{
"status": "ERROR",
"subCode": "403",
"message": "Virtual account is not active"
}
Status: 422
{
"vAccountId":"VATEST1",
"name":"TestVendor",
"phone":"9876543210",
"email":"[email protected]",
"remitterAccount" : "123456789",
"remitterIfsc":"ABC012434"
}
{
"status": "ERROR",
"subCode": "422",
"message": "Please pass a valid remitter Ifsc"
}
Response Codes
Sub Code | Status | Message |
---|---|---|
200 | SUCCESS | Virtual account details updated. |
403 | ERROR | Virtual account is not active. |
422 | ERROR | Please pass a valid remitter Ifsc. |