LemonSqueezy sends order receipts — not your product emails
LemonSqueezy is Merchant of Record and handles receipts. Welcome emails, license key delivery and onboarding are your responsibility.
LemonSqueezy integration
LemonSqueezy handles payments and sends receipts. else.events handles your welcome, onboarding, license delivery and subscription lifecycle emails.
LemonSqueezy is Merchant of Record and handles receipts. Welcome emails, license key delivery and onboarding are your responsibility.
subscription_created, subscription_cancelled, order_created — each needs a product email your app must trigger.
LemonSqueezy webhooks use JSON:API format — extracting customer email, name and product details requires extra parsing.
Email copy for welcome, onboarding and licence delivery is hardcoded in your webhook handler or background job.
Extract customer and product data from the LemonSqueezy payload, map to a clean else.events event and POST.
order_created + product=Pro → Pro welcome + license delivery. subscription_cancelled → cancellation email. No code per variation.
Change welcome copy or add an upgrade CTA in the else.events dashboard without touching your webhook handler.
LemonSqueezy targets indie hackers and small SaaS teams — the same teams that benefit most from else.events managed product emails.
// Node.js LemonSqueezy webhook → else.events
app.post('/webhooks/lemonsqueezy', async (req, res) => {
// Validate LemonSqueezy signature
const event = req.body;
if (event.meta.event_name === 'order_created') {
const attrs = event.data.attributes;
const userEmail = attrs.user_email;
const userName = attrs.user_name ?? 'Customer';
const productName = attrs.first_order_item?.product_name;
await fetch('https://app.else.events/api/events', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.ELSE_EVENTS_API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
type: 'order.created',
user: { email: userEmail, name: userName },
data: { product: productName, license_key: attrs.first_order_item?.license_key,
order_number: attrs.order_number },
}),
});
}
res.sendStatus(200);
});Extract the relevant fields from the JSON:API structure, then forward a clean event to else.events. Rules match order type and product to send the right email.
order_createdWelcome email with license key delivered on order_created — no custom code per product.
subscription_cancelledAcknowledgment and reactivation CTA when subscription_cancelled fires.
subscription_updatedConfirmation email when subscription renews successfully.
subscription_payment_failedReminder email with payment update link on failed renewal.
Forward LemonSqueezy events and send welcome, license delivery and lifecycle emails managed outside your code.