Skip to content

Balance

examples/curl/payouts/get-balance.sh
#!/usr/bin/env bash
# The project's balance: available, pending, reserved, outgoing.
set -euo pipefail
. "$(dirname "$0")/../signed-request.sh"
mka_request GET "/v1/balance"

One entry per currency — LKR — never converted or summed:

Figure Holds
available What payouts, refunds and withdrawals may spend now. Below zero only when a reserve was set after the money was spent.
pending Succeeded payments not yet credited.
reserved What the rolling reserve holds; next_release_at and next_release say when and how much comes back next. Already out of available.
outgoing Open payouts with their fees, refunds and withdrawals. Already out of available.

A payout or a refund holds its money from available the moment you create it; a failed or cancelled one gives it back. Check available before a large payout to avoid 422 insufficient_available_balance.

These are the same figures as the console’s balance screen.