Bloss Docs

Recalculate every open campaign

Developers
POST
/brands/{brandId}/payouts/recalculate-all

Recalculate every campaign of the brand that has started, isn't paid, Closed or deleted, oldest first, as the sync controls' Recalculate all does. Moves no money. A campaign whose rules save is still repricing is left to it (skipped); one whose refresh fails keeps its figures (failed). Can take a few minutes. Full admins only.

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

Response Body

Success.

application/json
  1. response
cyclesProcessed*integer
Range-9007199254740991 <= value <= 9007199254740991
totalPayoutsCreated*integer
Range-9007199254740991 <= value <= 9007199254740991
totalAmount*number

US dollars.

cycles*array<>
skipped*array<string>
failed*array<string>
curl -X POST 'https://example.com/api/v1/brands/string/payouts/recalculate-all'
{  "cyclesProcessed": -9007199254740991,  "totalPayoutsCreated": -9007199254740991,  "totalAmount": 0,  "cycles": [    {      "cycleId": "string",      "payoutsCreated": -9007199254740991,      "totalAmount": 0    }  ],  "skipped": [    "string"  ],  "failed": [    "string"  ]}

Was this page helpful?