Overview
The Wallet and Payouts APIs enable merchants to manage their wallet balance, view payout history, and track scheduled payouts. Wallets store funds from successful payments, and payouts transfer those funds to your bank account.
Key Concepts
- Wallet: A merchant's account that holds payment funds
- Available Balance: Funds ready for transfer
- Pending Balance: Funds from payments not yet settled
- Payout: Scheduled transfer of wallet funds to bank
- Payout Schedule: When payouts are processed (e.g., weekly)
Quick Start
Step 1: Get Wallet Balance
Code
Step 2: List Payouts
Code
Step 3: Get Payout Schedule
Code
API Reference
Get Wallet
GET /api/wallet/{id}
Code
Get Wallet Balance
GET /api/wallet/{id}/balance
Code
List Payouts
GET /api/payout?payout_status=deposited&sort_by=created_at&order=desc&limit=20
Query Parameters
| Parameter | Type | Description |
|---|---|---|
payout_status | string | pending, on_hold, in_transit, deposited, returned, cancelled |
sort_by | string | created_at or net_amount |
order | string | asc or desc |
limit | number | 1-100, default 10 |
after | string | Pagination cursor |
Get Payout Detail
GET /api/payout/{id}
Get Payout Transactions
GET /api/payout/{id}/transactions
Get Payout Schedule
GET /api/payout/schedule/{merchantId}
SDK Reference
WalletResource
| Method | Description |
|---|---|
get(id) | Get wallet account details |
getBalance(id) | Get available and pending balance |
transfer(walletId, data) | Create wallet transfer |
listTransfers(walletId, options?) | List wallet transfers |
getTransfer(walletId, transferId) | Get specific transfer |
PayoutResource
| Method | Description |
|---|---|
list(options?) | List payouts with filters |
get(id) | Get payout details |
getTransactions(id, options?) | Get payout transactions |
getSchedule(merchantId) | Get payout schedule |
Error Handling
| Error | Cause | Solution |
|---|---|---|
Wallet not found | Invalid wallet ID | Verify wallet ID exists |
Insufficient available balance | Balance too low for transfer | Wait for funds to settle |
Invalid access token | Expired JWT | Refresh authentication |
Best Practices
- Check wallet balance before initiating transfers
- Use pagination for large payout lists
- Monitor payout schedules to predict fund availability
- Implement webhook handlers for payout status updates
- Track
pending_balancefor cash flow forecasting
Related Guides:
- Transfers Guide - For sending funds
- SDK Wallets - For SDK method details
Last modified on
