curl "https://api.destined.ai/v1/billing/portal" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "url": "https://billing.stripe.com/p/session/xxx" }
Get a Stripe billing portal URL to manage subscription
function BillingButton() { const handleManageBilling = async () => { const portal = await client.billing.getBillingPortalV1BillingPortalGet(); window.open(portal.url, "_blank"); }; return ( <button onClick={handleManageBilling}> Manage Billing </button> ); }