Skip to main content
POST
/
payout-add
Add payout account
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/payout-add \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bank_code": "044",
  "bank_name": "Access Bank",
  "account_number": "0123456789",
  "account_name": "Ade Johnson"
}
'
{
  "success": true,
  "status": 201,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "bank_name": "Access Bank",
    "bank_code": "044",
    "account_number": "******6789",
    "account_name": "Ade Johnson",
    "is_default": false,
    "verified": true
  }
}

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
bank_code
string
required
Example:

"044"

bank_name
string
required
Example:

"Access Bank"

account_number
string
required
Minimum string length: 10
Example:

"0123456789"

account_name
string
required
Example:

"Ade Johnson"

Response

Payout account saved

success
boolean
Example:

true

status
integer
Example:

201

data
object