Guides · Lemon Squeezy
Get a Mac notification for every Lemon Squeezy order
Lemon Squeezy posts JSON:API style events with the event name under meta.event_name. Use that as the type field and orders, subscription payments and refunds each get a switch and a count.
Needs: the free EventBar app on your Mac, an EventBar account, and a Lemon Squeezy account with permission to add webhooks. About five minutes. Generic JSON.
Steps
- Create the webhook URL. In the EventBar dashboard, open the Webhooks tab, pick the group this belongs to (one group per site or app is the usual shape), choose the provider Generic JSON, name it, and press Create. Copy the URL; it stays visible and can be rotated any time.
- Paste it into Lemon Squeezy. In Lemon Squeezy: Settings, then Webhooks, then add an endpoint with your hook URL and the events you want (order_created, subscription_payment_success, order_refunded). Create the EventBar hook as Generic JSON with type field
meta.event_name. - Trigger one. Most services offer a test delivery; otherwise do the real thing once. It shows up in the dashboard's Events tab within a second and in the menu bar, as an undefined type named after the event. That first one is your proof the wiring works.
- Make it read well. Press Define on the new type and give it a title and a body template. Fields come from the payload, nested ones with dots. The table below is a starting point.
What you'll see
| Type | Title | Body template |
|---|---|---|
order_created | Order | {data.attributes.first_order_item.product_name} · {data.attributes.total_formatted} · {data.attributes.user_email} |
subscription_payment_success | Renewal | {data.attributes.total_formatted} |
order_refunded | Refund | {data.attributes.total_formatted} |
Every type has its own switch in the menu bar, so a noisy one can be quiet on this Mac and still counted. Counts cover the last hour, 24 hours, 7 days, 30 days and all time.
Worth knowing
total_formattedis already a currency string, so no cents arithmetic here.- Lemon Squeezy signs with
X-Signature; the generic preset doesn't verify it. The URL is the secret. - Link template
{data.attributes.urls.receipt}opens the receipt.
The full contract, including how each preset reads a payload and what the answers mean, is in the API docs. Something about Lemon Squeezy's payload changed? Tell us and we'll fix the guide.