Bloss Docs

Pay a payout cycle through the brand's payout provider

Developers
POST
/brands/{brandId}/payout-cycles/{cycleId}/pay

Send every pending payout of an ended payout cycle to its creator through the brand's connected payout provider, one transfer per creator, as the cycle's Pay button does. Creators without an account on that provider are skipped; when nobody is skipped the cycle is marked paid, otherwise only the transferred rows are. Each row's amount is worked out again just before it is sent. 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 validation_failed before the cycle has ended, when it is already paid or when no payout account is connected, and 409 conflict while a base payment is unconfirmed. The preview lists each pending row with its amount and whether it would be paid. 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
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
cycle*|

The cycle, marked paid, when every creator was paid; null when some were skipped.

transferred*integer

Payout rows paid by a transfer in this call.

Range-9007199254740991 <= value <= 9007199254740991
skipped*integer

Pending rows left unpaid: no destination on the brand's payout provider, or a payment in flight on them.

Range-9007199254740991 <= value <= 9007199254740991
curl -X POST 'https://example.com/api/v1/brands/string/payout-cycles/string/pay' \  -H 'Content-Type: application/json' \  -d '{}'
{  "cycle": {    "id": "string",    "status": "string",    "totalAmount": 0,    "paidAt": "string"  },  "transferred": -9007199254740991,  "skipped": -9007199254740991}

Was this page helpful?