Skip to Content
Account

Open the billing portal

Get a Stripe billing portal link to change or cancel the plan, update the card and download invoices.

POSThttps://api.rankparse.com/v1/subscription/portalFreeAPI key

Creates a Stripe billing portal session for the workspace and returns its URL. In the portal the owner can change or cancel the subscription, update the payment card and download invoices. When they are done, Stripe returns them to the plan page in the dashboard. Only the workspace owner can open it. The route takes no body.

Like Start a subscription, this route answers 404 subscriptions_not_enabled while subscription checkout is switched off.

Response

urlstring

The Stripe billing portal URL.

Errors

HTTPCodeWhen
400no_stripe_customerThe workspace has never paid through Stripe, so there is no billing history yet.
401invalid_api_keyMissing, invalid or revoked API key.
403capability_missingOnly the workspace owner can open the portal.
404subscriptions_not_enabledSubscription checkout is not switched on.
500portal_failedStripe could not create the session.