Skip to main content
Lemon Squeezy closes on 31 March 2027. When you move to Stripe, connect Stripe here too. After that date Lemon Squeezy can no longer be connected; payments already recorded stay.
Connect Lemon Squeezy by pasting an API key and choosing your store. CrispStats imports your past orders and subscription payments, creates its own webhook on the store, and records orders, renewals and refunds from then on. Put the visitor id in the checkout’s custom data and each order is tied to the visit that led to it.

What is recorded

Every order is read back from Lemon Squeezy’s API with your key before it counts as verified revenue. The product is the first item’s product and variant name, and the customer’s email is hashed and masked before storage.
A Lemon Squeezy order does not say whether it started a subscription, so the first payment of a subscription is recorded as one_time. It counts toward Revenue and New revenue; the subscription counts toward MRR from its first renewal.

Connect Lemon Squeezy

1

Open the Lemon Squeezy panel

In CrispStats, open the site’s Settings, then Integrations. Select Connect a payment provider and choose Lemon Squeezy.
2

Create the API key

Under Lemon Squeezy API key, select Create an API key in Lemon Squeezy. Then:
  1. Choose the + next to API keys.
  2. Name it CrispStats and pick the latest expiry date offered.
  3. Copy the key and paste it here.
The key is a long code that starts with eyJ.
3

Paste the key and choose the store

Paste the key. CrispStats checks it with Lemon Squeezy and lists your stores under Store. With one store it is picked for you.
4

Connect

Select Connect Lemon Squeezy. CrispStats creates one webhook on the store and the row shows Connected to your store. Live. Lemon Squeezy closes on 31 March 2027.
5

Pass the visitor id at checkout

What the key can do

Lemon Squeezy keys cannot be limited: a key can do anything the API can, including refunds and cancelling subscriptions. CrispStats only reads payments and creates one webhook. The key is stored encrypted, used only on CrispStats’ servers with Lemon Squeezy’s API, and never shown again. Lemon Squeezy keys expire. The panel reads the expiry date from the key: an expired key is refused with “This key expired on” its date, and 14 days before a saved key expires the row asks for a new one. Create it with the latest expiry date offered and paste it on the row.

How fresh the numbers are

Lemon Squeezy sends each order within seconds, and CrispStats checks for new orders and subscription payments every 15 minutes as a safety net. A daily check of the last 48 hours catches refunds on older orders. An order seen more than once is stored once.

Past payments

When you connect, CrispStats imports every order, subscription payment and refund of the chosen store since your first. See revenue history.

Test mode

Lemon Squeezy has separate test and live keys. A key made in test mode gets “This is a test key. Test payments show with a Test tag and never count as verified revenue.” and the choice of Connect in test mode or Use a live key.

Pass the visitor id at checkout

Add the id from crispstats.id() to the checkout’s custom data as crispstats_visitor_id:
When you create the checkout through the Lemon Squeezy API, put it in checkout_data.custom:
An order without it is still recorded and counted, without a visit.

Disconnect

Select Disconnect on the Lemon Squeezy row. CrispStats deletes its webhook on the store and destroys the saved key and signing secret. Payments already recorded stay. If Lemon Squeezy does not let CrispStats remove the webhook, delete it in Lemon Squeezy, under Settings, then Webhooks: it keeps sending sales until it is removed.
Connections made earlier by pasting a webhook signing secret keep working. They cannot import history or verify payments: connect again with a key to add both.

Next steps

Connect Stripe

Moving off Lemon Squeezy: connect Stripe to the same site.

Refunds and renewals

How payment kinds are recorded across providers.

Revenue history

What the import reads and how it avoids counting twice.
Last modified on November 24, 2026