Docs / wallet / MonetizationSubscriptionConfig

MonetizationSubscriptionConfig

typesince 0.3.0not for built apps

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 MonetizationSubscriptionConfig

Returns

FieldTypeDescription
price_centsnumberMonthly price in USD cents. Minimum 200 ($2/mo) — Stripe fees make cheaper plans fee-dominated.
labelstring?Shown in the paywall UI, e.g. "$5/mo — full access". Defaults to a derived label.
stripe_price_idstring?Stripe recurring Price id — server-managed (created on first enable, superseded on price change); client-supplied values are ignored.
WarningBREAKING in 0.3.3 (P0-167): 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).
NotePrice changes never affect existing subscribers — they stay on the Price (and allowance snapshot) they checked out with; the new Price applies to new subscribers only.

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.