Skip to main content
POST
Create a billing portal session

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string<uuid>
required

Organization ID

Body

application/json

Return URL where Stripe should send the user after they leave the billing portal

return_url
string
required

Where Stripe should send the user after they exit the customer portal.

Example:

"https://app.anthid.com/settings/billing"

Response

Billing portal session created

url
string
required

Stripe-hosted customer portal session URL.

Example:

"https://billing.stripe.com/p/session/test_123"