OverviewProductsPlatformsAPI ReferenceResources
Creator Campaigns

List campaign ledger

GEThttps://zernio.com/api/v1/creator-campaigns/{campaignId}/ledger

Lists ledger entries, newest first.

Without participantId it lists every entry of the campaign:

  • earnings drawn from the budget (accruals, per-post payments, pool shares, adjustments)
  • the approvals, hold releases and settlements that move money between its participants' buckets
  • their reversals

Pass participantId to narrow the list to one participant's entries.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

campaignIdstringRequired

Campaign ID.

Query parameters

Optional
participantIdstring

List only this participant's entries.

kindstringOne of accrual | approval | hold_release | adjustment | settling | settlement | reversal | topup | transfer | fee | usage | grant
limitintegerDefault 50
skipintegerDefault 0

Responses

Success· the request worked

Errors· the request failed

GET/v1/creator-campaigns/{campaignId}/ledger
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.listCampaignLedger({  path: {    campaignId: 'campaign_abc123',  },});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",      "reversesEntryId": "string",      "referenceType": "string",      "referenceId": "string",      "cause": "string",      "externalReference": "string",      "actor": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "total": 0,    "limit": 0,    "skip": 0  }}
OpenAPI specification
Was this page helpful?