OverviewProductsPlatformsAPI ReferenceResources
Ledger

List ledger entries

GEThttps://zernio.com/api/v1/ledger/entries

Lists ledger entries for your team, newest first.

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

Optional
scopeTypestring
scopeIdstring
kindstringOne of accrual | approval | hold_release | adjustment | settling | settlement | reversal | topup | transfer | fee | usage | grant
referenceTypestring
referenceIdstring
limitintegerDefault 50
skipintegerDefault 0

Responses

Success· the request worked

Errors· the request failed

How it behaves

Filters

  • scope (matches either side of the entry)
  • kind
  • the reference that caused the entry

Profile-scoped access

A profile-scoped key (or a member limited to some profiles) only sees entries of campaigns under its profiles and of their participants. Operator and platform scopes stay hidden from it.

GET/v1/ledger/entries
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.ledger.listLedgerEntries();console.log(data);
{  "entries": [    {      "id": "string",      "kind": "accrual",      "amountCents": 0,      "debit": {        "scopeType": "string",        "scopeId": "string",        "bucket": "string"      },      "credit": {        "scopeType": "string",        "scopeId": "string",        "bucket": "string"      },      "holdUntil": "2019-08-24T14:15:22Z",      "releasedByEntryId": "string",      "referenceType": "string",      "referenceId": "string",      "reversesEntryId": "string",      "cause": "string",      "actor": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "total": 0,    "limit": 0,    "skip": 0  }}
OpenAPI specification
Was this page helpful?