OverviewProductsPlatformsAPI ReferenceResources
Creator Campaigns

Settle campaign participant

POSThttps://zernio.com/api/v1/creator-campaigns/{campaignId}/participants/{participantId}/settle

Records a payout of the participant's payable balance and fires campaign_payout.settled. No money moves through Zernio.

Omit amountCents to settle the whole payable balance. An amount above it answers 400, and nothing payable answers 409. Send an Idempotency-Key so a retry never records the payout twice.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

campaignIdstringRequired

Campaign ID.

participantIdstringRequired

Participant ID.

Body

application/json
Optional parameters3 fields
amountCentsinteger

Defaults to the whole payable balance.

externalReferencestring, max 200

Your payout id. Required when the campaign settles externally.

recordOnlyboolean

Treasury campaigns only, and required there: record a payout you already made outside Zernio. Ignored on other settlement modes, which always record.

Headers

Optional
Idempotency-Keystring, max 255

Optional client-generated unique key (e.g. a UUID) that makes retries safe.

  • Same key + same body: replays the original response.
  • Same key + different body: 422.
  • Key still processing: 409.

A request cut off mid-handler (e.g. by a function timeout) can leave its key in progress, answering 409 until the key expires after 24 hours.

On the Ads create, boost and duplicate endpoints, a same-body retry runs again once the cut-off request started more than 15 minutes ago.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Settlement modes

  • none settlement: records a payout you made elsewhere.
  • external settlement: pay from your own rails when campaign_payout.payable fires, then call this with your payout id in externalReference (required in this mode).
  • treasury settlement: send recordOnly: true to record a payout you made yourself (the webhook then carries recorded: true). Without it the call answers 409: Zernio pays creators of these campaigns by card with POST /v1/creator-campaigns/{campaignId}/payout-batches, never from your balance.
POST/v1/creator-campaigns/{campaignId}/participants/{participantId}/settle
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.settleCampaignParticipant({  path: {    campaignId: 'campaign_abc123',    participantId: 'participant_abc123',  },  body: {    amountCents: 1,    externalReference: 'string',    recordOnly: false,  },});console.log(data);
{  "settlement": {    "entryId": "string",    "participantId": "string",    "amountCents": 0,    "externalReference": "string",    "payableCents": 0,    "settledAt": "2019-08-24T14:15:22Z",    "transferId": "string",    "feeCents": 0,    "totalCents": 0  }}
OpenAPI specification
Was this page helpful?