Customer portal
The customer portal is a page, hosted by LicenseManager, where your customers sign in with their email to see their licenses, deactivate their machines, cancel their licenses during their money back guarantee, and manage their subscriptions in the Stripe customer portal. It answers the most common support requests, “I lost my key”, “I got a new computer”, “I want my money back” and “I need to update my card”, without anyone on your side.
For Acme Photo, it’s the Manage my licenses link at the bottom of the purchase email and in the app’s Help menu. A photographer who replaced their laptop opens it, signs in with their email, deactivates the old laptop, and enters their key on the new one.

Portal URL
Each product has its own portal, enabled when the product is created.
Open the product’s settings
Open the product, then Settings in the sidebar, and the Portal tab.
Copy the portal’s URL
In the Customer portal section, the Portal URL is like https://app.licensemanager.dev/portal/x7Kp2QaZ. Link to it from your website, your emails and your application.
Disabling the portal
Uncheck Enable the customer portal, then Save. Check it again to enable the portal back.
While the portal is disabled, it shows a Page not found to customers, and to links already sent. Members of your organization signed in to the app see that it’s disabled instead, with a link to the settings.
What customers can do
- See their licenses of the product: each key, with a button to copy it, its status, its expiration date, how many machines it’s used on out of how many, and which versions it includes. A subscription license shows its price per period and when it renews or ends instead of its expiration date.
- See the active machines of each license, with their name, platform, version, and when they were last seen.
- Deactivate a machine, to free its place for a new one. See deactivating a machine.
- Cancel a license, during its money back guarantee, and get their Stripe payment refunded. See canceling a license.
- Manage their subscription, in the Stripe customer portal: update their payment method, see their invoices, switch plans, change their quantity, or cancel. See managing a subscription.
They can’t change a license, see deactivated machines, see the licenses of your other products, or buy anything new: the portal only shows what they already have. Link to your website for the rest, with a return link.
Canceling a license
When a license has a money back guarantee that hasn’t ended, its card shows a Cancel license button. Licenses without one, or whose guarantee ended, have no button: the customer has to contact you, and you can still cancel the license from the app.
Confirm
The customer clicks Cancel license. The portal warns them they lose access to your product right away, and until when they can cancel, if they’d rather keep using it until then. They click Cancel now, or Keep my license.
Say why
They pick a reason, among Too expensive, Missing features I need, Doesn’t work as expected, Found an alternative, No longer needed and Other, and can add a comment. Then Cancel now.
The license is canceled right away: its key stops validating, and its card shows when it was canceled. Then, in the background:
- Its Stripe payment is refunded, when it was bought through the Stripe integration and automatic refunds are on. Customers can’t choose: they follow your setting.
- The customer is emailed a confirmation, with the amount refunded.
- The owners and admins of your organization are emailed the cancellation, with its reason and comment.
A license bought another way is canceled without a refund: refund the customer yourself. The reasons customers give are counted on the product’s Dashboard: see cancellations.
Subscription licenses have no money back guarantee, so no Cancel license button: customers cancel their subscription from the Stripe customer portal instead.
Managing a subscription
When the customer has a subscription license that hasn’t ended, the portal shows a Manage subscription button, above their licenses. It opens the Stripe customer portal of their Stripe customer, where they can, depending on your Stripe settings:
- Update their payment method, for example after a failed renewal: their license card shows Payment failed: update your payment method meanwhile.
- See and download their invoices.
- Switch plans, like from monthly to yearly, or to another edition: the license follows the new price’s policy, with the same key.
- Change their quantity, which changes the license’s max machines.
- Cancel their subscription, now or at the end of the period, as your settings allow. The license shows when it ends, and expires then.
A Return link in the Stripe customer portal brings them back to your portal, still signed in. Every change they make reaches their license within seconds.
It needs:
- The optional Customer portal: Write permission on your Stripe API key.
- The Stripe customer portal turned on, in Settings › Billing › Customer portal of your Stripe dashboard. That’s where you choose what customers can do there.
Without them, Manage subscription tells the customer their subscription can’t be opened.
Through the API, POST /v1/customers/{id}/billing-portal-sessions returns the url of a Stripe customer portal session for the customer, with an optional returnUrl: a page of the portal, or of one of your return domains. It accepts API keys and customer tokens with the customer:billing permission, so your own pages can open it too.
How customers sign in

Customers have no password. They sign in with a link:
- They open the portal, enter their email, and click Continue.
- If a customer of the product has this email, LicenseManager emails them a link, which works for 1 hour.
- The link signs them in. They stay signed in in this browser tab until the link expires, or they click Sign out.
The portal answers Check your email whether the email is a customer’s or not, so nobody can use it to find out who your customers are. An email that isn’t a customer’s of the product receives nothing.
You can also sign customers in without the email step, with a portal link you create for them: from your website’s account page, or in a support reply.
Linking to the portal
| From | Link |
|---|---|
| Your website, your app, your emails | The portal URL. Add ?email=jane@example.com to fill in their email. |
| A page where the customer is already signed in, on your website | A portal link your backend creates, to skip the email. |
| A support reply | A portal link from the customer’s page in the app. |
Building your own portal
Rather have the licenses in your website’s account page, with your own design? Your backend creates a scoped token for the signed-in customer, and your page calls LicenseManager directly with it, to list licenses, deactivate machines, cancel licenses and open the Stripe customer portal, like the portal does.
Edge cases
A customer who bought with two emails is two customers: each email only shows its own licenses. Ask them which email they used, or edit the customer’s email.
A customer of several products signs in to each product’s portal separately: each one only shows its product’s licenses.
More than 100 licenses. The portal shows the 100 most recent licenses of the customer, and the 100 most recently updated active machines of each license.
An expired link. The portal asks for their email again, to send a new one.
Test products. A test product has its own portal, but only emails sign-in links to members of your organization: sign in with your own email to try it. Other emails get the same Check your email, and receive nothing.
Portal links created before cancellations existed. Their token doesn’t have the license:cancel permission, so the portal shows no Cancel license button to customers signed in with them. Signing in with their email, or a new portal link, gives them the button.
Portal links created before subscriptions existed. Their token doesn’t have the customer:billing permission, so the portal shows no Manage subscription button to customers signed in with them. Signing in with their email, or a new portal link, gives them the button.
A customer with several subscriptions opens one Stripe customer portal, listing all their subscriptions with your Stripe account.
What’s recorded. Machines deactivated from the portal are recorded as machine.deactivated events, and canceled licenses as license.canceled events, by Customer token.