Creates a Stripe billing portal session for the organization's legacy subscription, to update the payment method (the default type) or update or cancel the subscription, and returns its url; Stripe sends the user back to returnUrl. Requires an org admin, owner or billing role; any failure, including having no subscription, returns 400.
POST
/payments/billing-session
curl \
--request POST 'http://api.example.com/payments/billing-session' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"type": "payment_method_update",
"returnUrl": "string"
}'
Request examples
# Headers
organization: string
# Payload
{
"type": "payment_method_update",
"returnUrl": "string"
}
Response examples (201)
{
"data": {
"url": "https://billing.stripe.com/p/session/test_Example",
"createdAt": "2026-01-15T10:15:00.000Z",
"customer": "cus_Example"
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}