Bloss Docs

Pay what a campaign owes, or mark it paid

Developers
POST
/brands/{brandId}/campaigns/{campaignId}/payments

Pay creators what a campaign owes them, as the campaign's Payments tab does: one creator (creatorId, optionally only some sets with pairIds and only parts base or bonus) or everyone: true (one payment per creator with a balance). method: "provider" sends the money through the brand's payout provider; "manual" records it as paid outside Bloss. Each payment is held to its confirmed figure, to the cent: when expectedAmount is left out the preview's total is used. Every creator gets an outcome; one creator's refusal (a payment in flight, no payout account, over a cap) doesn't fail the rest. Refused with 409 for a campaign still paid from the Payouts page, or while its figures are updating after a rules change. Read balances with brand.campaigns.balances.get. The preview lists each creator, what they are owed and what this payment would carry. Moves money, so it must be previewed first: call it with ?dryRun=true (MCP: dryRun: true), check the preview with the user, then call it again with the same inputs and the confirmToken the preview returned. Without the token it answers 400 validation_failed (details[0].reason "dry_run_required"); with a token from before something changed, 409 conflict (details.reason "preview_stale"): preview again. Full admins only, and never with a brand key.

Authorization

bearerAuth payments: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: payments:write

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.

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
method*string

"provider": send the money through the brand's payout provider. "manual": record it as paid outside Bloss.

Value in"provider""manual"
creatorId?string

Pay one creator (from GET /brands/{brandId}/campaigns/{campaignId}/balances). Send this or everyone.

Length1 <= length
everyone?boolean

One payment per creator with a balance, each held to that creator's own figure.

pairIds?array<>

Only these sets of creatorId. Left out: their whole balance.

Items1 <= items <= 500
parts?string

What to pay of each set. Default "both".

Value in"both""base""bonus"
expectedAmount?number

The total you confirmed (US dollars). Left out: the preview's figure is used. A payment whose amount has changed is refused.

Range0 < value
confirmToken?string

The confirmToken a dry run (?dryRun=true) of this same call returned. Required for the real call; it stops working once anything it previewed changes.

Length1 <= length <= 64

Response Body

Success.

application/json
  1. response
outcomes*array<>

One per creator: their status, the amount and, when refused, why.

paid*
recovered*

Earlier payments this request finished instead.

failed*integer
Range-9007199254740991 <= value <= 9007199254740991
skipped*integer
Range-9007199254740991 <= value <= 9007199254740991
curl -X POST 'https://example.com/api/v1/brands/string/campaigns/string/payments' \  -H 'Content-Type: application/json' \  -d '{  "method": "provider"}'
{  "outcomes": [    {      "property1": null,      "property2": null    }  ],  "paid": {    "creators": -9007199254740991,    "amount": 0  },  "recovered": {    "creators": -9007199254740991,    "amount": 0  },  "failed": -9007199254740991,  "skipped": -9007199254740991}

Was this page helpful?