This guide will show you how to connect your Lightspeed store to API2Cart in just a few steps.

Firstly, you need to specify the following credentials:

  • lightspeed_api_key
  • lightspeed_api_secret
lightspeed

To obtain the required API credentials, you need to create an API key in your Lightspeed eCom back office:

  • Log in to your Lightspeed Back Office.
  • Go to Settings > Store Settings > Developers.
  • Click New API key and enter a name for the integration.
  • Save the key. Under Settings, select the switch to enable the API key.
  • Select the necessary permissions you want to grant.
  • After saving, copy the generated API Key and API Secret.

Use these values as lightspeed_api_key and lightspeed_api_secret when connecting your store to API2Cart.

More info you can find on LightSpeed docs.

📌 Important Recommendation for Exporting LightSpeed Orders

When exporting orders from LightSpeed via the order.list method, you might occasionally receive an order with missing product lines. This typically occurs due to LightSpeed's internal database logic: it creates the main order record first and then saves the product lines over the next few seconds.

If your synchronization process relies solely on the modified_from parameter and requests data from the store at the exact moment the order is being created, there is a risk of capturing a "partially formed" order.

How to fix this: To avoid this race condition, we strongly recommend always specifying an upper time boundary (modified_to or created_to) in your requests. Setting the end date slightly in the past (e.g., 30-60 seconds before the current time) ensures that API2Cart fetches only fully saved and complete orders.