Billing flows are routed through local server handlers so checkout creation and subscription actions stay server-side.
Pricing
/pricing loads plans from /api/pay/plans using the selected UI locale, supports automatic and manual coupon validation, and creates Stripe or Creem checkout sessions.
Dashboard modules
Dashboard routes are split by user task:
/dashboardoverview and quick links/dashboard/billing?tab=creditsbalance + ledger/dashboard/billing?tab=subscriptionplan status, change, cancel/resume/dashboard/billing?tab=ordersorder list and portal/dashboard/billing?tab=earndaily check-in and referral (feature-flagged)/dashboard/billing?tab=enterpriseenterprise invoices and keys (feature-flagged, never for guests)/dashboard/settings?tab=profile,/dashboard/settings?tab=keys,/dashboard/tickets- The old
/dashboard/credits,/orders,/subscription,/enterprise-billing,/checkin,/referral,/keysand/profileaddresses redirect to the matching tab with their query.
API keys
/dashboard/settings?tab=keys uses TanStack Query for user/key data and mutations, and TanStack Table for the key table. Create, copy, enable/disable, and delete actions invalidate the key query after successful mutations.