Skip to content

Open the billing portal

POST
/billing/portal
curl --request POST \
--url https://example.com/billing/portal \
--cookie bottle.session_token=<bottle.session_token>

Where to go

Media typeapplication/json
object
url
required

Send the person here.

string format: uri
Examplegenerated
{
"url": "https://example.com"
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not allowed to manage billing, or asking for a key to do it

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Nothing to manage yet: this business has never paid

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Billing is not configured on this deployment

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}