OverviewProductsPlatformsAPI ReferenceResources
Treasury

Get balance

GEThttps://zernio.com/api/v1/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.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Responses

Success· the request worked

Errors· the request failed

GET/v1/balance
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.treasury.getBalance();console.log(data);
{  "availableCents": 0,  "balanceBilling": true,  "spendableCents": 0,  "promoCents": 0,  "held": {    "cents": 0,    "count": 0  },  "payoutLockedCents": 0,  "payoutLocks": [    {      "topupId": "string",      "amountCents": 0,      "chargedAt": "2019-08-24T14:15:22Z",      "unlocksAt": "2019-08-24T14:15:22Z"    }  ],  "pendingCents": 0,  "pendingReleases": [    {      "topupId": "string",      "amountCents": 0,      "availableAt": "2019-08-24T14:15:22Z"    }  ],  "pendingTopupCents": 0,  "currency": "usd",  "recentTopups": [    {      "id": "string",      "method": "card",      "purpose": "balance",      "payoutBatch": {        "id": "string",        "campaignId": "string"      },      "feeCoveredByZernio": true,      "amountCents": 0,      "feeCents": 0,      "taxCents": 0,      "chargedCents": 0,      "stripeFeeCents": 0,      "netCents": 0,      "status": "pending",      "createdAt": "2019-08-24T14:15:22Z",      "succeededAt": "2019-08-24T14:15:22Z",      "hasInvoice": true    }  ],  "recentCreditRecharges": [    {      "id": "string",      "amountCents": 0,      "createdAt": "2019-08-24T14:15:22Z"    }  ]}
OpenAPI specification
Was this page helpful?