Create API credentials in Lightspeed

Setting up a Lightspeed connection starts in the back-end of your store. Log in at services.webshopapp.com/login and follow these steps:

  1. In the left menu, go to Settings → Developers.
  2. Create a new API key, give it a name (e.g. Xendy) and save.
  3. Click the API key and enable 4 Read checkboxes for: customers, orders, products, and store settings.
  4. Activate the API key and copy the API key and the API secret.

Connect Lightspeed in Xendy

Once you've created the API credentials, connect Lightspeed in Xendy:

  1. In Xendy, go to Settings → Webshop.
  2. Choose Lightspeed and paste the API key, API secret and your webshop URL.
  3. Under Webshop language, select the language of your webshop (Dutch, English or German). Xendy retrieves your products and product links in that language.
  4. Click Connect Lightspeed. Xendy immediately starts the first import. You can track the progress in the bottom left of the dashboard.

Xendy validates the credentials as soon as you've entered them. If the key is missing read permissions, you'll see straight away which ones.

Set up abandoned carts

Want to automatically email customers who leave something in their shopping cart? Add two scripts to your Lightspeed webshop once. You'll find them in Xendy under Settings → Webshop, in the Abandoned carts block.

  1. Add the script to your webshop. Copy the script and paste it in full, including the <script> and </script> lines, in Lightspeed under Settings → Website settings → Web extras → Custom JavaScript. Then save.
  2. Add the conversion code to your thank-you page. Copy the code and paste it under Settings → Website settings → Web extras → Tracking. This lets Xendy know that an order has been completed so it won't send a reminder.
  3. Check the installation. Click Check installation in Xendy.

Then create an automation for abandoned carts (see Setting up an abandoned cart email automation).

If Xendy reports that the script is present but not working, the <script> and </script> lines are missing. Copy the code from step 1 again and replace the existing code.

If your thank-you page shows an error after payment, there's an older version of the conversion code still in Lightspeed. Copy the code from step 2 again and replace the code in the Tracking field.

How often is data fetched?

Xendy retrieves your Lightspeed data once a day during the night. Don't want to wait? Go to Settings → Webshop, click the three dots next to your connection, and select Sync now. If something goes wrong, you'll automatically receive a notification by email.

Frequently asked questions

Yes, with Lightspeed data you can create targeted dynamic segments in Xendy. For example, you can filter on:

  • The number of purchases a customer has made
  • The total order value
  • How long ago someone last placed an order
  • Specific products or product categories that were or weren't purchased

This makes it easy to target campaigns at recently ordering customers, loyal buyers with a high order value, or customers who haven't been active in a while.

Check the following points:

  • Is the API key activated?
  • Are all four read permissions enabled (customers, orders, products, and store settings)?
  • Does the Webshop language match the language of your store?

If the key is missing permissions later, you can see which ones at Settings → Webshop. Enable them in Lightspeed and click Update key.

Joeri Ras

Written by

Joeri Ras

Founder & co-owner @ Xendy

Prefer to talk directly?

Related articles

Integrations

Connect Gravity Forms to Xendy

With Gravity Forms you can easily create forms in WordPress. By connecting it to Xendy, submissions automatically end up in a static segment, so you can use new contacts right away for newsletters or email automations.

Read more
Integrations

Connect your Magento 2 store to Xendy

By connecting Magento 2 to Xendy, customer, order and product data are automatically synchronized every night. This allows you to create segments based on purchasing behavior, display personal product recommendations and follow up on abandoned shopping carts. Please note: abandoned shopping carts only work in Magento 2 for customers who are logged in to your webshop. Xendy retrieves them during the nightly import.

Read more
Integrations

Connect your Shopify store to Xendy

By connecting Shopify to Xendy, your customers, orders, and products will be available in Xendy. This allows you to create segments based on purchasing behavior and add products to your emails. You can connect via the Xendy app in Shopify or with a custom app from the Shopify Dev Dashboard. With the Xendy app, changes come in immediately, abandoned carts work, and unsubscribes sync both ways. With a custom app, your data is updated every night.

Read more
Integrations

Connect your WooCommerce store to Xendy

By connecting WooCommerce to Xendy, customer, order, and product data is synced daily. This lets you create segments based on purchase behavior, follow up on abandoned carts, and add personal product recommendations to your emails.

Read more