Digital product and subscription revenue — read-only via API key.
Why founders connect Lemon Squeezy
Lemon Squeezy is popular with indie hackers selling digital products and SaaS subscriptions. Fold pulls your daily revenue, new subscriptions, and churn into a single view — without having to refresh the LS dashboard to answer the question 'did yesterday beat last week?'
How your data flows
This is the exact sequence every time Fold runs its daily sync. Nothing runs outside this pipeline.
Encrypted API key
Your API key is stored encrypted (AES-256) in our database. It is sent only to Lemon Squeezy's API over TLS 1.3 and never logged.
4 HTTP GET calls per sync
Fold makes 4 read-only requests to Lemon Squeezy's API — the exact endpoints are documented in the section below. No write requests are ever made.
Personal data stripped before storage
The raw API response is processed in memory. Only aggregate numbers (totals, counts, rates) are extracted. Any field containing personal information — names, emails, IDs — is discarded and never written to disk.
AES-256 at rest · row-level isolation
The filtered snapshot is written to your isolated tenant in our database, encrypted at rest. Row-level security ensures no other Fold user can read your data — not even via a misconfigured query.
Overview · Analytics · AI Digest
The stored aggregate numbers surface across your Fold dashboard — the Overview tile, Analytics tab charts, and the AI-generated daily digest. No raw data from the API is ever returned to the frontend.
Step 1 — How you connect
Here is precisely what happens when you connect Lemon Squeezy to Fold, step by step.
Step 2 — Permissions we request
We request the minimum permissions needed. No more.
Step 3 — API calls Fold makes
These are the exact API endpoints Fold calls during each sync, and why.
GET /v1/orders
Fetch order counts and gross revenue for the period.
GET /v1/subscriptions
Count active, cancelled and paused subscriptions; calculate MRR.
GET /v1/products
Revenue breakdown by product.
GET /v1/subscription-invoices
Renewal revenue and failed payment tracking.
API impact: Fold makes 4 API requests per sync. Lemon Squeezy's API is rate-limited to 120 requests/minute — our usage is negligible.
What we store
Every field we persist — with a real example and the reason it exists. Nothing more is stored.
| Field | Example value | Why we store it |
|---|---|---|
| Gross revenue (period) | $3,100 this month | Revenue KPI tile. |
| Net revenue after LS fees | $2,790 | Actual income metric. |
| Active subscription count | 94 active | MRR base metric. |
| New subscriptions (period) | 11 new | Growth metric. |
| Cancelled subscriptions (period) | 4 cancelled | Churn metric. |
| Revenue by product | Starter: $1,200 / Pro: $1,900 | Product breakdown chart. |
| Refund count and total | 2 refunds, $74 | Refund rate metric. |
What a daily sync actually stores
This is a real-looking example of the row Fold writes to your account after a single sync. Every field, every value — nothing hidden.
{
"date": "2025-04-23",
"gross_revenue": "3100.00",
"net_revenue": "2790.00",
"active_subscriptions": "94",
"new_subscriptions": "11",
"cancelled_subscriptions": "4",
}
No customer names. No emails. No transaction IDs. Just numbers.
What we never store
These fields are explicitly excluded. Even if the Lemon Squeezy API returns them, Fold ignores and discards them before any storage step.
What Fold never does
These aren't just policies — they're technically impossible given the permissions we request. Lemon Squeezy's own API enforces them.
Privacy note — Lemon Squeezy specific
Your Lemon Squeezy API key is stored encrypted (AES-256) in our database and is never logged or transmitted in plaintext. You can rotate or delete it from Lemon Squeezy at any time.
Data retention
Synced metrics are retained while your Fold account is active. Disconnecting or closing your account purges all LS-sourced data within 24 hours.
Refresh frequency
Automatic sync every 24 hours. Manual refresh available from Settings.
How to revoke access
You can disconnect Lemon Squeezy from Fold at any time — from either side. Both options immediately stop all data access.
From Fold
Settings → Lemon Squeezy → Disconnect. All synced data is deleted immediately.
From Lemon Squeezy directly
Lemon Squeezy Dashboard → Settings → API → Delete the API key named "Fold Analytics".
Open Lemon Squeezy settingsSecurity standards
AES-256 encryption at rest
Your API key is encrypted with AES-256 before being written to our database. It is never stored, logged, or returned in plaintext.
TLS 1.3 in transit
All API calls from Fold to Lemon Squeezy use TLS 1.3. Your credentials cannot be intercepted in transit.
Read-only enforcement
Lemon Squeezy's own API enforces the read-only permissions server-side. Even if Fold's code had a bug, the platform would reject any write request.
Row-level security
Your synced data is isolated in our database with row-level security. No other Fold user can query your data.
FAQ
Yes. Your API key is encrypted with AES-256 before being written to our database. It is never logged, never returned via our API, and never shared with any third party.
No. We only read data. While Lemon Squeezy's API key doesn't yet support read-only scoping, Fold's code only calls GET endpoints and never performs any write operation.
No. We only store aggregate counts and totals. Individual customer names, emails, and order details are never extracted or stored by Fold.
Other live integrations
Ready to connect Lemon Squeezy?
7 days full access. Connect Lemon Squeezy and every other live integration. Cancel anytime. Your data deleted on request, immediately.