Billing & plans
Plans, hosted checkout via Lemon Squeezy, invoices, and the payment method on file — all org-scoped.
Billing is per-organization. The Billing page shows your current plan, active subscription, invoice history, and the card on file.
| Plan | For |
|---|---|
free | Getting started — default for new orgs |
pro | Growing workloads |
scale | Higher limits and throughput |
max | Highest self-serve tier |
Plan limits feed the usage alarms: an alarm’s thresholdPct is a percentage of your plan’s limit.
Upgrade (checkout)
Section titled “Upgrade (checkout)”Upgrading starts a hosted Lemon Squeezy checkout and returns the URL to redirect to:
curl -X POST https://cloud.backlex.com/api/org/<org>/billing/checkout \ -H "Authorization: Bearer pak_..." \ -H "Content-Type: application/json" \ -d '{"plan":"pro"}'After payment, the resulting subscription lands via a Lemon Squeezy webhook and your plan updates automatically — a billing.plan_change event fires, which your webhooks and integrations can react to.
Invoices & payment method
Section titled “Invoices & payment method”The billing snapshot includes recent invoices and a best-effort card-on-file lookup (brand, last four, renewal date) — fetched from Lemon Squeezy and never blocking the page if the provider is slow.
Starting checkout requires the owner or admin role.