Bloss Docs

Pay bonuses from a payout cycle's bonus board

Developers
POST
/brands/{brandId}/payout-cycles/{cycleId}/bonus-payments

Release bonus money for one or more creators of an ended payout cycle through the brand's payout provider, as the Bonus pay board's Pay buttons do: per payout row, either the whole remaining row or, with pairIds, only those sets' unpaid bonus. Each payment is sent only at its expectedAmount, to the cent; a figure that moved is skipped with the reason. Rows are paid one after another and each gets an outcome (paid, skipped or failed with a reason): one creator failing never stops the rest. Never marks the cycle paid: allSettled says when every row is, and brand.payout-cycle.mark-paid closes it. For brands still on payout cycles: a campaign in the new shape is paid from its own page and answers 409 conflict here. Refused with 400 when the cycle is paid. The preview lists each asked row as it stands. 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
cycleId*string

A payout cycle id from GET /brands/{brandId}/payout-cycles.

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
payments*array<>
Items1 <= items <= 200
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<>
paidCount*integer
Range-9007199254740991 <= value <= 9007199254740991
paidSets*integer
Range-9007199254740991 <= value <= 9007199254740991
paidTotal*number

US dollars.

allSettled*boolean

Every payable row of the cycle is paid: offer brand.payout-cycle.mark-paid.

curl -X POST 'https://example.com/api/v1/brands/string/payout-cycles/string/bonus-payments' \  -H 'Content-Type: application/json' \  -d '{  "payments": [    {      "payoutId": "string",      "expectedAmount": "string"    }  ]}'
{  "outcomes": [    {      "payoutId": "string",      "status": "paid",      "amount": 0,      "reason": "string",      "setCount": -9007199254740991,      "pairIds": [        "string"      ],      "retryable": true,      "recovered": true    }  ],  "paidCount": -9007199254740991,  "paidSets": -9007199254740991,  "paidTotal": 0,  "allSettled": true}

Was this page helpful?