/v1/walletGet wallet balances
Balances in the platform currency (cents). Advertisers: spendable_cents funds new placements (available_cents less earnings still clearing or under dispute), reserved is held for approved placements and open-campaign escrow (marketplace fee included). Creators: pending_earnings settle when placements complete; withdrawable_cents (settled earnings not yet paid out or spent) can be paid out; clearing_cents is settled money that can't be yet because its advertiser had a recent card deposit, and next_clears_at is when the next part of it can. Deposits are never withdrawable. Each side's figures need that side's access, as in the app: the advertiser's (spendable_cents, reserved_cents and the lifetime spend, deposits and fees) billing.read or wallet.manage, the creator's (withdrawable, clearing, pending and lifetime earnings, pending payouts) earnings.read or payouts.manage. A key whose creator's role has neither side's tools sees only the workspace balance with billing.read, as the app's Wallet page shows it to them: available_cents and spendable_cents, and every other figure null. A side the key can't see, or the workspace doesn't run, comes back null (hidden, not zero); a key with neither gets 403.
curl "https://sqa.coboost.ai/api/v1/wallet" \
-H "Authorization: Bearer $COBOOST_API_KEY"{
"object": "wallet",
"currency": "USD",
"available_cents": 1250000,
"spendable_cents": 1250000,
"withdrawable_cents": 0,
"clearing_cents": 0,
"next_clears_at": null,
"reserved_cents": 90000,
"pending_payouts_cents": 0,
"pending_earnings_cents": 0,
"lifetime_earnings_cents": 0,
"lifetime_spend_cents": 310000,
"lifetime_deposits_cents": 1650000
}