Search results
No results found.
Try different keyword
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Lemon Drops

Shipped: License key variables & product variant level controls

JR Farr



JR Farr


June 28, 2021


Lemon Drops

We recently shipped two small but important features to Lemon Squeezy.

The first is what we’re calling license key variables. You can now add a [license_key] variable to your “Redirect after purchase” URL. This placeholder will be replaced with the real license key when a customer purchases your product. That way, when they get redirected to your URL you can do some processing with their license key.

For example, the Make Lemonade crew had teamed up with James McDonald to launch Iconic. We use this variable in Iconic to automatically activate a user’s account after purchasing a Pro license instead of the customer having to manually enter their license key. As you can see, this is a powerful way of improving the onboarding flow for new customers.

License Key Product Variant Control

The second feature isn’t so much a new feature as an improvement of an existing feature. You can now control license key settings, such as the license length and activation limit, in your product variants when creating and editing a product.

You might be wondering why this is important. Imagine you are selling a software product and want to limit the number of “seats” you sell based on the variant the customer purchased. For example, with the Iconic Pro Team license, we have variants set up for different sizes of teams (5 users, 10 users, 20 users).

Previously, you could only set the license activation limit on the product which means that each variant would have the same activation limit. This obviously doesn’t work if you want to offer different limits for each variant as above.

Now you can control all license key settings independently for each variant. This not only allows you to set different license limits and lengths for each variant but gives you the option to completely enable/disable license key generation altogether at the variant level.

Still have Questions?

Feel free to check out our support docs to learn more about our license API. License API Docs →

Stay fresh. 🍋


Industry insights you won’t delete, delivered to your inbox weekly

Join 10,000+ founders, get early access to Lemon Squeezy features, and learn how to squeeze every drop of revenue from your online business.

Thanks! We have received your subscription request
Oops! Something went wrong while submitting the form.

Related articles

Looking for more juicy goodness?

Read all 
Lemon Drops

Whatever stage of your journey, we’re here to help

No matter the stage of your company, we stand behind our promise to provide exceptional customer support, from initial setups to massive migrations and everything in between.

Invest in your business with peace of mind that we're here for you whether you need technical help or business advice.


Creator Guide

Looking for some advice on how to sell and market your digital products? Download the creator’s guide to dive deep into getting your idea off the ground.


Merchant of Record Guide

Free guide for all entrepreneurs and organizations explaining why partnering with a Merchant of Record is more important than you might realize.


Want merch?

Want some fresh Lemon Squeezy swag with all the lemon puns you could ever imagine? The wait is almost over as we’re gearing up for a limited-time merch drop.


Need help?

If you’re looking to get in touch with support, talk to the founders, or just say hello, we’re all ears.

We’re giving away $250,000 in credits. Enjoy 0% transaction fees on all sales until the end of January!

No tricks. No gimmicks. 0% fees on all sales, invoices and payments until the end of 2022.

In our biggest release to date, we’ve added a bunch of powerful SaaS tools for no additional cost. To celebrate, we’re giving away $250,000 in credits.*

Here’s a quick look at what’s new:

  • A fresh coat of paint on our website
  • All-new SaaS-focused features
  • New customizable dashboard
  • Expanded API + documentation

And for the rest of January...

  • 0% transaction fees (Woohoo!)

Turn off transaction fees for the next month by clicking the button below.

*Offer applies to new merchants Learn more →