Appearance
Fan funding
Supporters fund creator profiles directly, through a funding link, or inside a live stream (live module, via FundingApi.fund). Payments go through the wallet (fan_funding, fee FEE_FAN_FUNDING_PERCENT, default 10%, taken from the creator's side). Money is { amountMinor: string, currency } in responses; requests use { amountMinor: number, currency }.
Links
| Method | Path | Auth | Body / query | Response | Errors |
|---|---|---|---|---|---|
| GET | /v1/funding-links/:slug | public | — | Link | FUNDING_LINK_NOT_FOUND |
| GET | /v1/profiles/:profileId/funding-links | public (owner sees inactive with includeInactive=true) | cursor, limit, includeInactive | page of Link | — |
| POST | /v1/profiles/:profileId/funding-links | user, owner of a creator profile | { slug, title, message?, currency, goalMinor?, suggestedAmountsMinor?[≤6], isActive?, endsAt? } | 201 Link | PROFILE_NOT_FOUND, FUNDING_SLUG_TAKEN, VALIDATION_FAILED (max 20 links) |
| PATCH | /v1/funding-links/:id | user, owner | any of the above except currency | Link | FUNDING_LINK_NOT_FOUND, FUNDING_SLUG_TAKEN |
| DELETE | /v1/funding-links/:id | user, owner | — | { status: "ok" } | FUNDING_LINK_NOT_FOUND |
Link: id, profileId, creatorName, slug, shareUrl, title, message, currency, goal|null, raised, fundingCount, progressBps|null, suggestedAmounts[], isActive, isOpen, endsAt, createdAt.
Funding
Both routes need Idempotency-Key; the same key returns the same funding and payment. Rate limited (30/hour per person).
| Method | Path | Auth | Body | Response | Errors |
|---|---|---|---|---|---|
| POST | /v1/funding-links/:slug/fund | user | `{ amount, method: wallet | card | bank_transfer, isAnonymous?, message? (≤280) }` |
| POST | /v1/profiles/:profileId/fund | user | same | same | same, minus link errors |
| GET | /v1/fundings/:id | supporter, or creator owner once settled | — | Funding | FUNDING_NOT_FOUND |
| GET | /v1/me/fundings | user | cursor, limit | page of Funding | — |
| GET | /v1/profiles/:profileId/fundings | user, owner | cursor, limit | page of ReceivedFunding (succeeded/refunded) | PROFILE_NOT_FOUND |
Funding: id, profileId, fundingLinkId, source (link|profile|live), referenceId, amount, method, isAnonymous, message, status (pending|succeeded|failed|refunded), paymentId, createdAt, succeededAt. With card/bank_transfer the payer finishes at checkoutUrl; the funding turns succeeded when the wallet settles. Pending attempts whose payment failed are marked failed after an hour; a later settlement still wins.
ReceivedFunding: id, supporter: { userId, profileId, displayName } | null (anonymous), fundingLinkId, source, referenceId, amount, message, status, createdAt.
Supporters
| Method | Path | Auth | Query | Response |
|---|---|---|---|---|
| GET | /v1/profiles/:profileId/supporters | public | currency (required), cursor, limit | page of `{ supporter |
| GET | /v1/profiles/:profileId/funding-totals | public | — | [{ raised, supporterCount }] per currency |
Anonymous support is a separate leaderboard row with no identity, so it is never shown under a supporter's name.
Events and notifications
funding.succeeded, funding.refunded (payload includes isAnonymous, referenceId for live). Notifications funding.received (creator owner) and funding.sent (supporter), with the email templates of the same names.
In-app funding
Fund requests accept method: apple_iap | google_play with storePriceTierId from GET /store-price-tiers?kind=fan_funding; amount must equal the tier's price. Refunds notify the supporter (funding.refunded).
Presets
GET /funding/presets?currency=NGN (public, cached 60 s) returns [{ currency, amountsMinor: string[], min: Money, max: Money }], all currencies without currency. The gift sheet draws its buttons from it. Every funding (profile, link, live) must sit between min and max for its currency (FUNDING_AMOUNT_INVALID); a currency without presets takes none. Staff edit the funding.presets setting.