Bloss Docs

What a campaign owes each creator

Developers
GET
/brands/{brandId}/campaigns/{campaignId}/balances

Each creator's running balance in a campaign: earned, paid, owed now, and waiting (held by a trial, a cap or the budget), with the sets behind it, set by set. Read-only: paying and marking as paid happen in the app. A cycle from before campaigns is paid from its Payouts page, so paidHere is false and the list is empty: read it with the payout cycle operations.

Authorization

bearerAuth payouts:read
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write, campaigns:write.

Scope: payouts:read

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
campaignId*string

A campaign id from GET /brands/{brandId}/campaigns. A payout cycle id is the same id.

Length1 <= length

Response Body

Success.

application/json
  1. response
currency*string
paidHere*boolean

False for a cycle from before campaigns: its balances are in brand.payout-cycle.payouts.list.

timeZone*string
totals*
creators*array<>
curl -X GET 'https://example.com/api/v1/brands/string/campaigns/string/balances'
{  "currency": "USD",  "paidHere": true,  "timeZone": "string",  "totals": {    "earned": 0,    "paid": 0,    "owed": 0,    "waiting": 0,    "creatorsOwed": -9007199254740991  },  "creators": [    {      "creatorId": "string",      "name": "string",      "status": "string",      "earned": 0,      "paid": 0,      "owed": 0,      "waiting": 0,      "inFlight": true,      "sets": [        {          "setId": "string",          "day": "string",          "base": {            "earned": 0,            "paid": 0,            "owed": 0          },          "bonus": {            "earned": 0,            "paid": 0,            "owed": 0          },          "payable": 0,          "blocker": "string",          "final": true,          "estimated": true        }      ]    }  ]}

Was this page helpful?

Schedule, start, pause, end, close or delete a campaign POST

Run one campaign action, as the buttons on the campaign's page do. Only one campaign can be Live or Paused at a time: starting one while another runs needs `handover: true`, which ends the running one at the same moment. Days are YYYY-MM-DD in the brand's time zone; Start now, End now, Pause and Resume happen at the moment of the call. **Starting, ending and closing need a dry run first:** call with ?dryRun=true, check `from`, `to` and `changes` with the user, then call again with the same body and the `confirmToken` it returned. Without the token those actions answer 400; with a token from before the campaign changed, 409. A refusal answers 400, 404 or 409 with the sentence as the message and a stable code in `details.reason` (for example `needs_handover`, `overlaps_another`, `open_ended_running`, `payment_in_flight`, `sets_still_earning`, `has_payments`, `not_allowed`). Deleting a campaign that has started needs its name as `confirmName`; one that had money paid can't be deleted (close it instead). Full admins only. Returns the campaign, the states before and after, and `figuresStale` when the figures will catch up at the next sync.

Create a campaign POST

Save a new campaign as a draft. A draft reserves no dates and nothing counts toward it. It starts from simple starting rules, or from another campaign's rules with `copyFromCampaignId`; `rules` changes any of them. Its trial rule is the copied campaign's, or else the brand's default trial; `trial` says which. A copy also carries the pay the source campaign's groups and creators have only in that campaign (regular and trial), so they're paid the same in the new one until changed; a campaign not copied starts with none. With `then` it is also scheduled for a future day in the same call; if that is refused, the draft is kept and `notScheduled` says why. To start it, preview `start_now` with brand.campaigns.action and dryRun. Full admins only. Answers 201.