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/creditsbalance + ledger/dashboard/ordersorder list and portal/dashboard/subscriptionplan status, change, cancel/resume/dashboard/enterprise-billingenterprise invoices and keys (feature-flagged)/dashboard/keys,/dashboard/checkin,/dashboard/referral,/dashboard/tickets,/dashboard/profile
API keys
/dashboard/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.