Back to docs

Documentation

Billing and dashboard

Pricing, checkout, credits, subscriptions, orders, and dashboard data loading.

Article
PreviousNext

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:

  • /dashboard overview and quick links
  • /dashboard/billing?tab=credits balance + ledger
  • /dashboard/billing?tab=subscription plan status, change, cancel/resume
  • /dashboard/billing?tab=orders order list and portal
  • /dashboard/billing?tab=earn daily check-in and referral (feature-flagged)
  • /dashboard/billing?tab=enterprise enterprise 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, /keys and /profile addresses 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.