Programmatic Payouts to User Wallets
Automatically create customer wallets and initiate server-led USD→USDC transfers for bulk payouts and rewards distribution
Summary
Programmatically create Customers (wallets) and initiate USD→USDC transfers on behalf of each recipient; redirect each to a signed checkout URL. Post-completion, show balances and trigger business logic. KYC/compliance is handled by Swipelux.
Problem → Solution mapping
Pain | Capability | Mechanism |
---|---|---|
Need wallets for recipients | Customers API | POST /v1/customers |
Push funds reliably | Server-led transfer | POST /v1/transfers → sourceInstructions.signedUrl |
Event safety | Webhooks + verify | HMAC signature + REST GET /v1/transfers/{id} |
Architecture
Implementation steps
Webhooks (subscribe, validate, verify)
Re-fetch and mark delivered only if state=="completed".
UX choices
If recipients are often returning, embedded widget minimizes friction using saved KYC/payment.
KPIs
Completion rate per batch; time to funds available; KYC retry rate.
Limits & caveats
USD→USDC only. Funding is via card checkout per recipient (today). Use REST as source of truth.
Troubleshooting
If a user doesn't complete checkout, state remains awaiting_funds; implement reminders and expiration.