Skip to main content
POST
/
escrow-fund
curl --request POST \ --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/escrow-fund \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "escrow_id": "d4e5f6a7-b8c9-0123-defa-234567890123", "payment_method": "wallet" } '
{ "success": true, "status": 200, "data": { "status": "funded", "escrow_id": "d4e5f6a7-b8c9-0123-defa-234567890123" } }

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
escrow_id
string<uuid>
required
payment_method
enum<string>
required
Available options:
wallet,
saved_card,
bank_transfer
card_id
string<uuid>

Required when payment_method is saved_card.

Response

Payment initiated or completed

success
boolean
Example:

true

status
integer
Example:

200

data
Funded (wallet or saved_card) · object

wallet and saved_card are synchronous — escrow is funded immediately. bank_transfer is asynchronous — returns DVA details; escrow activates on Paystack webhook.