Checkout Syncfor MailerLite · by Tofu Labs
Checkout Sync forKitMailerLite

Connect Lemon Squeezy

No API key needed. You add one webhook in Lemon Squeezy with a URL and a secret from your Checkout Sync settings.

  1. In your Checkout Sync settings, press Connect a checkout, then Lemon Squeezy, then Connect Lemon Squeezy. You'll see a URL and a signing secret.
  2. In Lemon Squeezy, open Settings → Webhooks and press the + button.
  3. Paste the URL into Callback URL and the secret into Signing secret.
  4. Tick these events: order_created, order_refunded, subscription_created, subscription_updated, subscription_cancelled, subscription_expired, subscription_resumed, subscription_payment_success, subscription_payment_failed, subscription_payment_refunded.
  5. Save the webhook.

To check it works, make a test-mode purchase in Lemon Squeezy. It shows up under Recent activity within a few seconds and doesn't count toward your plan.

More than one Lemon Squeezy store? Add the same webhook in each store. They all report to the same MailerLite account.

Good to know

Import past customers

The webhook only sees new events. To bring in buyers from before:

  1. In Lemon Squeezy, open Settings → API and press the + button. Name the key Checkout Sync import and create it.
  2. In your Checkout Sync settings, under Import past customers, pick how far back to go, paste the key and press Import.

We use the key only for that import and delete it when the import ends (2 days at most). You can delete it in Lemon Squeezy afterwards too. Imported buyers get their fields filled in and join no groups unless you tick Also put them in my groups. Imports don't count toward your plan. MailerLite's anti-spam policy only lets you email buyers from the last 2 years without other permission, so if you tick the box, keep the range to a year or less ("Everything" is refused with it).