---
title: "Create self-billing portal session"
method: POST
path: "/portal/billing/portal-session"
tags: ["SelfBilling"]
---

# Create self-billing portal session

`POST /portal/billing/portal-session`

## Request

- Base URL: `https://us.api.flexprice.io/v1`
- URL: `https://us.api.flexprice.io/v1/portal/billing/portal-session`
- Auth: API key in header `x-api-key`

Opens a short-lived customer portal session for the caller tenant.

## Response `200`

OK

- SelfBillingPortalResponse
  - `expires_at` string, date-time
  - `url` string

## Other responses

- `404`: Self-billing disabled
- `500`: Server error

## Changes

- **2026-10-20** `a24bd13338e3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/portal/billing/portal-session/post.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) - [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flexprice/apis/flexprice-api/revisions/84cb4a3af400?raw)
