Add Account

This api links the customer bank account to vpas (ONE_TO_MANY mapping). In case the vpa does not exist, same will be created.

If primaryAccountMapping is ONE_TO_ALL then account in request will be set primary for all vpas of a customer. If primaryAccountMapping is NONE then account in request will not be set primary for vpa passed in request.

Additionally, if setAsDefaultBank is passed as "true", then the account becomes default for the customer and all his vpas. All incoming payments to any of the customer vpas will be credited to this account.

API Endpoints
Production Link
POST
http://{{host}}/api/{uri}/merchants/accounts/add
Headers
Body
200 : Success