I would like to send the discount as part of the checkout URL which automatically gets applied instead of asking customer to enter it. This helps in improving sales from sales emails where the discount should already be part of the link shared. This is something similar to Gumroad.

This can already be done: https://docs.lemonsqueezy.com/help/checkout/prefilling-checkout-fields#pre-filling-customer-data-in-checkout-links