Skip to content
Start in Cloud

Create billing portal session

POST
/api/cloud/billing/portal
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.

Media type application/json
object
locale
string
Example generated
{
"locale": "example"
}

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"
}