Skip to main content
PATCH
/
payout-set-default
Set default payout account
curl --request PATCH \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/payout-set-default \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
'
{
  "success": true,
  "status": 200,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json
id
string<uuid>
required

ID of the payout account to make default

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Response

Default payout account updated

success
boolean
Example:

true

status
integer
Example:

200

data
object