---
title: "Create a Stripe portal session as JSON"
method: POST
path: "/api/v1/billing/portal"
tags: ["Billing", "User"]
---

# Create a Stripe portal session as JSON

`POST /api/v1/billing/portal`

## Headers

- `X-CSRF-Token` string, required

## Response `200`

Stripe Customer Portal URL

- StripeSessionResponse
  - `url` string, uri, required
  - `session_id` string, required

## Other responses

- `400` — Invalid request
- `401` — Authentication required (no active session)
- `403` — Invalid CSRF token
- `429` — Rate limit exceeded
- `503` — Action budget or Stripe unavailable

---

[API](https://skmtc.net/openmercantil/apis/openmercantil-public-api.md) · [All operations](https://skmtc.net/openmercantil/apis/openmercantil-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openmercantil/openmercantil-public-api/revisions/996f96a11758/schema)
