Bloss Docs

Undo a campaign payment marked paid outside Bloss

Developers
DELETE
/brands/{brandId}/campaigns/{campaignId}/payments/{recordId}

Undo a payment that was marked as paid outside Bloss (method: "manual"), as the Payments tab's Undo does: a reversing record subtracts that mark's own amounts, so the sets are owed again. A payment sent through the payout provider can't be undone (409 conflict). 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
recordId*string

A payment record id from GET /brands/{brandId}/campaigns/{campaignId}/payments.

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
reversalId*string
amount*number

US dollars.

curl -X DELETE 'https://example.com/api/v1/brands/string/campaigns/string/payments/string' \  -H 'Content-Type: application/json' \  -d '{}'
{  "reversalId": "string",  "amount": 0}

Was this page helpful?