---
title: "Create Chargebee portal session"
method: POST
path: "/v1/billing/portal-session"
tags: ["Billing"]
---

# Create Chargebee portal session

`POST /v1/billing/portal-session`

## Request

- Base URL: `https://api.prod.keyban.io`
- URL: `https://api.prod.keyban.io/v1/billing/portal-session`
- Auth: `bearer` (a scheme the document does not define)

Creates a Chargebee self-service portal session for the current organization. Returns a URL to redirect the user to.

## Response `200`

Portal session URL returned successfully

- PortalSessionResponseDto
  - `accessUrl` string, uri, required: Single-use Chargebee-hosted URL for the self-service billing portal. Redirect the user to it so they can manage their subscription, invoices and payment methods; it expires after first use.

## Other responses

- `400`: Organization has no Chargebee customer ID

---

[API](https://skmtc.dev/keyban/apis/keyban-rest-apis.md) · [All operations](https://skmtc.dev/keyban/apis/keyban-rest-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/keyban/apis/keyban-rest-apis/revisions/0bb79a1da961?raw)
