---
title: "Create Billing Portal"
method: POST
path: "/billing/billing-portal"
tags: ["internal"]
---

# Create Billing Portal

`POST /billing/billing-portal`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/billing/billing-portal`
- Auth: HTTP bearer

Create a Stripe billing portal session.

Returns a URL where the user can manage their subscription,
update payment methods, and view invoices.

## Request body

- AppRoutersBillingBillingPortalRequest: Request to create billing portal session.
  - `return_url` string, nullable

## Response `200`

Successful Response

- AppRoutersBillingBillingPortalResponse: Response with billing portal URL.
  - `url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
