Skip to main content

Manage or cancel an existing subscription

POST /v1/billing/portal

Manage or cancel an existing subscription

Credential. A dashboard session token belonging to an owner of the organisation.

curl --fail-with-body -X POST "https://api-833252724876.us-central1.run.app/v1/billing/portal" \
-H "Authorization: Bearer $JEAN_SESSION_TOKEN"

Response · 201

{
"url": "https://checkout.stripe.com/c/pay/cs_test_..."
}

Errors

StatusMeaning
401Unauthenticated, invalid token or revoked key.
403Forbidden, session required or org required.
404This org has never been through checkout.
422Validation failed.
429Quota or rate limit exceeded; error.details says which, and when.
500Internal error; quote error.request_id when reporting it.
503Billing is not configured in this environment.

Every one carries the same envelope.

API overview · Full contract