Store connections

Set up ROASaurus on Lightspeed eCom

Updated

Create an API key in the Lightspeed back office, paste the key and secret in ROASaurus and press Create webhook. Add the script and the tracking snippet under Web extras. Paid orders arrive instantly, with a check every 5 minutes.

Before you start

  • Lightspeed eCom back office access to Settings › Store settings › Developers and Web extras.

Steps

  1. Add the store

    In ROASaurus, open the store menu at the top of the sidebar, choose Add a store, then Lightspeed eCom. Enter the address your customers visit and click Continue.

    You should see: Connect Lightspeed eCom, with Last order received: none yet, Last sync: never, the numbered setup steps and the credential fields.

  2. Add the tracking script

    Copy the script tag from step 1 of the connection page. It contains your store key. Settings › Website settings › Web extras › Custom JavaScript.

    You should see: Open your shop with ?roasaurus=connected at the end of the address: the browser says "ROASaurus is connected."

  3. Add the thank-you page snippet

    The connection page shows a snippet that fires the browser purchase with the order id. Same page, Tracking box: set Status on and paste the snippet. It also reads the order total and currency. It links the order to the visitor and their ad click exactly; without it, ROASaurus matches by email or by IP address and browser.

  4. Create an API key

    Settings › Store settings › Developers › New API key with read access to orders, and enable the key. Fill in API key, API secret, the Region (eu for webshopapp.com, us for shoplightspeed.com) and the Shop language code from your API URLs. Save.

  5. Create the webhook

    Click Create webhook.

    You should see: "Webhook created in Lightspeed (orders updated)."

  6. Place a test order

    Place a test order and pay it with your shop's test payment method.

    You should see: The order under Profit › Orders and Last order received on the connection page. On Getting started, Connect the store turns green.

What you should see

Paid Lightspeed eCom orders appear under Profit › Orders with their channel, and purchases go out to the ad platforms you connected (Data quality › Deliveries). Getting started shows Connected on with the date.

How orders arrive

The webhook reports each updated order; ROASaurus fetches it from the API and counts it once its payment status is paid. Every 5 minutes it also checks for orders the webhook missed. The Lightspeed API has no time zone, so check the time zone under Settings › Store.

What ROASaurus reads

Only paid orders, with their products, totals, currency, customer contact details and address. Contact details are hashed before they go to an ad platform. Refunds follow where the platform reports them. Your shop is never changed.

Common problems

"Connection failed: … Save your credentials first, then test."
Test connection, Create webhook and Fetch orders now use the saved credentials. Click Save after you change a field, then test again. The text after "Connection failed" is the platform's own answer, for example a refused key.
"Sync failed: …" or the Connect the store step turns red
The platform refused the fetch, most often because the key was removed or lacks read access to orders. Create a new key with the access listed on the connection page, save it and press Fetch orders now.
Test connection fails with 401
The key is not enabled, or the region does not match your shop. Enable the key and choose eu or us as your shop's domain shows.

Next step

Next: connect your ad platforms and add your costs.

Continue with Getting started

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.