Skip to main content
The Subscriptions endpoint generates a Stripe billing portal URL for a specific subscriber. You call this endpoint from your server, receive a URL, and redirect the subscriber’s browser to the portal. From there they can cancel their subscription, update their payment method, or view billing history. This route requires a valid API key.
The memberSessionId is the session ID from your member authentication system that links the portal request to the correct subscriber in Quickshops. This value identifies which subscriber’s billing portal to open — pass the session ID of the currently authenticated user.

Create billing portal session

Generates a Stripe billing portal URL for the subscriber identified by the given member session ID.

Body parameters

string
required
The session ID of the authenticated member whose subscription portal you want to open. This must correspond to an active subscriber on the store.

Request

Response

string
required
A Stripe billing portal URL. Redirect the subscriber’s browser to this URL so they can manage their subscription.

Redirecting the subscriber

Call this endpoint from your server-side handler using the authenticated subscriber’s session ID. Return the URL to your frontend to perform the redirect. Keep your API key on the server.
Then in your client-side code, redirect using the URL returned from your server:
After the subscriber finishes in the portal, Stripe redirects them to the return URL configured in your Quickshops dashboard.