Create billing portal session
POST
https://app.speybooks.com/api/v1/billing/portalCreates a Stripe Customer Portal session for self-service subscription management and returns the portal URL. The portal lets the customer update payment methods, view and download Stripe invoices, and cancel or modify the subscription.
Requires an existing Stripe customer. An organisation that has not reached Checkout has no customer record and must subscribe first.
Response
200Returns a Stripe Billing Portal URL. Redirect the user to manage their subscription, invoices, and payment method.
Show response fields
portalUrlstringStripe Billing Portal session URL. Redirect the user here.
Error codes
400No active subscription found. The organisation must complete checkout first.