API referenceBilling
Preview a plan change
POST
cookie
lb_session<token>Dashboard session cookie, set by the sign-in endpoints.
org*stringOrganization slug
application/json- body
plan*PlanIdValue in
"free""indie""team"OK
application/json- response
from*PlanIdValue in
"free""indie""team"to*PlanIdValue in
"free""indie""team"amountDueNowCents*numbercurrency*stringeffective*stringValue in
"now""next_period"curl -X POST "https://example.com/v1/orgs/string/billing/change-plan/preview" \ -H "Content-Type: application/json" \ -d '{ "plan": "free" }'{ "from": "free", "to": "free", "amountDueNowCents": 0, "currency": "string", "effective": "now"}