Customer Portal
Learn how to add a no-code solution that lets your customers easily self-manage their subscriptions from your store.
Keep in mind that you will still need to set up webhooks if you want your billing and application data to stay in sync.
For more details about the available features, read the Customer Portal documentation.
Add Customer Portal to your app
You can add the Customer Portal to your application simply by linking to it, allowing customers to start managing their subscriptions and billing information with a single click.
There are two types of Customer Portal URLs:
- Signed URLs
- Unsigned URLs
Signed URLs
Subscription and Customer objects contain a signed customer_portal
URL in the urls
object. This URL will automatically log in customers to manage their subscription(s) and is valid for 24 hours. In cases where customers do not possess any subscription, the customer_portal
property will be set to null.
If you have a custom domain set up, all Customer Portal and update payment method URLs will use your custom domain.
Request new URL
We recommend you request a new URL (by calling the Retrieve a subscription endpoint or Retrieve a customer endpoint) when a user clicks a Billing button in your app, then redirect them to the URL in the response.
Unsigned URL
If you don’t want to make an API call when a customer clicks through to the Customer Portal you can use the unsigned URL:
Note that with this option, if your customer is not already logged into their Lemon Squeezy account, they will see a form to log in via an email magic link like My Orders.
Customizing the Customer Portal
In the Design settings in your dashboard, you have some options to customize your Customer Portal. Any changes you make here will be shown to all customers.
You can change the copy shown at the top of the page and can easily toggle different parts of the portal.
You can even select which subscription products/variants your customers are allowed to upgrade and downgrade to.
Make sure to add a URL in the “Back” link option so your customers can easily get back to your application.