Skip to main content

Migrate from Lemon Squeezy

Lemon Squeezy has closed sign-ups. On 31 March 2027 it stops processing payments, and its License API stops answering, so every app that still checks a key there stops unlocking.

Licensr has an import wizard for this move. Paste a Lemon Squeezy API key, check what it found, and confirm. Your products, plans, and license keys are created for you. Then you point your app at Licensr.

How the import wizard works​

  1. It reads your store. You paste an API key. The wizard lists your products, plans, and license keys, and shows how many fit your Licensr plan. Nothing is saved yet.
  2. You review and confirm. Leave out anything you do not want, answer the few questions it cannot decide for you, and press Import.
  3. It does the rest. Your products, plans, and keys are created. Nobody is emailed. Your customers keep the license key they already have, so nobody pastes a new one.

You can run it again whenever you like. New sales and renewals are added, and nothing is imported twice.

No Licensr account yet? Start free and import on the migration page takes you through sign-up and straight into the wizard.

The wizard does this for youYou do this
Creates your products and plans from your Lemon Squeezy storeUpdate your app to check licenses with Licensr, or hand our prompt to a coding agent
Imports your license keys, including ones that were never activatedRelease that update well before 31 March 2027
Tells you how many licenses your plan has room for before anything is writtenConnect your own Stripe, Mercado Pago, PayPal, or Razorpay account
Keeps every imported key workingChoose how each subscription continues (see Subscriptions)

Two things change for you. Tax filing becomes yours, because Licensr checkout does not calculate or remit VAT, GST, or sales tax. And subscriptions need one decision from you.

Ways to do it​

In the dashboard, open Products and press Import from Lemon Squeezy. You need the Admin role.

  1. Paste an API key. In Lemon Squeezy, open Settings, then API, and create a key for this import. Licensr reads your store with it and does not save it. The key can change your store, so delete it in Lemon Squeezy when you are done.
  2. Check the preview. It creates nothing. It shows each product and its plans, how many keys will be imported, how many are left out and why, and how many licenses your plan has room for. If your key can see more than one store, pick one.
  3. Answer what it cannot decide. For example, a daily or weekly price (Licensr bills monthly or yearly), or a plan with no fixed price (it is left out).
  4. Press Import. Keys go across in batches, with a progress bar. If it stops, press Continue. At the end you can download any rows that could not be imported, with the reason for each.

If your store is bigger than your plan, you do not have to pay first. See the 7-day trial.

Rather not give Licensr the API key? Use a file. Lemon Squeezy has no license key export, so you build the file from its API: download the template from the wizard and ask your coding agent to fill it, using the second prompt on the next tab. The file is read in your browser, and no API key leaves your computer.

The steps, in order​

  1. Run the import wizard. Create a Licensr account if you need one, then import your store. Disabled and expired keys are left out. Paid keys that were never activated come across.
  2. Update your app and release it early. Replace the Lemon Squeezy license calls with the Licensr SDK, or point the old calls at the compatible URLs in the reference. Versions your customers already installed keep calling Lemon Squeezy until they update, and it stops answering on 31 March 2027. The sooner the update ships, the fewer customers are on an old version that day.
  3. Connect payments and move new sales. Connect Stripe, Mercado Pago, PayPal, or Razorpay. Imported plans carry the Lemon Squeezy price for reference but cannot take a payment yet: with Stripe, open each imported plan and choose its Stripe price. Then send new buyers to your buy page (/buy/your-slug).
  4. Import once more, then settle subscriptions. Run the wizard again just before you stop selling on Lemon Squeezy, so the last sales and renewals are in. Then choose how each subscription continues, as described under Subscriptions.

You are done when every active customer has been imported, a license check from your released app succeeds against Licensr, new sales land on your payment account, and nothing in your app calls Lemon Squeezy any more.

Subscriptions​

A subscriber's key works until the end of the period they paid for at Lemon Squeezy. What happens after that is your choice, and you can choose differently for each subscriber. You make both choices in the dashboard, on Products → Imported from Lemon Squeezy.

Choice 1: Lemon Squeezy moves the subscription to your Stripe account. Lemon Squeezy's own migration tool (in your Lemon Squeezy dashboard, under Migration) moves card subscriptions to a Stripe account you own. The billing date, price, and saved card stay the same, and the customer does nothing. These subscriptions then run on Stripe Managed Payments, so Licensr does not bill them or see their renewals. Stripe Managed Payments only accepts businesses based in 37 countries in North America, Europe, and Asia Pacific. Latin America and India are not on the list, so if your business is there, this choice is not open to you. Once Lemon Squeezy has moved them, select those customers and press Remove the end date. Their key keeps working until you turn it off, which you do when a customer cancels in Stripe.

Choice 2: The customer subscribes again with you on Licensr. Select them and press Email the selected customers. Each one is told their key keeps working and asked to subscribe again. They open their account page and press Keep my subscription. They keep the same key, and the first payment is on the day their Lemon Squeezy period ends, so nobody pays twice. This needs payments through Stripe, a Stripe price on the plan, and the customer account page turned on (it is on unless you turned it off). A customer who buys on your buy page instead gets a new key, because anyone can type an email there.

Choice 2 is the only option for customers Lemon Squeezy cannot move: PayPal subscribers, customers who opt out of the move, usage-based subscriptions, and every subscriber of a business outside Stripe's 37 countries. If you do not sell with Stripe, those customers buy on your buy page and enter the new key they receive.

While you run both​

Between your first import and the day you stop selling on Lemon Squeezy, Licensr does not hear about what happens there. A subscriber who renews at Lemon Squeezy keeps the old end date in Licensr, and a key you refund there keeps working here, until you import again. Importing again fixes both. A license that a Licensr subscription now pays for, or that you turned off in Licensr, is left alone.

Reference​

Concept map​

Lemon SqueezyLicensrNotes
Store / productPlugin (plugin_slug)Activation mode (seat or domain) is fixed at creation.
VariantPlanPrice, seat or domain cap, optional feature_flags.
License keyLicense, same key stringImported keys stay as the UUID the customer already has. New sales get a lic_... key.
Activation (instance_id)ActivationNot copied. The next check of an installed app takes a seat and returns the same instance id the app sent.
License API, no API keyClient API key (pk_live_...) plus the license keyThe product key is a Bearer token. The customer's key stays in the body.
Merchant of Record checkoutYour payment account/buy/your-slug. Tax is yours.
Customer portalBranded portalCustomers deactivate a device and manage a subscription sold on Licensr.

Seller API​

GET /v1/seller/plans lists the product's plans so a script can map a variant to a plan_id.

A server key belongs to one product. A store with three products needs three server keys, and each import call goes to the product that key belongs to. The products and plans must exist first: create them in the dashboard, or let the dashboard importer create them.

POST /v1/seller/licenses/import accepts up to 100 rows. Each row needs customer_email, plan_id, external_id (the Lemon Squeezy license id), and the key when you want that exact key to keep working.

  • status: inactive is a paid key with no activations yet and is stored as a live license. disabled and expired are skipped and not stored.
  • Send max_seats for that key, or null when Lemon Squeezy says unlimited. Omit max_seats to use the plan's limit.
  • expires_at is the key's own expiry, or the subscription's current period end when the key has none. Always send it for a subscription key: a key with no end date is treated as bought outright, and a later expired from Lemon Squeezy does not turn it off. A date in the past is treated as an expired key and skipped.
  • Send external_meta with the numeric store_id, product_id, variant_id, and license_key_id, plus order_id, order_item_id, customer_id, and subscription_id when you have them. An app that checks those ids still accepts the key.
  • customer_name is stored and returned only when that product shows the buyer's email.

The call does not email anyone and does not send a webhook. dry_run: true writes nothing.

Each row comes back with an outcome:

OutcomeMeaning
createdA new license.
updatedThis external_id was imported before, and its end date, seat limit, or status changed. It is now current.
already_importedImported before and nothing changed.
skippedDisabled or expired, so not stored.
errorNot imported. error says why, and the other rows in the batch are not affected.
errorWhat it means
invalid_emailcustomer_email is not an email address.
invalid_license_keykey is not a Lemon Squeezy key (a UUID).
invalid_external_idexternal_id is not a number.
invalid_external_metaA value in external_meta is not a number, or the name is not one listed above.
invalid_expiryexpires_at is more than ten years away.
invalid_seatsmax_seats is not a whole number from 1 up.
plan_not_foundplan_id is not an active plan of this product.
plan_cap_exceededYour Licensr plan has no room for another active license.
import_limitThis product already holds 20,000 imported licenses.
key_not_acceptedThat key is already on this product under another external_id.
imported_in_other_modeThe row was imported with a test key. Delete that test license, then import it live.

cap.remaining is the room left after the batch you sent. To know whether a whole store fits, compare the number of keys you will import with cap.limit - cap.active from a dry run of your first batch, and treat any plan_cap_exceeded row as the signal to stop.

The body must be 256 KB or smaller and declare Content-Length. The route allows 10 requests a minute per server key, so a script should wait and try again on 429.

POST /v1/seller/licenses/rotate-imported replaces imported keys with new lic_... keys when you want to retire a leaked key. The new key is returned once. It does not email the customer.

GET /v1/seller/licenses?imported=true lists imported licenses.

Replace activate, validate, and deactivate​

With the SDK:

import {LicensrClient} from '@licensr/sdk';

const client = new LicensrClient({
apiKey: process.env.LICENSR_CLIENT_KEY,
pluginSlug: 'my-plugin',
});

const activation = await client.activate({
licenseKey: userEnteredKey,
activationType: 'seat',
identifier: stableMachineId,
label: 'My Mac',
});

Validate branches on valid and entitlement. An unknown key returns 200 with valid: false, not 404.

Deactivate is client.deactivate({licenseKey, activationId}).

Compatible Lemon Squeezy URLs​

If you would rather not rewrite the calls, and the product has Lemon Squeezy compatibility turned on, change only the address. Replace https://api.lemonsqueezy.com/v1/licenses/ with your store's address, https://api.licensr.app/v1/lemonsqueezy/<your-store>/licenses/. The importer shows the exact address when it finishes; <your-store> is your store's ID, the part after /buy/ in your buy page address.

  • POST https://api.licensr.app/v1/lemonsqueezy/<your-store>/licenses/activate
  • POST https://api.licensr.app/v1/lemonsqueezy/<your-store>/licenses/validate
  • POST https://api.licensr.app/v1/lemonsqueezy/<your-store>/licenses/deactivate

A key is only looked up among your own products, so a copy of one of your keys on someone else's account changes nothing for your customers.

The request and response keep Lemon Squeezy's shape, status codes, and error text, including license_key not found., This license key is expired., and This license key has reached the activation limit. Validate works with or without an instance_id. When the app sends an instance id Licensr has not seen, that check takes a device and the response returns the same id.

Both kinds of key work on these URLs: the Lemon Squeezy keys you imported, and the lic_... keys Licensr issues for new sales on that product. If your app checks what a key looks like before sending it, let it accept a key that starts with lic_ too.

The buyer's email is partly hidden and the name is empty unless you turn on full email for that product. The dashboard importer turns these URLs on for the products it creates; for any other product, open it on the Products page and use Moving from Lemon Squeezy in its settings. They allow 60 requests a minute from one IP address, the same as Lemon Squeezy, and they do not answer browser requests from another origin. They are a bridge, not part of the long-term API, and they may be removed after 31 March 2027. A new build should call the Licensr SDK.

What does not transfer​

  • The subscription billing. The current period is copied onto the key. Billing continues either through Lemon Squeezy's move to your Stripe account or through a new subscription on Licensr, as described under Subscriptions. Until then, a renewal, cancel, or refund on Lemon Squeezy reaches Licensr only when you import again.
  • Daily, weekly, and every-N prices. Licensr sells monthly or yearly. The importer asks which of those new sales should use. Current keys still import.
  • A trial on the imported plan. The trial is not copied, so the first check of a lifetime key does not start a countdown. Put a trial for new buyers on its own plan.
  • The buyer's email and name, unless you say the app compares them. They stay masked otherwise.
  • Tax filing. You file the VAT and GST Lemon Squeezy used to remit.
  • The old device count. It is not copied. The next check takes one seat and answers with the instance id the app already has.
  • Disabled, expired, and refunded keys. They are not imported. A paid key that has never been activated is imported.

Limits​

Importing counts toward your Licensr plan's limits. The preview and the dry run report the room you have left. Upgrade before an import that shows no room.

Licensr planProductsActive licenses
Free125
Indie3500
Studio51,500
AgencyUnlimited5,000

The 7-day trial on Free​

If an import is larger than your plan, you do not have to pay first. The first import that goes over the plan opens a one-time 7-day trial with the Agency limits (5,000 licenses, unlimited products). It starts by itself, only once per organization, and only when the import fits those limits. The importer tells you before you confirm, recommends the cheapest plan that holds what you imported, and a banner in the dashboard counts the days down. We email you at the start, with 3 days left, and on the last day.

When the 7 days end, new licenses and products stop at your plan's limits, but the keys you imported keep working for 14 more days so your customers are not cut off. After that, keys above the limit are turned off, newest first. Choose a plan at any time in Billing and nothing is turned off.

A product can hold at most 20,000 imported licenses. The dashboard importer reads up to 10,000 license keys from a store in one go; use the script for a larger store. If you later move to a smaller plan than your licenses need, the newest licenses are turned off first.

Questions​

Do my customers have to do anything? One-time and lifetime buyers do nothing once they are on your updated app. Subscribers whose subscription Lemon Squeezy moves to your Stripe account do nothing either. The others press Keep my subscription on their account page before their paid period ends.

What happens to customers who do not update the app? Their version keeps calling Lemon Squeezy, which stops answering on 31 March 2027. Release the update early and tell them to install it.

Can I try it first? Yes. The wizard's preview and dry_run: true in the Seller API write nothing. Do not rehearse with a test server key on the product you will use for real: a row imported in test mode has to be deleted before it can be imported live.

Can I undo an import? Not in one step, but nothing was emailed, so your customers saw nothing. You can archive the imported product and turn off individual licenses in the dashboard.

A key leaked. Can I replace it? Yes, with POST /v1/seller/licenses/rotate-imported. Send the customer the new key yourself.

Someone asks for a refund on an old Lemon Squeezy order. Refund it in Lemon Squeezy, then import again or turn the license off in Licensr.

Further reading​