Liftbay
API referenceBilling

Preview a plan change

POST
/v1/orgs/{org}/billing/change-plan/preview

Authorization

cookielb_session<token>

Dashboard session cookie, set by the sign-in endpoints.

Path Parameters

org*string

Organization slug

Request Body

application/json
  1. body
plan*PlanId
Value in"free""indie""team"

Response Body

OK

application/json
  1. response
from*PlanId
Value in"free""indie""team"
to*PlanId
Value in"free""indie""team"
amountDueNowCents*number
currency*string
effective*string
Value 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"}