POST /api/public/v1/billing/openPortal
Changed onA Stripe Customer Portal session's URL for the business, returning to its Billing page. flow opens it straight on replacing the card (paymentMethodUpdate) or cancelling the live subscription (subscriptionCancel). Refused with FORBIDDEN for a demo business, and with PRECONDITION_FAILED when the business has no billing account yet, or no live subscription to cancel. For a classified test organization's Stripe Sandbox records: refused with FORBIDDEN as sandboxNotAllowed unless the caller is a verified Fortune OS employee, and with PRECONDITION_FAILED as billingNotConfigured while the Sandbox is not configured; the experiment is not asked.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
object required
organizationId, string required
flow, 'paymentMethodUpdate' | 'subscriptionCancel'
Response
OK
unknown required
Changes
- info
added the new optional request property
flow
- info