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/credits balance + ledger
  • /dashboard/orders order list and portal
  • /dashboard/subscription plan status, change, cancel/resume
  • /dashboard/enterprise-billing enterprise 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.