Appearance
Fan funding
Who: listener (supporter); creator (link owner, receiver); system.
Entry points
| Kind | Entry |
|---|---|
| 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 /live | fund: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 |
| Studio | GET /studio/profiles/:profileId/funding |
| Deep link | fund (link page), funding (supporter receipt), studioFunding (creator) |
Flow
- Creator creates a link
{ slug, title, currency, goalMinor?, suggestedAmountsMinor? }→shareUrl. - Supporter funds
{ amount, method, isAnonymous?, message? }→ fundingpending+ payment (fan_funding, fee default 10% from the creator's side). - Payment settles → funding
succeeded→ ledger tocreator_earnings→funding.succeeded→ studiosale:made; inside a live stream alsofund:receivedandstats.funds. funding.expire-pending(15 min) marks failed attempts after an hour; a later settlement still wins.- Refund →
funding.refunded.
Exit states
| State | Code | Actions | Client next |
|---|---|---|---|
| Funded | — | — | Thank-you screen, receipt |
| Link missing / closed | FUNDING_LINK_NOT_FOUND, FUNDING_LINK_INACTIVE | — | Empty state |
| Self | FUNDING_SELF | — | — |
| Amount | FUNDING_AMOUNT_INVALID, LIVE_FUNDING_AMOUNT_INVALID, MONEY_CURRENCY_MISMATCH | — | — |
| Low balance | WALLET_INSUFFICIENT_FUNDS | top_up | — |
| Live not live / banned | LIVE_NOT_LIVE, LIVE_BANNED | — | — |
| Too often | RATE_LIMITED | wait | — |
Notifications
funding.received (creator owner, email), funding.sent (supporter, email).