Skip to content

Plans and pricing

Plans live under Plans in the dashboard. Open a plan and choose the Pricing tab, or send the fields below to POST /api/v1/plans and PATCH /api/v1/plans/{planId}.

FieldMeaning
keyWhat your app compares against, e.g. pro. Unlike the name, it stays the same when you rename the plan.
features[{ "key": "export_pdf", "name": "Export to PDF" }]. Apps check the key; the pricing page shows the name.
limitsWhole numbers your app enforces, e.g. { "projects": 50 }.
prices[{ "interval": "month", "amount": 1900, "currency": "usd" }]. The amount is in the currency’s smallest unit (1900 is $19.00). One price per interval and currency.
trialDaysA free trial at checkout, in days.
subjectTypeWho can buy it: user, organization or any.
isPublicListed by GET /billing/plans and the hosted pricing page, and buyable by end users.
isDefaultThe plan of everyone without a subscription or an assigned plan. One plan at most.
sortOrderDisplay order, lowest first.
Terminal window
curl -X POST https://<tenant-domain>/api/v1/plans \
-H "Authorization: Bearer $MANAGEMENT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Pro",
"description": "For growing teams",
"key": "pro",
"isPublic": true,
"features": [{ "key": "export_pdf", "name": "Export to PDF" }],
"limits": { "projects": 50 },
"prices": [
{ "interval": "month", "amount": 1900, "currency": "usd" },
{ "interval": "year", "amount": 19000, "currency": "usd" }
],
"trialDays": 14
}'

A plan without prices is free and needs nothing in Stripe. A typical setup is a free plan marked Default and one or more paid plans marked public.

Every time a plan is saved, AuthAction updates its Stripe product and prices. Stripe prices can’t change amount, so a changed price becomes a new Stripe price and the old one is archived. Existing subscribers keep paying the old price until they change plan; new checkouts use the new one.

If Stripe can’t be reached, the plan is still saved and its stripeSyncError says what went wrong. Fix the cause and choose Retry on the plan, or Sync plans to Stripe on the Billing page (POST /api/v1/billing/sync).

The Stripe product is archived, so nobody can buy the plan any more. Current subscribers keep its features until their subscription ends.