What you'll need
A Lemon Squeezy account with dashboard access.
Steps
- 1In your Lemon Squeezy dashboard, go to Settings → API.
- 2Click to create a new API key.
- 3Give it a clear, identifiable name; Lemon Squeezy doesn't let you rename it later.
- 4Copy the key immediately; it's shown only once.
- 5Paste it into Thexly under Settings → Payments → Lemon Squeezy.
What Thexly does with this connection
Thexly reads your store's orders and subscriptions and matches them against sessions your tracking script captured; see how Thexly assigns revenue to a channel for the full mechanism. The only write call Thexly makes with this key is registering its own webhook endpoint on connect (and removing it if you disconnect). It never creates, modifies, or refunds an order.
Thexly's tracking script automatically appends the visitor's session to any Lemon Squeezy checkout link on your page before they click it, so most stores need no extra code. If you generate checkout URLs yourself (server-side), pass the session as checkout[custom][thexly_session_id]. Call window.thexly.getSessionId() from your checkout page to get it.
Troubleshooting
- Key rejected on save: check for extra whitespace copied along with the key; Lemon Squeezy keys are long and easy to truncate when copying.
- Lost your key: Lemon Squeezy can't show it to you again. Go back to Settings → API, remove the old one, and create a fresh key.