All guides

Lemon Squeezy Is Shutting Down: How to Move Your License Keys Before March 31, 2027 Without Breaking Activations

Lemon Squeezy stops payments on March 31, 2027, and Stripe Managed Payments won't move your license keys. How to migrate keys without breaking activations.

Lemon Squeezy migration illustration for Lemon Squeezy Is Shutting Down: How to Move Your License Keys Before March 31, 2027 Without Breaking Activations

Lemon Squeezy is winding down. On November 16, 2026 it closed new store sign-ups, and it will stop processing payments, including subscription renewals, on March 31, 2027. Lemon Squeezy says that deadline will not be extended (official announcement).

Most coverage focuses on the payment move. For software sellers, the harder part is the license keys. Customers have already typed those keys into installed copies of your app, and those copies call Lemon Squeezy's License API. This guide covers that half of the migration: what to export, how to keep existing keys working, how to ship the app update, and how to connect the new payment provider so renewals and refunds keep updating licenses.

Dates and quotes in this article come from Lemon Squeezy's own pages as of November 23, 2026. Re-check the migration guide before you act, because the details may change.

The Lemon Squeezy shutdown timeline

DateWhat happens
November 16, 2026Lemon Squeezy stops accepting new users and new store sign-ups.
December 2, 2026Migration tooling for Stripe Managed Payments launches for eligible stores at app.lemonsqueezy.com/migration.
Mid-January 2027Lemon Squeezy's recommended latest date to start a migration. It estimates the full process can take up to 8 weeks.
March 31, 2027Lemon Squeezy stops processing transactions, including subscription renewals.

Source: Lemon Squeezy is winding down. Your store keeps working as usual until March 31, 2027, so you can keep selling while you prepare.

What Stripe Managed Payments migrates, and what it leaves behind

Lemon Squeezy recommends moving to Managed Payments, Stripe's merchant-of-record product. The migration tooling creates your products in Stripe, migrates customers with a report mapping Lemon Squeezy customer IDs to Stripe customer IDs, and moves eligible subscriptions after giving customers at least 14 days' notice. Most card subscriptions move without customers re-entering payment details. PayPal subscriptions cannot migrate.

License keys are a different story. Lemon Squeezy's digital fulfillment page is explicit:

“Managed Payments doesn’t deliver files, download links, or license keys.”

It also warns that if you don't migrate historical orders and subscriptions to a new fulfillment solution by the deadline, “customers may lose access to their license keys, files, and links after March 31, 2027.” Your options are to host fulfillment yourself or use a third-party provider that can migrate your historical orders, subscriptions, license keys and customer entitlements.

So whichever payment provider you choose, license keys need their own plan.

Your three options

  • Managed Payments plus a licensing service. Stripe handles checkout, tax and disputes; a licensing service holds keys, activations and validation. Managed Payments is only available in supported locations and for eligible digital products, so check eligibility first.
  • Paddle. Paddle is also a merchant of record. Use it if Managed Payments isn't available where your business is based, or if you rely on something it doesn't support. Lemon Squeezy's guide lists PayPal, storefronts, digital fulfillment and affiliates as not included in Managed Payments.
  • Your own Stripe account. This gives you the most control. As Lemon Squeezy notes, if your new provider isn't the merchant of record, “your business becomes responsible for tax compliance in every applicable jurisdiction.” Read merchant of record vs. Stripe before you choose this.

Going forward, we recommend Paddle or Stripe for new PermitCore Store setups. PermitCore Store connects your own Stripe or Paddle account. With Stripe, a Store can use standard Stripe Checkout, Stripe Tax, or Managed Payments for eligible accounts and products. See the Store setup guide, Paddle license keys and software licensing with Stripe.

Step 1: Export everything before you need it

Export now, even if you plan to migrate in January. Lemon Squeezy's dashboard can email you an orders CSV, but that file does not include license keys or activations. The API gives you both through GET /v1/license-keys and GET /v1/license-key-instances. Each license key object includes the full key, product_id, activation_limit, instances_count, status, expires_at and user_email. Each instance includes its identifier and name.

Create an API key in your Lemon Squeezy account settings, keep it in an environment variable, and run this with Node.js 18 or newer:

// export-ls-licenses.mjs
// Run: LS_API_KEY=... LS_STORE_ID=... node export-ls-licenses.mjs
import { writeFile } from "node:fs/promises";

const BASE = "https://api.lemonsqueezy.com/v1";
const headers = {
  Accept: "application/vnd.api+json",
  "Content-Type": "application/vnd.api+json",
  Authorization: `Bearer ${process.env.LS_API_KEY}`,
};

async function listAll(path) {
  const rows = [];
  const sep = path.includes("?") ? "&" : "?";
  let url = `${BASE}/${path}${sep}page[size]=100`;
  while (url) {
    const res = await fetch(url, { headers });
    if (res.status === 429) {            // rate limited: wait, then retry
      await new Promise((r) => setTimeout(r, 5000));
      continue;
    }
    if (!res.ok) throw new Error(`${path}: HTTP ${res.status}`);
    const body = await res.json();
    rows.push(...body.data);
    url = body.links?.next ?? null;      // absent on the last page
  }
  return rows;
}

const store = process.env.LS_STORE_ID;
const keys = await listAll(`license-keys?filter[store_id]=${store}`);
const instances = await listAll("license-key-instances");

const opts = { mode: 0o600 };            // readable by you only
await writeFile("ls-license-keys.json", JSON.stringify(keys, null, 2), opts);
await writeFile("ls-license-key-instances.json", JSON.stringify(instances, null, 2), opts);
console.log(`${keys.length} keys, ${instances.length} instances exported`);

List endpoints return at most 100 results per page, and the script follows links.next until it runs out, as described in Lemon Squeezy's pagination reference. Also export customers, orders and subscriptions, which the migration guide asks you to back up. You will want them for support and refunds long after the store is closed.

Treat the export as a secret. These files contain every customer's plaintext license key. Keep them off shared drives and out of git, and delete working copies when the migration is done.

Check the counts before relying on the files: the key total should match your dashboard, and you should spot-check a few customers end to end.

Step 2: Import existing keys so customers never re-enter them

The goal is that a customer's existing Lemon Squeezy key keeps working, unchanged, against the new system. In PermitCore, that's possible because validation never checks the key's format. The server hashes whatever string the app sends and looks that hash up. A Lemon Squeezy key like 80e15db5-c796-436b-850c-8f9c98a48abe works exactly as it is.

Create the matching products in PermitCore first. Then convert the export into a CSV for Licenses → Import. The column names below match the wizard's Generic CSV preset, so the mapping step fills itself in:

// to-permitcore-csv.mjs
import { readFile, writeFile } from "node:fs/promises";

// Lemon Squeezy product_id -> exact PermitCore product name
const PRODUCT_MAP = {
  "123456": "Acme Editor Pro",
  "123457": "Acme Editor Team",
};
const UNLIMITED_CAP = 25; // explicit cap for keys with no Lemon Squeezy limit

const keys = JSON.parse(await readFile("ls-license-keys.json", "utf8"));
const cell = (v) => `"${String(v ?? "").replaceAll('"', '""')}"`;
const rows = [["key", "product", "max_activations",
               "current_activations", "expires_at", "email"]];
const review = [];

for (const { attributes: a } of keys) {
  const product = PRODUCT_MAP[String(a.product_id)];
  if (!product || a.disabled || a.status === "disabled") {
    review.push(`${a.key_short} (${a.status}, product ${a.product_id})`);
    continue;
  }
  const max = a.activation_limit ?? UNLIMITED_CAP;
  const used = Math.min(a.instances_count ?? 0, max);
  rows.push([a.key, product, max, used, a.expires_at ?? "", a.user_email]);
}

const csv = rows.map((r) => r.map(cell).join(",")).join("\n");
await writeFile("permitcore-import.csv", csv, { mode: 0o600 });
console.log(`${rows.length - 1} rows ready; review manually:`, review);

Upload permitcore-import.csv under Licenses → Import with the Generic CSV preset, review the column mapping, and check the preview. The wizard hashes each key in your browser before sending it. Rows with a missing key, an unknown product or an invalid value are flagged and skipped without blocking the rest of the file. Each result row says Created, Duplicate or Failed, and you can download a CSV of anything that didn't import cleanly.

A few decisions to make before you import:

  • Re-imports are safe. A key that already exists comes back as Duplicate, which is not an error. You can export and import again later to pick up keys sold in the meantime.
  • Passphrase. It's optional for imports. Skipping it doesn't affect validation or activation; it only means you can't reveal the plaintext key again from the admin panel. If you skip it, keep your original export somewhere secure.
  • Unlimited keys. PermitCore needs an explicit activation cap, so choose a number you're comfortable with for keys that had no limit in Lemon Squeezy.
  • Disabled keys. The script leaves disabled keys and unmapped products out and lists them for manual review instead of silently reactivating them.

If you'd rather script the import, the wizard uses POST /api/licenses/import, which accepts up to 500 rows per request with SHA-256 key hashes rather than plaintext keys. The full field list is in Migrating from Other Systems.

What happens to existing activations

Mapping instances_count to current_activations carries over the count of used seats. For example, a key with 3 of 5 seats used keeps 2 free seats. It does not recreate the device records themselves: Lemon Squeezy instance identifiers belong to Lemon Squeezy's License API and mean nothing to another validation service. Decide your re-enrollment policy in advance. A device that activates again after the switch can take another seat, so you might import the count and raise the cap slightly during the transition, or import zero used seats and let devices re-enroll. Test both with a real key before choosing. The licensing migration guide covers this in more detail.

Step 3: Ship an app update with a short dual-check window

Importing keys doesn't change installed software. Every copy of your app already out there calls api.lemonsqueezy.com/v1/licenses/validate, and only a new release can change that. The new release should validate against POST /api/v1/validate and read the key from wherever the old version stored it, so customers aren't asked for it again.

Between your first import and the day you stop selling on Lemon Squeezy, new keys may appear in Lemon Squeezy before your next import. A short fallback window covers that gap. Only use it when PermitCore says the key is unknown, check that the key belongs to your store, and end it on a fixed date:

const PERMITCORE_VALIDATE = "https://api.permitcore.dev/api/v1/validate";
const PRODUCT_ID = "7f3e9a2b-1c4d-4e8f-9a6b-3d2c1e0f5a8b"; // your PermitCore product
const LS_STORE_ID = 12345;                // your Lemon Squeezy store
const LS_PRODUCT_IDS = [123456];          // products this app accepts
const LS_FALLBACK_UNTIL = Date.parse("2027-01-31T00:00:00Z"); // your final import

export async function checkLicense(key) {
  const res = await fetch(PERMITCORE_VALIDATE, {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ licenseKey: key, expectedProductId: PRODUCT_ID }),
  });
  const pc = await res.json();
  if (pc.isValid) return { ok: true, source: "permitcore", license: pc };

  // Fall back only for keys PermitCore has never seen, and only until the cutoff.
  if (pc.errorCode !== "NotFound" || Date.now() >= LS_FALLBACK_UNTIL) {
    return { ok: false, message: pc.message };
  }

  const ls = await fetch("https://api.lemonsqueezy.com/v1/licenses/validate", {
    method: "POST",
    headers: { Accept: "application/json" },
    body: new URLSearchParams({ license_key: key }),
  }).then((r) => r.json());

  const ours = ls.meta?.store_id === LS_STORE_ID &&
               LS_PRODUCT_IDS.includes(ls.meta?.product_id);
  return ls.valid && ours
    ? { ok: true, source: "lemonsqueezy-transition" } // picked up by your next import
    : { ok: false, message: ls.error ?? "License key not recognised" };
}

The store_id and product_id checks matter. Lemon Squeezy's validate endpoint needs no API key, so without them a key from any other Lemon Squeezy store would pass. Set LS_FALLBACK_UNTIL to the date of your final import after checkout has moved, and never later than March 31, 2027. After that, remove the fallback in the next release. If you use an official SDK, the same validate call is available there; see SDKs.

Step 4: Reconnect renewals, refunds and failed payments

A key is only as current as the payment events behind it. When you move checkout, every renewal, cancellation, refund and failed payment has to update the license, or customers keep access they didn't pay for, or lose access they did pay for.

If you sell through PermitCore Store, choose Paddle or Stripe under License Store → Settings, connect and verify the account, map products and prices, and run a sandbox purchase before going live. PermitCore checks each signed provider notification against the provider's data before issuing or updating a license. A success-page redirect alone never issues a key. The Store guide walks through both providers.

Keep two things in mind:

  • Changing the Store's provider affects new checkouts only. Existing subscriptions stay with the provider they started on. Subscriptions started on Lemon Squeezy keep renewing there until Lemon Squeezy stops processing on March 31, 2027, so they need their own move: Lemon Squeezy's migration tooling for Managed Payments, or its migration intake form for another provider. Lemon Squeezy notes that only card-paid subscriptions can move to another provider.
  • Keep your own systems in sync. If your backend tracks license state, subscribe to PermitCore webhooks such as license.created, license.updated and license.revoked, verify the signature over the raw body, and process each event ID once. See revoking a license after a failed payment for the access policy side.

If you sell through PermitCore Store with Lemon Squeezy today

Because Lemon Squeezy is shutting down, PermitCore is removing it as an option for new Store setups. Stores that haven't connected Lemon Squeezy won't be able to choose it.

If your Store already uses Lemon Squeezy, it keeps working until Lemon Squeezy stops processing payments on March 31, 2027. Keys issued by PermitCore Store are already held in PermitCore, not in Lemon Squeezy, so changing the payment provider doesn't change your customers' keys. We'll help you move to Paddle or Stripe with existing license keys and activations intact, and you'll get advance notice before the Lemon Squeezy integration is switched off. Questions: info@permitcore.dev.

What happens to customers who never update the app

Older versions keep calling Lemon Squeezy's License API. Lemon Squeezy hasn't said exactly how that API will behave after March 31, 2027, beyond the warning that customers may lose access to their keys. Plan as if old versions will stop validating.

  • Ship the update well before March, and make it the default download everywhere you link.
  • Email customers with a direct download link, and tell them their existing key keeps working.
  • Give support a short reply for “my license stopped working”: update to the current version, and use the same key.
  • If your old version caches a successful check for offline use, factor in how long that cache lasts before it re-checks.

See what happens if a license server goes down for designing the next release so a provider outage never locks out paying customers. Our exit plan explains what happens to your keys if you ever leave PermitCore.

Countdown checklist to March 31, 2027

Now

  • Export license keys, instances, customers, orders and subscriptions through the API. Check the counts.
  • Decide on a provider: Managed Payments (check eligibility), Paddle, or your own Stripe account.
  • Consider removing PayPal from Lemon Squeezy checkout, since PayPal subscriptions can't migrate.
  • Create products in PermitCore and import a small test batch. Validate a real migrated key.

From December 2, 2026

  • If you're eligible, open the Migration Hub and run the sandbox migration Lemon Squeezy provides.
  • Connect Paddle or Stripe in PermitCore Store and complete a sandbox purchase, refund and failed renewal.
  • Release the app update with the dual-check window.

By mid-January 2027

  • Start the payment migration, as Lemon Squeezy recommends.
  • Move new checkouts to the new provider and update every buy link. Lemon Squeezy notes that none of them redirect automatically.
  • Run the final export and import. Duplicate results for keys you already imported are expected.

Before March 31, 2027

  • Confirm every remaining subscription has moved or has a plan.
  • Ship the release that removes the Lemon Squeezy fallback.
  • Keep a secure archive of the export for support, refunds and tax questions.

FAQ

Can I keep my Lemon Squeezy license key format?

Yes. PermitCore validates by hashing the exact key string, so imported Lemon Squeezy keys keep working unchanged. Preserve the original value exactly, including case and separators. New keys issued later can use PermitCore's own format, and both kinds work side by side.

Do old activation counts carry over?

The count does, through the activations-used column. Individual device records don't, because Lemon Squeezy instance IDs only mean something to Lemon Squeezy. Plan how re-activating devices should count against the limit.

What if Managed Payments doesn't support my country?

Lemon Squeezy says you'll need to move to another provider, and offers a data export guide and a migration intake form for moving card subscriptions. Paddle is a merchant-of-record option to evaluate. Your own Stripe account is another, if you're prepared to handle tax compliance yourself. Check each provider's supported countries and payment methods before committing.

Do I have to switch payment providers and licensing at the same time?

No, and it's usually safer not to. Import keys and ship the app update first, while Lemon Squeezy still takes payments. Then move checkout. Each step is easier to test and roll back on its own.

Your keys, your customers, no forced re-entry. Start with the import guide, then connect Paddle or Stripe using the Store setup guide. Need help planning the move? Write to info@permitcore.dev.

Put the guide into practice

Build your first licensed product without building a license server.

Create a free PermitCore account, issue a test license, and validate it from your application.