cURL
curl --request PUT \ --url https://api.grailpay.com/3p/api/v1/bank-account/switch/default/{user_uuid} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "account_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "aggregator_type": "plaid" } '
{ "status": true, "message": "Default account is updated!", "data": null, "errors": null, "error_code": null }
Switch default bank account
Token-based authentication using Authorization: Bearer <YOUR_API_KEY> provided by the GrailPay Support Team.
UUID of the user
plaid
manual
bank_link
Default bank account updated successfully
true
"Default account is updated!"
null