Create billing portal session
POST
/api/cloud/billing/portal
const url = 'https://hitkeep.com/api/cloud/billing/portal';const options = { method: 'POST', headers: {cookie: 'hk_token=<hk_token>', 'Content-Type': 'application/json'}, body: '{"locale":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/cloud/billing/portal \ --header 'Content-Type: application/json' \ --cookie hk_token=<hk_token> \ --data '{ "locale": "example" }'Creates a Stripe Customer Portal session for the authenticated hosted cloud team.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
locale
string
Example generated
{ "locale": "example"}Responses
Section titled “ Responses ”Billing portal session
Media type application/json
object
url
required
string
Example generated
{ "url": "example"}Unauthorized
Media type application/json
object
message
string
Example generated
{ "message": "example"}Cloud billing account not found
Media type application/json
object
message
string
Example generated
{ "message": "example"}Stripe customer is not configured
Media type application/json
object
message
string
Example generated
{ "message": "example"}Unable to start billing portal
Media type application/json
object
message
string
Example generated
{ "message": "example"}