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
| Status | Meaning |
|---|---|
401 | Unauthenticated, invalid token or revoked key. |
403 | Forbidden, session required or org required. |
404 | This org has never been through checkout. |
422 | Validation failed. |
429 | Quota or rate limit exceeded; error.details says which, and when. |
500 | Internal error; quote error.request_id when reporting it. |
503 | Billing is not configured in this environment. |
Every one carries the same envelope.