Lemon Squeezy

Stable

Lemon Squeezy on WhatsApp — sale alerts, license keys, refunds, affiliates, and revenue summaries

Payments & Billing

What is Lemon Squeezy?

Lemon Squeezy is a modern merchant of record for digital products, SaaS, subscriptions, and license key delivery — loved by indie makers and small software teams. The LunoGen Lemon Squeezy integration uses the Lemon Squeezy API and webhooks so your AI agent can watch every sale, automate license delivery, track affiliates, and send revenue summaries directly to WhatsApp.

Why connect Lemon Squeezy?

Lemon Squeezy handles the hard stuff (global tax, fraud, card processing) but the dashboard is still something you have to open. LunoGen removes that step. Every sale pings you the instant order_created fires. License keys get delivered and logged. Affiliate commissions are tracked automatically. At the end of each week, a clean revenue digest lands in WhatsApp without you lifting a finger.

What you can do

  • Real-time sale alerts via order_created webhooks
  • License key delivery and per-customer recall
  • Refund event tracking (full and partial)
  • Affiliate sale notifications and commission tracking
  • Weekly and monthly revenue summaries
  • Subscription lifecycle events (created, updated, cancelled, resumed, expired)
  • Customer lookup with order history and lifetime value
  • Store-level and product-level filters
  • Tax and fee breakdown (merchant of record)
  • Discount code tracking for campaigns
  • Send a license key on demand if a customer lost theirs

Setup

Requirements

  • A Lemon Squeezy store
  • Ability to create API keys in the Lemon Squeezy settings
  • A LunoGen account with the Pro plan or higher
  1. 1

    Create an API key

    In Lemon Squeezy go to Settings → API → Create API Key. Name it 'LunoGen Agent', copy the token, and paste it into LunoGen under Credentials → New → Lemon Squeezy.

  2. 2

    Pick the store

    If you run more than one Lemon Squeezy store, LunoGen will list them after you save the key. Choose which store the agent should watch (or connect multiple).

  3. 3

    Add a webhook

    In Lemon Squeezy go to Settings → Webhooks → Create webhook. Paste the LunoGen webhook URL, set a signing secret, and subscribe to order_created, order_refunded, subscription_created, subscription_cancelled, and license_key_created.

  4. 4

    Optional: map products to license types

    If you sell multiple license tiers, upload a simple mapping CSV so the agent knows which product corresponds to which license type when customers ask for a re-send.

Lemon Squeezy use cases

6 total

Automated License Key Delivery on WhatsApp

When license_key_created fires after a sale, the agent pulls the key, stores it to memory against the customer, and emails it along with a personal note — and can later re-send it if the customer asks on WhatsApp.

Webhook + Memorylicense-keysdeliverywebhook
Webhook received: license_key_created — key LSKEY-9A2P-X3Q7 for order 192847
memory_store

License key issued for Chloe Rivera's order. Storing to memory and sending the delivery email...

See full conversation

Re-Send a Lemon Squeezy License Key on Demand

A customer messages you asking for their license key. The agent looks them up by email, pulls the stored key from memory (double-checking against the Lemon Squeezy API), and re-sends it on the spot.

WhatsApp DMlicense-keyssupportmemory

A customer (chloe.r@example.com) says she lost her license key for the Notion Template Bundle — can you re-send it?

memory_recall

Looking up chloe.r@example.com in memory and cross-checking with the Lemon Squeezy License Keys API...

See full conversation

Related integrations

Ready to connect Lemon Squeezy?

Spin up an AI agent in under 2 minutes, plug in your Lemon Squeezy credentials, and start running your workflows from WhatsApp.