OverviewProductsPlatformsAPI ReferenceResources
Creator Campaigns

Create campaign adjustment

POSThttps://zernio.com/api/v1/creator-campaigns/{campaignId}/adjustments

Posts a manual adjustment to a participant's payable balance against the campaign budget: a positive amount credits the participant (a bonus), a negative one claws back. cause is kept on the ledger entry. A claw-back larger than the payable balance answers 409.

Authentication

AuthorizationBearer tokenRequired

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

Path parameters

campaignIdstringRequired

Campaign ID.

Body

application/json

What every request needs

participantIdstringRequired
amountCentsintegerRequired

Non-zero. Positive credits, negative claws back.

causestring, max 500Required

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

POST/v1/creator-campaigns/{campaignId}/adjustments
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.createCampaignAdjustment({  path: {    campaignId: 'campaign_abc123',  },  body: {    participantId: 'participant_abc123',    amountCents: 0,    cause: 'string',  },});console.log(data);
{  "entry": {    "id": "string",    "kind": "adjustment",    "participantId": "string",    "amountCents": 0,    "cause": "string",    "actor": "string",    "createdAt": "2019-08-24T14:15:22Z"  }}
OpenAPI specification
Was this page helpful?