Edit Virtual Account

ℹī¸

URLs

📘

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 CodeStatusMessage
200SUCCESSVirtual account details updated.
403ERRORVirtual account is not active.
422ERRORPlease pass a valid remitter Ifsc.
Language
Click Try It! to start a request and see the response here!

Experience the all-new Cashfree Payments Docs! Faster, smarter, and easier to navigate. Check it out here!🎉