Methods

Methods

Subscriptions

Get subscription details

Returns the caller's current subscription tier, limits, usage, and a comparison of all available tiers. Authenticated via Clerk session.

Fee schedule by tier

Returns the full fee schedule for every tier, with admin pricing overrides applied. Useful for pricing comparison pages.

Create subscription checkout

Creates a Stripe Checkout session for upgrading to Pro or Business tier. Returns a checkout URL to redirect the user to.

tier
string
annual
boolean
successUrl
string
cancelUrl
string

Create billing portal session

Creates a Stripe Billing Portal session for the current subscriber. Returns a portal URL. Requires an active subscription with a Stripe customer ID.

returnUrl
string