Bloss Docs

Set a creator's own trial pay

Developers
PATCH
/brands/{brandId}/creators/{creatorId}/trial-pay

A creator's own trial pay. How trial sets are paid at this level: inherit (no setting), normal, no_pay, or trial_rates with every rate. hold keeps trial sets' pay until the trial is passed. For every campaign, or only in one (campaignId; { mode: "inherit", campaignId } removes it there). Creators on a running trial whose trial pay comes from here are repriced right away. alsoTopUpPaid: true also moves sets that already have money paid (they are topped up at the next payment); by default they keep the pay they were priced with. Only for brands on campaign trials (409 conflict, not_converted, otherwise). 409 conflict while a payment is in flight or when expectedPayVersion no longer matches. Full admins only. With ?dryRun=true nothing is written: the answer lists the creators it reaches, their trial sets, payVersion and campaignImpact.

Authorization

bearerAuth payouts:write
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, brand:write, creators:write, engagement:write, support:write, accounts:write, payments:write, creator:write, creator:payouts:write, managed:write, coach:write, agency:write.

Scope: payouts:write

Path Parameters

brandId*string

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

Length1 <= length
creatorId*string

A creator id from GET /brands/{brandId}/creators.

Length1 <= length

Query Parameters

dryRun?string

"true": run every check and return { dryRun: true, wouldChange } without changing anything.

Value in"true""false"

Request Body

application/json
  1. body
mode*string

"inherit" (no setting here), "normal" (trial sets earn normal pay), "no_pay", or "trial_rates" (these rates).

Value in"inherit""normal""no_pay""trial_rates"
hold?boolean

Hold trial sets' pay until the trial is passed. Required unless inherit.

rates?

Required for "trial_rates".

campaignId?|

A campaign id from GET /brands/{brandId}/campaigns: save only in that campaign. Omit (or null) for every campaign.

alsoReplaceCampaignRates?boolean

Every-campaign saves only: also remove the creator's own pay in single campaigns (Closed ones keep theirs), so this pay applies there too.

alsoTopUpPaid?boolean

Also move sets that already have money paid. Default false.

expectedPayVersion?string

payVersion from a dry run: the save is refused (409) if the creator's pay changed since.

Lengthlength <= 200

Response Body

Success.

application/json
  1. response
changed*boolean
payChanged*boolean
creatorsReached*integer

Creators on a running trial whose trial pay comes from here.

Range-9007199254740991 <= value <= 9007199254740991
replacedCampaignRates*integer
Range-9007199254740991 <= value <= 9007199254740991
payVersion*string
curl -X PATCH 'https://example.com/api/v1/brands/string/creators/string/trial-pay' \  -H 'Content-Type: application/json' \  -d '{  "mode": "inherit"}'
{  "changed": true,  "payChanged": true,  "creatorsReached": -9007199254740991,  "replacedCampaignRates": -9007199254740991,  "payVersion": "string"}

Was this page helpful?