Skip to content
Account

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.

PlanFor
freeGetting started — default for new orgs
proGrowing workloads
scaleHigher limits and throughput
maxHighest self-serve tier

Plan limits feed the usage alarms: an alarm’s thresholdPct is a percentage of your plan’s limit.

Upgrading starts a hosted Lemon Squeezy checkout and returns the URL to redirect to:

Terminal window
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.

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.