Subscription
Subscription plans, start, info, cancel, and manage
📄️ Get available subscription plans
Get available subscription plans
📄️ Start subscription with plan
Start subscription with plan
📄️ Get current subscription info
Get current subscription info
📄️ Cancel subscription
Cancel subscription
📄️ Get Stripe billing portal URL
Get Stripe billing portal URL
📄️ Sync subscription by checkout session ID
Synchronizes user subscription from Stripe using checkout session ID.
📄️ Get the current offer for the authenticated user
Returns the user's currently-assigned discount offer when inside its server-derived window; 403 when no offer is assigned or it has expired.
📄️ Email deep-link — start checkout for an assigned offer
Public. Resolves the emailed offer hash to a user, re-validates the offer window, stamps redirected-from-mail, and starts a Stripe checkout on the persisted offer plan. Always responds 200 (fail-closed to `status: error` in the body) so the email link always lands.