Skip to main content
POST
/
api
/
v1
/
billing
/
portal-session
Create a Stripe Customer Portal session
curl --request POST \
  --url http://localhost:3051/api/v1/billing/portal-session \
  --header 'Authorization: Bearer <token>'

Documentation Index

Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Creates a Stripe Customer Portal session and returns the URL to redirect your customer to. The hosted portal lets the customer:
  • View and download invoices for past top-ups.
  • Add or remove saved cards.
  • Update their billing address and tax details.
Requires the billing:write scope.
Invoices appear in the portal for top-ups completed through Stripe Checkout — each top-up finalises a Stripe invoice with a downloadable PDF. Top-ups charged directly against a saved card are recorded in your billing history but do not produce a separate invoice document.

After the portal

When the customer is finished, Stripe returns them to the Billing page in the dashboard.

Authorizations

Authorization
string
header
required

API key from the Stars dashboard

Response

200

Default Response