Skip to main content
PUT
/
3p
/
api
/
v1
/
bank-account
/
switch
/
default
/
{user_uuid}
Switch default bank account ( STABLE )
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
}

Authorizations

Authorization
string
header
required

Sanctum token-based authentication using the Bearer scheme. This is provided by the GrailPay Customer Support Team

Path Parameters

user_uuid
string<uuid>
required

UUID of the user

Body

application/json

Switch default bank account

account_uuid
string<uuid>
required
aggregator_type
enum<string>
required
Available options:
plaid,
manual,
bank_link

Response

Default bank account updated successfully

status
boolean
Example:

true

message
string
Example:

"Default account is updated!"

data
string
Example:

null

errors
string
Example:

null

error_code
string
Example:

null