# Get balance API Reference

Returns your team's balance:

- the balance pay-per-use draws on
- funds added but still waiting for payment
- your latest payments into the balance and payout batch payments

Funds added by card are in `availableCents` as soon as they are paid. The balance never pays creators: payouts are charged to your card per payout batch.

A card dispute or refund is debited from the available balance and can make it negative. New payout batches are refused until it is positive again.

A profile-scoped key answers 403, since the balance belongs to the whole team.


## GET /v1/balance

**Get balance**

Returns your team's balance:

- the balance pay-per-use draws on
- funds added but still waiting for payment
- your latest payments into the balance and payout batch payments

Funds added by card are in `availableCents` as soon as they are paid. The balance never pays creators: payouts are charged to your card per payout batch.

A card dispute or refund is debited from the available balance and can make it negative. New payout batches are refused until it is positive again.

A profile-scoped key answers 403, since the balance belongs to the whole team.


### Responses

#### 200: Balance in cents

**Response Body:**

- **availableCents** `integer`: Your balance. It goes negative after a dispute or refund of funds already spent, or when pay-per-use already in flight lands past zero. The next funds you add cover it. New payout batches are refused while it is negative.
- **balanceBilling** `boolean`: True when the account pays pay-per-use from this prepaid balance (new signups). Absent otherwise: that pay-per-use is on the monthly invoice.
- **spendableCents** `integer`: Balance billing only (absent otherwise). What pay-per-use can still spend: availableCents plus promoCents plus bonusCents, minus usage not yet posted. At 0 or below, new pay-per-use answers 402 `insufficient_balance`.
- **promoCents** `integer`: Balance billing only (absent otherwise). Promotional and support credit Zernio added to your balance. Pay-per-use spends it before availableCents. It is never paid out to payees and is not part of availableCents.
- **bonusCents** `integer`: Balance billing only (absent otherwise). Bonus credit in the balance, usually 0. Pay-per-use spends it after availableCents. It is not cash, never paid out or refunded, and not part of availableCents.
- **held** `object`: Balance billing only (absent otherwise). First months set aside from availableCents for phone numbers under review (KYC). Billed when the number activates, returned if it is declined. Not part of availableCents or spendableCents.
  - **cents** (required) `integer`: Total held, in USD cents.
  - **count** (required) `integer`: Numbers with a held first month.
- **payoutLockedCents** `integer`: Always 0. The balance no longer pays creators, so none of it is locked from them.
- **payoutLocks** `array[object]`: Always empty. The balance no longer pays creators.
  - **topupId** (required) `string`: No description
  - **amountCents** (required) `integer`: No description
  - **chargedAt** (required) `string` (date-time): No description
  - **unlocksAt** (required) `string` (date-time): From this time transfers can use it: 7 days after the charge.
- **pendingCents** `integer`: Card top-ups paid before 2026-10-29 that were held and are moving to availableCents (within the hour). Always 0 after that.
- **pendingReleases** `array[object]`: The held card top-ups behind pendingCents.
  - **topupId** (required) `string`: No description
  - **amountCents** (required) `integer`: Net amount that moves to availableCents.
  - **availableAt** (required) `string` (date-time): No description
- **pendingTopupCents** `integer`: Top-ups started but not paid yet.
- **currency** `string`: No description - one of: usd
- **recentTopups** `array[TreasuryTopup]`: 
- **recentCreditRecharges** `array[object]`: Balance billing only (absent otherwise). The 10 newest auto top-ups paid from the account credit you held when you moved to the balance, newest first. Nothing was charged to your card and there is no invoice. The amount was added to promoCents with the credit's own expiry.
  - **id** (required) `string`: No description
  - **amountCents** (required) `integer`: Credit added to promoCents.
  - **createdAt** (required) `string` (date-time): No description

#### 402: Payment method or enterprise contract required: the authenticated account hit a billing gate before the connection could proceed. Switch on `reason` to render the right prompt:

- `free_tier_exceeded`: the team has connected more accounts than the free tier allows. Add a payment method to continue (billed per additional connected account).
- `twitter_passthrough`: connecting an X account requires a card on file, even the 1st one, because X API calls are passed through per call. Prepaid-balance accounts never get it: they pay X calls from the balance.
- `enterprise_required`: the team's enterprise contract sets a connected-account cap and it has been reached. Self-service teams have NO cap (the $1/account rate continues at any scale). The user already has a card on file; this gate is about contract terms.
- `card_verification_required`: the card on file was flagged at add time (prepaid, or issued in a different country than the billing address). A one-time verification charge of `details.verification_amount_cents` (USD) is pending; it is credited to the team's usage balance, not a fee.

**What to do:** redirect the end-user to `dashboard_url`.

- `free_tier_exceeded`, `twitter_passthrough`, `card_verification_required`: it opens the Zernio billing page (the add-payment-method drawer, or the verification step). The request succeeds once the card is on file (or verified, or paid).
- `enterprise_required`: it opens the enterprise contact form (not the billing tab), to adjust the contract's limit.


**Response Body:**

- **error** (required) `string`: Human-readable error message suitable for end-user display. (example: "X (Twitter) requires a payment method due to API pass-through costs. Add a payment method to connect an X account.")
- **code** (required) `string`: Machine-readable error code. Stable across versions. - one of: PAYMENT_REQUIRED
- **reason** (required) `string`: Discriminator for which gate fired. - one of: free_tier_exceeded, twitter_passthrough, enterprise_required, card_verification_required
- **documentation_url** `string` (uri): Link to the relevant documentation page. (example: "https://docs.zernio.com/pricing/payment-method-required")
- **dashboard_url** `string` (uri): Deep-link to send the end-user to. For
`free_tier_exceeded` and `twitter_passthrough` this opens
the add-payment-method drawer on the Zernio billing page.
For `enterprise_required` this is the Zernio enterprise
contact page.
 (example: "https://zernio.com/dashboard/billing?add_payment_method=1")
- **details** `object`: Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
  - **free_tier_account_limit** `integer`: How many accounts the free tier allows. Only set when reason=free_tier_exceeded. (example: 2)
  - **current_account_count** `integer`: How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required. (example: 5)
  - **has_payment_method** `boolean`: Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
  - **verification_amount_cents** `integer`: One-time card verification charge in USD cents, credited to usage. Only set when reason=card_verification_required. (example: 1000)
  - **effective_account_limit** `integer`: The negotiated connected-account cap from the
team's enterprise contract. Self-service teams
have no cap and never receive this reason. Only
set when reason=enterprise_required.
 (example: 2000)

#### 403: The API key is a restricted key (zrk_ prefix) and may not perform this operation. Three cases:

1. The operation's resource group (see the operation's x-resource-group) is disabled on the key. Fix: create a key with the group enabled in the dashboard API keys tab and revoke the old one.
2. The operation is admin-plane (x-resource-group admin-plane: API keys, invites, connected apps, member identity), never grantable to restricted keys. The error reads "Restricted API keys cannot manage API keys, invites, or member identity." Fix: a full-access key or the dashboard, never a new restricted key.
3. On webhook subscription writes, delivery-log reads and replays, a named event maps to a resource group the key does not hold. A restricted key can never create or edit a subscription broader than itself (a no-messages key cannot subscribe to, test-fire, redeliver or read logs for message.* events).


**Response Body:**

- **error** `string`: No description (example: "This API key has the 'messages' resource group disabled. GET /api/v1/inbox/conversations requires it. Create a key with 'messages' enabled in the dashboard API keys tab.")
- **code** `string`: No description - one of: insufficient_permissions, unclassified_resource
- **required_group** `string`: The resource group the key needs for this operation. Absent on admin-plane and unclassified-path denials. - one of: publishing, engagement, messages, contacts, analytics, ads, telephony, accounts, billing, webhooks, commerce, creator_campaigns, money, calendar, files

---


# Related Schema Definitions

## TreasuryTopup

### Properties

- **id** `string`: No description
- **method** `string`: No description - one of: card, bank_transfer
- **purpose** `string`: `balance` funds your balance; `payout_batch` is the card payment of one payout batch, which pays its creators directly. - one of: balance, payout_batch
- **payoutBatch** `object,null`: The payout batch this payment paid for; null for a balance top-up.
- **feeCoveredByZernio** `boolean`: True for a balance top-up (there is no card fee) and a `payout_batch` payment: Zernio pays the Stripe processing fee, so you are credited the whole charge. False on a top-up made before 2026-11-05.
- **amountCents** `integer`: The amount you asked for. A top-up credits exactly this and charges it plus tax (taxCents). Top-ups from 2026-11-02 to 2026-11-05 charged a card fee on top and credited what Stripe delivered; older ones charged this amount and credited it minus the fee.
- **feeCents** `integer,null`: Card fee you paid: 0 when Zernio covers it (feeCoveredByZernio). On an older top-up, the fee Stripe took once paid, the fee charged on top before, or null.
- **taxCents** `integer`: Tax charged on top of amountCents once paid (VAT where it applies, since 2026-11-05); 0 before payment, when reverse charged, outside the EU, and on older top-ups.
- **chargedCents** `integer`: What your card was charged: amountCents plus taxCents, or amountCents plus the card fee on a top-up from 2026-11-02 to 2026-11-05.
- **stripeFeeCents** `integer,null`: feeCents once the top-up is paid; null before. Kept for older clients: read feeCents.
- **netCents** `integer,null`: Amount credited to your balance; null until paid. amountCents when feeCoveredByZernio; on an older top-up, what Stripe delivered.
- **status** `string`: `pending` until the card is charged (or 3D Secure is finished) and credited. `expired` means it ended unpaid: cancelled, or 3D Secure left unfinished for 30 minutes. Only `pending` counts toward pendingTopupCents. - one of: pending, succeeded, failed, expired
- **createdAt** `string`: No description
- **succeededAt** `string,null`: No description
- **hasInvoice** `boolean`: The paid payment has an invoice (getTopupInvoice): every balance top-up paid since 2026-11-05 (unless charged without one for a Stripe credit balance), and Checkout payments before 2026-10-29. Every paid payment has a card receipt (getTopupReceipt).
- **bonusCents** `integer,null`: Bonus credit added with this payment and not taken back, in cents. Null when there is none.