I recently needed to share a LemonSqueezy product link which already included the discount. You know, so it’s already applied to the checkout. The LemonSqueezy documentation is a bit scarce on this, but I figured out how to do it and wanted to share it with you all.
Time needed: 1 minute
Here’s how you bridge the two into one URL:
- Copy the Discount Code
Find the appropriate Discount code inside your LemonSqueezy dashboard: https://app.lemonsqueezy.com/discounts into your favorite text editor. This is the discount code I am using:
MINUS10PERCENT
- Copy the payment URL
Find the link for the product to which the discount code is applicable, click the share link and copy this to your text editor as well. Mine looks like this:
https://remkus.lemonsqueezy.com/checkout/buy/300d91e1-4fa2-46d7-8e54-f22bdcd7cd76
- Copy this Product URL suffix
We need the following suffix to combine the two values in the above steps:
?checkout%5Bdiscount_code%5D=
- Combine them in the following sequence
https://remkus.lemonsqueezy.com/checkout/buy/300d91e1-4fa2-46d7-8e54-f22bdcd7cd76?checkout%5Bdiscount_code%5D=
MINUS10PERCENT
This produces a link that you can share. When you click on that link, the discount code is automagically applied. Try it here.
Hope this helps your scenario, but let me know if you have any questions in the comments.
Leave a Reply