Skip to main content
POST
/
v1
/
billing_portal
/
sessions
Create a billing portal session
curl --request POST \
  --url https://api.leanrails.com/v1/billing_portal/sessions \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "customer": "<string>",
  "return_url": "<string>"
}
'
{
  "id": "<string>",
  "object": "billing_portal.session",
  "url": "<string>",
  "customer": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.fluveo.com/llms.txt

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

Authorizations

Authorization
string
header
required

Use your secret API key as the username with an empty password.

Headers

Idempotency-Key
string
required

Unique key to ensure idempotent requests.

Maximum string length: 255
X-API-Version
string

Override the API version for this request.

Body

application/json
customer
string
required
return_url
string<uri>

Response

Created

id
string
object
enum<string>
Available options:
billing_portal.session
url
string
customer
string