OverviewProductsPlatformsAPI ReferenceResources
Treasury

List top-ups

GEThttps://zernio.com/api/v1/balance/top-ups

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

Optional
limitintegerDefault 50
skipintegerDefault 0

Responses

Success· the request worked

Errors· the request failed

GET/v1/balance/top-ups
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.treasury.listTopups();console.log(data);
{  "topups": [    {      "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    }  ]}
OpenAPI specification
Was this page helpful?