# Creator campaigns

Pay creators for verified views. Create a campaign, invite creators, review their posts and pay what they earned with one card payment.

Pay creators for platform-verified views. You set rate and budget, creators submit posts, you approve and pay.

## Before you start

- **Usage-based billing.** Other workspaces get `403 feature_not_available`.
- **A profile id** for the campaign.
- **To pay** through Zernio: the owner or a billing admin, with a full-access API key.

## Step 1: Create the campaign

Amounts are USD cents.

```bash
curl -X POST https://zernio.com/api/v1/creator-campaigns \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "PROFILE_ID",
    "name": "Launch clips",
    "brandName": "Acme",
    "platforms": ["tiktok", "instagram"],
    "settlement": "treasury",
    "economics": { "type": "cpm", "ratePer1kCents": 100, "minViewsToEarn": 1000, "budgetCents": 100000 }
  }'
```

- **`settlement: "treasury"`** pays through Zernio, `external` your own rails, `none` only records.
- **Starts as a draft.** Activate with `POST /v1/creator-campaigns/{campaignId}/activate`.
- **Pay on engagements instead.** Add `"metric": "engagements"` to a `cpm` economics to pay per 1,000 likes, comments, shares and saves. Pick some with `"engagementTypes": ["comments", "shares"]`. `minViewsToEarn` then counts engagements.

## Step 2: Invite creators

The response carries the creator's personal link.

```bash
curl -X POST https://zernio.com/api/v1/creator-campaigns/CAMPAIGN_ID/participants \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "displayName": "Cleo", "email": "cleo@example.com" }'
```

- **Open link:** `POST /v1/creator-campaigns/{campaignId}/invite-link`; each joiner gets their own link.
- **On the link** creators connect accounts read-only and submit post URLs. `campaign_participant.joined` fires on join.
- **Approve who joins.** Set `"joinApproval": "manual"` and open-link joiners wait as `pending` (`campaign_participant.pending`). Accept with `POST /v1/creator-campaigns/{campaignId}/participants/{participantId}/approve` or turn down with `.../deny`. Pending creators do not count toward `caps.maxParticipants` until approved. Personal invites skip the wait.
- **Accounts.** Creators can connect more than one account per platform, up to `caps.maxAccountsPerParticipant`, and remove one. Removing it keeps what its posts earned; it is refused while a post from it is still counting views.
- **Payout setup.** On a Zernio balance campaign creators can set up payouts from the moment they join. Earnings wait until it is done.
- **Wrong campaign?** `POST /v1/creator-campaigns/{campaignId}/participants/{participantId}/move` with `targetCampaignId` moves the creator, their link and fitting posts. It is refused once any money touched them.

## Step 3: Review submissions

Zernio tracks each post for the tracking window, scores authenticity and flags oddities, but never rejects. List pending:

```bash
curl "https://zernio.com/api/v1/creator-campaigns/CAMPAIGN_ID/submissions?status=pending_review" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```

- **Approve:** `POST .../submissions/{submissionId}/approve`.
- **Reject:** `POST .../submissions/{submissionId}/reject` with a `reason` the creator sees.

Approved earnings are held (10 days by default), then become payable and `campaign_payout.payable` fires.

- **Review drafts first.** With `"requireDraftApproval": true`, creators upload their cut before posting. List with `GET /v1/creator-campaigns/{campaignId}/drafts`, then `POST .../drafts/{draftId}/approve`, `.../request-revision` (notes, each with an optional `atMs` moment of the video) or `.../reject`. A post must then carry the `draftId` of an approved draft, one post per draft.
- **Send samples.** Set `storeAccountId` (a connected Shopify or WooCommerce store, the same one a commission campaign pays on) and `sampleProductIds`. Creators request one from their link. `POST /v1/creator-campaigns/{campaignId}/samples/{sampleId}/approve` creates a single-use, 100% off code for that product in your store, then mark it `.../ship` or `.../decline` it with a reason.

## Step 4: Pay creators by card

One card payment covers all or some payable creators: what they are owed plus a 4% fee, at least $0.50 per creator. VAT applies to the fee only. Payouts are never paid from your balance.

Preview the charge first with `POST /v1/creator-campaigns/{campaignId}/payout-batches/preview` (same body, charges nothing).

```bash
curl -X POST https://zernio.com/api/v1/creator-campaigns/CAMPAIGN_ID/payout-batches \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "participantIds": ["PARTICIPANT_ID"] }'
```

- **Who:** omit `participantIds` for everyone payable; `excludeParticipantIds` leaves some out.
- **Charge:** Zernio charges your saved card at once, with no redirect. You get one invoice per batch: the payouts, collected and paid in your name, and the fee with its VAT.
- **Hold:** card payments are held 7 days against chargebacks (`releasesAt`). Then Zernio pays each creator and fires `campaign_payout.settled` per creator.
- **3D Secure:** `payment.status: "requires_action"` means the bank wants the payer to confirm. Finish with Stripe.js `handleNextAction({ clientSecret })`, then `POST /v1/payout-batches/{batchId}/confirm`. The dashboard does this for you.
- **Read:** `GET /v1/payout-batches/{batchId}`. Creators without payout setup are skipped, still payable.
- **Cancel:** `POST /v1/payout-batches/{batchId}/cancel` makes creators payable again at once. One left unconfirmed is cancelled after 30 minutes.

## Step 5: Or record your own payout

```bash
curl -X POST https://zernio.com/api/v1/creator-campaigns/CAMPAIGN_ID/participants/PARTICIPANT_ID/settle \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Idempotency-Key: payout-cleo-2026-10" \
  -H "Content-Type: application/json" \
  -d '{ "recordOnly": true, "externalReference": "PayPal, Oct 3" }'
```

No money moves through Zernio. On a campaign paid through Zernio, `settle` without `recordOnly` answers `409`: pay with a payout batch.

## Run creator posts as ads

Launch approved posts as Meta or TikTok ads, then see which creators drive results. Needs ads access on your workspace.

```bash
curl -X POST https://zernio.com/api/v1/creator-campaigns/CAMPAIGN_ID/ads/launch \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "submissionIds": ["SUBMISSION_ID"],
    "network": "meta",
    "accountId": "FACEBOOK_ACCOUNT_ID",
    "adAccountId": "act_123",
    "adSetId": "120200000000000",
    "identity": "brand"
  }'
```

- **Meta:** ads go into an existing ad set (`adSetId`). `identity: "brand"` runs the post media under your Page. `identity: "creator"` runs an Instagram post as a Partnership Ad under the creator's handle; it is a limited release for now, so most workspaces launch with brand identity.
- **TikTok:** send `network: "tiktok"`, `identity: "creator"`, an existing `existingCampaignId` and a `dailyBudget`. Each post becomes a Spark Ad in its own ad group. The creator first pastes the post's Spark code on their campaign page (`hasSparkCode` turns true).
- **Safe to retry.** Each post answers its own `outcome`. A post already launched into the same ad set or campaign is never launched twice. Ads start `PAUSED` unless you send `"status": "ACTIVE"`.
- **Results:** `GET /v1/creator-campaigns/CAMPAIGN_ID/ad-results?rankBy=roas` returns spend, purchases, ROAS and CPA per post, and the creators ranked by `spend`, `roas` or `purchases`. Your other ads that run the same post count too.
- **Pay on ad results.** Set `economics.type` to `ad_performance` to pay creators a share of spend or purchase value (`rateBps`), or an amount per purchase, click or 1,000 impressions (`centsPerUnit`). Earnings count once a day through the previous UTC day. Only Instagram, Facebook and TikTok.

## Pay a retainer

A retainer pays a set amount per period once the creator has enough approved posts.

```json
{ "type": "retainer", "amountCents": 50000, "period": "month", "requiredApprovedPosts": 4, "budgetCents": 500000 }
```

- **Periods.** `week` (Monday 00:00 UTC), `month` (the 1st) or `once`. A period is paid within a day after it ends, into the creator's approved earnings, then held like any approval.
- **One time.** `"period": "once"` pays as soon as the posts are approved.
- **Smart retainer.** `"mode": "smart"` with a `commission` block guarantees `amountCents` per period: whatever commission the creator earned in the period is topped up to it. A smart one-time retainer is settled when the campaign ends.

## Pay commission on sales

Link a connected Shopify or WooCommerce store and pay creators a share of the sales they bring in.

```json
{
  "economics": { "type": "commission", "percentOfSalesBps": 1500, "perOrderCents": 200, "attribution": "code_or_link", "budgetCents": 1000000 },
  "storeAccountId": "STORE_ACCOUNT_ID",
  "codeDiscountPercent": 15,
  "landingUrl": "https://shop.example.com/products/serum"
}
```

- **Codes.** Each creator gets their own discount code on your store (`codeDiscountPercent` off, once per buyer), created when they open their page.
- **Links.** Each creator's link is `landingUrl` with `utm_source=zernio&utm_medium=creator&utm_campaign=CAMPAIGN_ID&utm_content=PARTICIPANT_ID`.
- **Credit.** A creator's code wins; otherwise the order's last click. `attribution` can be `code` or `link` to use one only.
- **What counts.** Items after discounts, before shipping and tax. Refunds take commission back; a cancelled or fully refunded order earns nothing.
- **Refund window.** Commission is approved on its own once `holdDays` passed since the order.
- **Orders.** `GET /v1/creator-campaigns/{campaignId}/orders` lists credited orders and every creator's code and link.
- **Shopify** order data needs Shopify's approval of the Zernio app for orders before it works on live stores.

## Pay automatically

On a campaign that pays through Zernio (`settlement: "treasury"`), set `"autoPayout": { "enabled": true, "cadence": "weekly" }` (or `daily`). At 15:00 UTC (Mondays for weekly) Zernio pays every ready creator in one payout batch.

- **On your card.** The batch is charged to your saved card, like paying by hand: creators are paid 7 days later, with the same fee and invoice.
- **Refused card.** If the bank declines or wants to confirm the payment, nothing is charged, creators stay payable and we email you.
- **Who can turn it on.** The owner, or a billing admin with a full-access key, with a card saved.

## How it behaves

- **Platforms.** TikTok, Instagram, YouTube, Facebook, X, Threads and Pinterest. Creators connect each account read-only: Zernio reads posts and views, never posts.
- **Pinterest:** only video pins have views, so image pins earn nothing on a CPM campaign.
- **Facebook:** creators connect a Page and submit its reels and videos (`facebook.com/reel/...`, `/videos/...`, `fb.watch`). Other Facebook posts have no view count and are refused.
- **X:** views are the post's impressions. X bills each post read (about $0.005 per tracked post per day), at cost.
- **X read budget.** `caps.maxXReadSpendCents` (default $50) caps that per campaign. Once spent, X posts stop counting views and carry the `x_read_cap` flag.
- **Verified views only.** Only views Zernio fetched from the platform earn.
- **Posts after the start.** A post must be published after the campaign started: `startsAt`, or when you activated it if it has no start date. An earlier post is refused at submission.
- **Post age.** Any age by default. Set `maxPostAgeMinutes` to also refuse posts submitted longer than that after publishing.
- **All views count,** including views from before the creator submitted. `minViewsToEarn`, `maxPayoutPerClipCents` and the budget still apply.
- **Organic views only.** Set `"organicViewsOnly": true` on a `cpm` (views) or `pool` economics so views from ads the creator ran do not earn. Works only when every campaign platform is YouTube or X.
- **Views from ads.** On YouTube and X, each submission carries `viewsPaid`. On an organic-only campaign it is flagged `paid_views` when ads drove views. YouTube reports ad views up to 2 days late; X stops reporting them 30 days after posting, and the last number stays.
- **Engagements** are the picked `engagementTypes`, as each platform reports them. YouTube reports likes and comments only, Facebook and Threads have no saves, Pinterest reports saves only. The metric is fixed once the campaign leaves draft.
- **Duplicates.** A post submitted twice, or to two campaigns, is flagged `duplicate_post`.
- **No creator accounts.** Creators get no Zernio account; their profiles stay out of your profile list and plan.
- **Card limit:** $10,000 per rolling 30 days to start. Beyond it, ask support.

## If it fails

| Error | Cause | Fix |
|---|---|---|
| `403 feature_not_available` | Not on usage-based billing. | Switch to it. |
| `403` on a payout | Role cannot move money, or key lacks full access. | Owner or billing admin, full-access key. |
| Launch `outcome: "failed"` | The post is not approved, has no Spark code, or runs on the other network. | Read `error` on that post, fix it, and launch it again. |
| `402 payment_required` | Over the instant card payout limit, or your balance is negative after a dispute. | Ask support to raise the limit, or add funds to cover the dispute. |
| `400 invalid_billing_address` | Stripe cannot place your billing address, so it cannot tax the fee. | Add your billing address in Billing. |
| `409` on settle | The campaign pays through Zernio. | Pay with a payout batch, or send `recordOnly: true`. |
| `403` on approve | The campaign is full. | Raise `caps.maxParticipants`, or remove someone. |
| `409` on a draft or sample | It was already decided. | Read it again. A draft with changes requested gets a new version from the creator. |
| `400` on `storeAccountId` | A commission or smart retainer campaign without a store, or a store change on a live one. | Link a Shopify or WooCommerce store; change it only while the campaign is a draft. |

## Related

- [Creator payouts pricing](/pricing/creator-payouts)
- [Creator campaign webhooks](/webhooks/creator-campaigns)
- [Idempotency](/guides/idempotency)