Skip to content

Fan funding ​

Who: listener (supporter); creator (link owner, receiver); system.

Entry points ​

KindEntry
REST (links)GET /funding-links/:slug, GET/POST /profiles/:profileId/funding-links, PATCH /funding-links/:id, DELETE /funding-links/:id
REST (fund)POST /profiles/:profileId/fund, POST /funding-links/:slug/fund, POST /live/streams/:id/funding (all Idempotency-Key)
Socket /livefund:send; server → fund:received
REST (reads)GET /fundings/:id, GET /me/fundings, GET /profiles/:profileId/fundings, GET /profiles/:profileId/supporters?currency, GET /profiles/:profileId/funding-totals
StudioGET /studio/profiles/:profileId/funding
Deep linkfund (link page), funding (supporter receipt), studioFunding (creator)

Flow ​

  1. Creator creates a link { slug, title, currency, goalMinor?, suggestedAmountsMinor? } → shareUrl.
  2. Supporter funds { amount, method, isAnonymous?, message? } → funding pending + payment (fan_funding, fee default 10% from the creator's side).
  3. Payment settles → funding succeeded → ledger to creator_earnings → funding.succeeded → studio sale:made; inside a live stream also fund:received and stats.funds.
  4. funding.expire-pending (15 min) marks failed attempts after an hour; a later settlement still wins.
  5. Refund → funding.refunded.

Exit states ​

StateCodeActionsClient next
Funded——Thank-you screen, receipt
Link missing / closedFUNDING_LINK_NOT_FOUND, FUNDING_LINK_INACTIVE—Empty state
SelfFUNDING_SELF——
AmountFUNDING_AMOUNT_INVALID, LIVE_FUNDING_AMOUNT_INVALID, MONEY_CURRENCY_MISMATCH——
Low balanceWALLET_INSUFFICIENT_FUNDStop_up—
Live not live / bannedLIVE_NOT_LIVE, LIVE_BANNED——
Too oftenRATE_LIMITEDwait—

Notifications ​

funding.received (creator owner, email), funding.sent (supporter, email).

Known gaps ​

  • funding.refunded has no consumer: nobody is told of a refund beyond the payment receipt (M9).
  • Fundings made are in the export; funding messages survive erasure (B3).

Plemuz API v2