Remove campaign participant
Removes the participant from the campaign. Their earnings stay in the ledger. Removing an already removed participant returns it unchanged.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Campaign ID.
Participant ID.
Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.creatorcampaigns.removeCampaignParticipant({ path: { campaignId: 'campaign_abc123', participantId: 'participant_abc123', },});console.log(data);{ "participant": { "id": "string", "campaignId": "string", "creator": { "id": "string", "displayName": "string", "email": "string" }, "status": "invited", "joinedAt": "2019-08-24T14:15:22Z", "accounts": [ { "accountId": "string", "verifiedAt": "2019-08-24T14:15:22Z", "platform": "string", "username": "string" } ], "balances": { "accruing": 0, "owed": 0, "payable": 0, "settling": 0, "settled": 0 }, "flags": [ { "code": "linked_accounts", "detail": "string", "raisedAt": "2019-08-24T14:15:22Z" } ], "submissionCounts": { "received": 0, "tracking": 0, "pending_review": 0, "approved": 0, "rejected": 0, "expired": 0, "withdrawn": 0 }, "payout": { "status": "not_started" } }}Reject campaign submission
Rejects a submission (also one already approved) and fires `campaign_submission.rejected`. Its tracking window is cancelled and its unsettled earnings return to the campaign budget. Rejecting a rejected submission returns it unchanged; an expired or withdrawn one answers 409.
Reopen campaign submission
Puts a rejected submission back to `pending_review` so it can be decided again. Its tracking window resumes, so it works only while that window has not ended; otherwise 409 `invalid_resource_state` ("This post's tracking window has ended."). A post that earned money which was already paid out cannot be reopened, and neither can a post of a closed campaign. Reopening a submission that is already `pending_review` returns it unchanged; any other status answers 409. No webhook fires.