Open the billing portal
Starts a Stripe billing portal session, where the organisation changes its card, reads its invoices and cancels its subscription, and returns the URL to send the browser to. It answers 409 when the cluster does not bill through Stripe.
POST
/_luna/orgs/{org}/billing/portalAuthorization
AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
Scopes:
billing:writePath parameters
orgstringrequiredThe organisation, by its slug.
Request body
requiredapplication/jsonreturnUrlstringrequiredThe http or https URL to return to when the person is done.
Responses
200
The billing portal page.
urlstringrequiredThe page's URL. It works once and for a short while.
default
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.