MonetizationSubscriptionConfig
Monthly subscription plan config: $X/month for full access on the builder's Stripe Connect rails — pure access revenue since 0.3.3/P0-167 (P0-162).
import type { MonetizationSubscriptionConfig } from 'flowstack-sdk'The stripe.subscription block inside Monetization. Since 0.3.3 (P0-167) a subscription is pure ACCESS revenue — no per-plan query allowance; compute is funded by the app owner at the canonical credit rate (1 credit/query). queries_per_month and overage_mode were REMOVED — the backend accepts-and-strips them from older clients. Enabling still requires the builder's Stripe Connect account to have payouts enabled (400 SUBSCRIPTION_REQUIRES_CONNECT otherwise). Payments are destination charges — the builder's share lands on their Connect account each invoice.
Signature
interface MonetizationSubscriptionConfigReturns
| Field | Type | Description |
|---|---|---|
price_cents | number | Monthly price in USD cents. Minimum 200 ($2/mo) — Stripe fees make cheaper plans fee-dominated. |
label | string? | Shown in the paywall UI, e.g. "$5/mo — full access". Defaults to a derived label. |
stripe_price_id | string? | Stripe recurring Price id — server-managed (created on first enable, superseded on price change); client-supplied values are ignored. |
queries_per_month and overage_mode no longer exist. Sending them is harmless (backend strips), but plans no longer meter subscriber queries — budget owner-side compute instead (see BuilderEarnings.compute).See also
Monetization · setMonetization · AppSubscriptionStatus · subscribeToApp · getConnectStatus
Source: src/types/index.ts (App Monetization, P0-162) · Also available in llms-full.txt and registry.json.