- The Lightspeed API consists of three separate APIs: eCom (C-Series) for the webshop, and Retail R-Series and Retail X-Series for the POS. Each works differently.
- For eCom, you create an API key and a secret in the back office. This is only possible with an Advanced or Professional plan. The POS APIs use OAuth 2.0 (and X-Series also supports personal tokens).
- All three limit the number of requests. A good integration fetches only what has changed and listens for webhooks, instead of requesting everything again and again.
Anyone searching for "lightspeed api" usually wants one thing: to get orders, stock or customers out of Lightspeed and into another system, or the other way round. Think of your accounting, your warehouse, a marketplace or your own dashboard. Before you write a single line of code, you need to know which Lightspeed you have. After that, it is mostly a matter of respecting the limits.
Which Lightspeed API do you need?
That depends on the product your data lives in: the webshop runs on Lightspeed eCom (C-Series), the POS on Lightspeed Retail R-Series or X-Series. Each product has its own API with its own documentation, its own way of logging in and its own limits.
Lightspeed describes itself as "the integrated POS and payments platform for businesses in retail, hospitality and ecommerce" [15]. For an integration, in practice they are separate systems. A retailer with a shop and a webshop therefore often deals with two APIs.
| Product | Purpose | Sign-in | Format |
|---|---|---|---|
| eCom (C-Series) | webshop: products, variants, orders, customers | API key + secret (HTTP authentication) [2] | JSON or XML [2] |
| Retail R-Series | POS: items, sales, customers | OAuth 2.0 [14] | XML by default, JSON with .json [13] |
| Retail X-Series | POS: products, sales, customers | personal token or OAuth 2.0 [11] | JSON [9] |
Not sure which POS you have? Check your contract or the login page of your back office. The documentation also helps: X-Series uses addresses in the form https://<jouw-domein>.retail.lightspeed.app [11], R-Series logs in via cloud.lightspeedapp.com [14].
How does the Lightspeed eCom API work for your webshop?
The Lightspeed eCom API is a REST API that lets you read and change a single webshop's data using a key and a secret. Lightspeed itself says it offers "a powerful set of APIs for developers to create single shop connections" [1].
As examples, Lightspeed mentions integrations with "third party software such as accounting, feedback, email marketing and inventory management software" [1]. A few things to know:
- Two clusters. There is a European cluster (
api.webshopapp.com) and an American cluster (api.shoplightspeed.com). "The two clusters both have different URLs but the API works exactly the same way" [3]. - Language in the URL. A request looks like this:
https://{api_key}:{api_secret}@{cluster_url}/{shop_language}/{resource}.json[2]. The language code (such asnloren) determines the language your product texts come back in [3]. - JSON or XML. If you want XML, replace
.jsonwith.xml[2]. - Pages of up to 250. By default you get 50 results per request, up to a maximum of 250 [5].
- Only what has changed. With
updated_at_minyou request only products changed after a given moment [5]. Note: "not all filters work on every resource" [5].
According to the documentation, a simple test request with curl looks like this [1]:
curl https://api.webshopapp.com/nl/products.json -u {key}:{secret}
How do you create an API key in Lightspeed eCom?
You do this yourself in the back office, via Settings, Store Settings, Developers. You need an Advanced or Professional plan [8].
Open the developer settings
Back office: Settings > Store Settings > Developers
Choose New API key and give the key a name that says what it is for, such as "accounting" or "warehouse" [7].
Enable the key and choose the permissions
Under SETTINGS
Turn the switch on and tick only the permissions the integration really needs [7]. An integration that only reads orders has no need to delete products.
Copy the key and secret
Under DETAILS
Copy the key and click Show to see the secret [7]. Store both in a password vault, not in an email or spreadsheet.
Note. By default you get one key. "To generate more than one API key, please contact us" [7]. Apps already running on your shop do not necessarily share your key, but two of your own integrations on the same key do share the same limit.
How does the Lightspeed POS API work (R-Series and X-Series)?
Both POS APIs use OAuth 2.0: the store owner grants an app permission and the app receives a token. With the X-Series, as a store owner you can also create a personal token for your own account.
R-Series
"The Lightspeed Retail POS (R-Series) API currently uses OAuth 2.0 access tokens for authenticating requests" [14]. Two timings matter here. The authorisation code expires after 60 seconds, so you must exchange it straight away [14]. An access token is normally valid for 60 minutes, after which you use the refresh token to request a new one, without the user having to do anything [14]. XML is the default format; you get JSON by adding .json to the URL [13].
X-Series
The X-Series offers two routes [9]:
- Personal tokens "are for use by individual retailers, to connect to their Lightspeed Retail (X-Series) account" [9]. An admin creates them in the web application, but only on the Plus plan [11].
- Add-ons "are registered independently by Developers, and can be connected to multiple retailers" [9]. They use OAuth 2.0, and Lightspeed recommends OAuth for integrations with store accounts [11]. An add-on that has not (yet) been approved can be connected to no more than 30 stores [11].
Important if you are starting now: the X-Series has moved to date-based versions, such as 2026-01. Versions 0.9 and 2.0 no longer get new features and "new integrations should build directly against a date-based version" [9]. So if you come across an example online using /api/2.0/, it is out of date.
What are the Lightspeed API rate limits?
Every Lightspeed API limits how many requests you can make. For eCom the limit is fixed per key; for the POS systems it grows with the number of registers in the account. Go over the limit and you get a 429 error and have to wait.
| API | Limit (as of November 2026) | What you get back |
|---|---|---|
| eCom | 300 per 5 minutes, 3,000 per hour, 12,000 per day per store key, and 20 per second [4] | headers x-ratelimit-limit, -remaining, -reset [6] |
| R-Series | bucket of 90, plus 10 per extra register; drains at 1 per second, plus 0.5 per extra register [12] | header X-LS-Api-Bucket-Level, if exceeded a 429 with Retry-After [12] |
| X-Series | 300 × number of registers + 50, per 5-minute window [10] | X-RateLimit-Remaining, if exceeded a 429 with Retry-After [10] |
What this means in practice:
- eCom. The limit of 300 per 5 minutes works out at an average of one request per second. With pages of 250, you fetch a catalogue of 10,000 products in 40 requests (our own calculation). The limit does not apply to keys from app store apps, and if you need more, you can contact your account manager at Lightspeed [4].
- R-Series. You pay in "drops": every request costs at least 1, and POST and PUT add 0.5 for each nested item, such as each line in a sale [12]. By the formula, an account with three registers has a bucket of 110 that drains at 2 per second (our own calculation).
- X-Series. One register gives 350 requests per 5 minutes [10], three registers 950 (our own calculation). Go over it and you cannot request anything more for that store until the window has passed [10].
Note. Lightspeed may change the R-Series limits "without notice" [12]. So build your integration to read the headers and slow down by itself, rather than assuming a fixed number of requests per minute.
How do you find out about a new order straight away?
With webhooks: Lightspeed eCom then calls an address on your integration as soon as something happens, such as a new or paid order. You create a webhook with a POST request to /webhooks.json [6].
Webhooks save you requests: you do not have to ask every minute whether there is anything new. Lightspeed does set requirements for your receiver [6]:
- The address must use HTTPS.
- You must respond within 5 seconds with a status code between 200 and 299. So put the heavy work in a queue and respond first.
- If it fails, Lightspeed retries, up to 10 times in total.
- Since November 2018, Lightspeed automatically disables webhooks that fail often. If the failure rate is above 50%, you get a warning. If it has not improved after a further 50 hours, the webhook is disabled.
- You only get the
x-signatureheader, which lets you check that the message really comes from Lightspeed, if the webhook was created from an app, not with a direct integration.
Our assessment. Don't rely on webhooks alone. Also have your integration check once an hour with updated_at_min whether anything was missed. Otherwise, a webhook that fails to arrive only shows up when a customer calls about an order that was never shipped.
What can you connect with the Lightspeed API, and how do you approach it?
In principle, you can connect anything where your data sits in Lightspeed: orders to your accounting, stock to your warehouse or marketplaces, sales to a dashboard. The main choice is: an existing app, building it yourself or having it built.
| Route | Suits you if | Watch out |
|---|---|---|
| Existing app from the Lightspeed app store | you need a standard integration, for example with a well-known accounting package | you work the way the app works; exceptions in your process often don't fit |
| Build it yourself with the Lightspeed API | you have an in-house developer and the integration is straightforward | error handling, limits and maintenance for new API versions are down to you |
| Having it built | several systems need to share data, or you have your own rules (pricing, stock per location, B2B) | ask who monitors the integration when something goes wrong |
If you want to offer something to other Lightspeed stores yourself, there is a partner programme. In it, Lightspeed promises that "every Lightspeed partner gets a dedicated technical contact who helps with every step of the integration" [15].
How to have an integration built, what it costs and what to look for when choosing a developer is covered in Having an API integration built. Torn between middleware and your own integration? Then see Channel manager or custom integration.
Where does a Lightspeed integration go wrong in practice?
Usually not in the first request, but in what happens once the integration has been running for a few months: limits, missed changes and outdated versions. These are the pitfalls we expect most often.
- The wrong documentation. An example for the R-Series won't work on the X-Series, and vice versa. First check which POS you have.
- Fetching everything again. An integration that requests the full catalogue every fifteen minutes quickly hits the 12,000 requests per day on eCom [4]. Only request changes.
- No proper handling of a 429. For the X-Series, Lightspeed recommends postponing tasks "upon the first 429 response, until after the rate has been reset" [10]. If you don't, your integration keeps hitting the wall.
- Two integrations on one key. On eCom, the limit applies per key [4]. A second script on the same key eats into the first one's allowance.
- An expired token. On the R-Series, an access token is usually valid for one hour [14]. If you don't store the refresh token properly, the integration stops at night.
- Stock in two places. If you sell through your POS, webshop and a marketplace, one system has to be in charge of stock. How to set that up is covered in Preventing overselling.
Takeaway. Before you start, write down: which Lightspeed you have, which data needs to flow in which direction, how often, and which system is leading. With those four answers you choose the right API, the right route and a setup that stays within the limits.
SolidDeploy builds integrations like these as a dedicated tech team for e-commerce, retail and wholesale, on the systems you already use. After a free consultation, we get started within two weeks and your first system is running within 30 days. Packages start at €1,495 per month (see pricing).
Frequently asked questions
Is the Lightspeed API free?
Lightspeed's documentation doesn't mention a price per request, but you do need the right subscription. For eCom, that's Advanced or Professional [8]. Personal tokens for the X-Series are only available on the Plus plan [11] (as of November 2026).
Where do I find my Lightspeed API key?
For the webshop, you create it yourself in the eCom back office, via Settings, Store Settings, Developers, New API key [7]. For the X-Series, an admin creates a personal token in the web application [11]. The R-Series uses OAuth, so there is no fixed key [14].
Can I connect Lightspeed to Exact Online or AFAS?
Yes. Lightspeed, Exact Online and AFAS all have an API, so an integration is always possible. There is often an app available too. How the other side works is covered in Exact Online integration and The AFAS API.
What does a 429 error from the Lightspeed API mean?
You've made too many requests and hit your limit. On the R- and X-Series, the Retry-After header tells you when you can try again [12] [10]. Wait until then, and afterwards check whether your integration can make fewer requests.
Does the Lightspeed API use JSON or XML?
Both, on eCom and the R-Series: you choose by adding .json or .xml to the end of the URL [2] [13]. Without an extension, the R-Series returns XML. The X-Series only works with JSON [9].
What would this do for you?
Describe in the Idea scan what you want to improve. You get a few targeted questions, your idea is then laid out clearly and we prepare a free consultation.
Sources
- Lightspeed, Integrate with Lightspeed eCom, no date, accessed 23 November 2026
- Lightspeed, Authentication (eCom), no date, accessed 23 November 2026
- Lightspeed, Clusters and Languages (eCom), no date, accessed 23 November 2026
- Lightspeed, Rate limiting (eCom), no date, accessed 23 November 2026
- Lightspeed, Resources (eCom), no date, accessed 23 November 2026
- Lightspeed, Webhooks (eCom), no date, accessed 23 November 2026
- Lightspeed Help Center, Creating API keys, Lightspeed eCom (C-Series), no date, accessed 23 November 2026
- Lightspeed Help Center, API documentation, Lightspeed eCom (C-Series), no date, accessed 23 November 2026
- Lightspeed, Introduction to the Lightspeed Retail (X-Series) API, updated 17 July 2026
- Lightspeed, Rate Limiting (X-Series), updated 16 December 2025
- Lightspeed, Authorization (X-Series), updated 17 July 2026
- Lightspeed, Rate Limiting (R-Series), no date, accessed 23 November 2026
- Lightspeed, Getting Started (R-Series), no date, accessed 23 November 2026
- Lightspeed, Authentication Overview (R-Series), no date, accessed 23 November 2026
- Lightspeed, Lightspeed partner programme, no date, accessed 23 November 2026
- Getting an API integration built · the route, the costs and what to watch out for
- Preventing overselling · one stock across till, webshop and marketplaces
- What is an API? · the basics, with examples from your own webshop



