Choose a plan
Moves an organisation to another plan. The change takes effect at once and the answer has plan, or the plan needs a card first and the answer has the url of a Stripe Checkout page.
/_luna/orgs/{org}/billing/planAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
billing:writeorgstringrequiredThe organisation, by its slug.
application/jsonplanstringrequiredThe plan's name.
successUrlstringrequiredThe http or https URL to return to after Stripe Checkout, when the plan needs one.
cancelUrlstringrequiredThe http or https URL to return to when the person backs out of Stripe Checkout.
The plan now in effect, or where to pay for it.
planstringThe plan the organisation is on now, when the change took effect at once.
urlstringThe Stripe Checkout page to send the browser to, when the plan needs a card first. The plan changes once checkout completes.
The request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.