---
title: "Create a payment portal session"
method: POST
path: "/api/billing/payment-portal"
tags: ["billing"]
---

# Create a payment portal session

`POST /api/billing/payment-portal`

[cloud-only] Creates a Stripe customer portal session for managing payment methods and invoices. Returns a URL to redirect the user to.

## Response `200`

Portal session

- object
  - `url` string, uri — Stripe portal URL

## Other responses

- `400` — Bad request (e.g., missing return_url)
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 3 info
  - api operation id `createPaymentPortalSession` removed and replaced with `getPaymentPortal`
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/billing/payment-portal/post.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc.dev/comfy-org/apis/comfyui-api/revisions/c4db9e1283df?raw)
