Skip to main content
POST
/
wallet-topup
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/wallet-topup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 50000
}
'
{
  "success": true,
  "status": 201,
  "data": {
    "transaction_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "amount": 50000,
    "currency": "NGN",
    "status": "success",
    "reference": "topup_abc12345_1713484800000"
  }
}

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
amount
number<double>
required

Amount to top up in NGN. Minimum NGN 100.

Example:

50000

card_id
string<uuid>

ID of a saved card to charge. Omit to use the default card.

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Response

Top-up initiated — wallet credited if charge succeeded synchronously

success
boolean
Example:

true

status
integer
Example:

201

data
object