> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect your app to Lightspeed

> Connect your app to Lightspeed Retail X-Series, a retail POS platform, to work with products, inventory, outlets, customers, and sales data from your Lovable app.

export const connector_0 = "Lightspeed"

[Lightspeed Retail X-Series](https://www.lightspeedhq.com/pos/retail/) is a retail point-of-sale platform for managing products, inventory, outlets, customers, payments, and sales. The Lightspeed connector lets your Lovable app call the Retail X-Series API through a connected Lightspeed store.

With Lightspeed, your app can:

* List outlets, registers, payment types, and retail settings
* Read product catalogs, brands, price books, and inventory levels
* Build customer and sales dashboards from Retail X-Series data
* Create workflows around stock, promotions, gift cards, and store credit

By default, Lightspeed connections request read scopes for common retail workflows. You can enable additional advanced scopes when your app needs to create or update resources in Lightspeed.

## Common use cases and example apps

| Example app                            | Example prompt                                                                                                                      | Description                                                                                                                                                                     |
| :------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Retail inventory dashboard**         | *Use Lightspeed and build an inventory dashboard that shows stock by outlet, low-stock products, and recent stock changes.*         | **Monitor inventory across connected stores.**<br />The app reads product and inventory data from Lightspeed and helps operators spot items that need attention.                |
| **Sales performance dashboard**        | *Use Lightspeed and build a sales dashboard with daily revenue, payment types, top products, and outlet filters.*                   | **Track store performance in one view.**<br />The app reads sales, payment, product, and outlet data from Lightspeed so retail teams can review trends without opening the POS. |
| **Customer purchase history portal**   | *Use Lightspeed and build a customer lookup tool that shows contact details, customer groups, and recent purchases.*                | **Give staff context before customer conversations.**<br />The app combines customer and sales data from Lightspeed in a focused support or store operations screen.            |
| **Promotion planning tool**            | *Use Lightspeed and build a promotion planner that lists products, brands, prices, and current inventory before a campaign starts.* | **Plan retail campaigns from live catalog data.**<br />The app reads products, price books, promotions, and inventory so merchandisers can choose the right items.              |
| **Gift card and store credit tracker** | *Use Lightspeed and build a tracker for gift card balances, store credit transactions, and related customer records.*               | **Review customer value balances from Lightspeed.**<br />The app reads gift card and store credit data and links it to customer records for store teams.                        |
| **Supplier and tax reference browser** | *Use Lightspeed and build an admin page that lists suppliers, tax rates, outlets, and user records for operations teams.*           | **Surface Retail X-Series reference data for internal workflows.**<br />The app reads supplier, tax, outlet, and user data so teams can use consistent operational values.      |

## How to connect Lightspeed

Workspace **admins** and **owners** can connect Lightspeed. App connectors are enabled by default on Free, Pro, and Business plans. On Enterprise plans, workspace admins and owners can manage app connector availability for the workspace.

You can create multiple Lightspeed connections using different Lightspeed stores or OAuth apps, which is useful for separating environments or managing multiple retail accounts.

When the connection is created, Lightspeed becomes available across all projects in the workspace. Anyone building in a project can ask Lovable in chat to link their project to it.

### Prerequisites

Before connecting Lightspeed, make sure you have:

* A Lightspeed Retail X-Series account and store
* Access to the [Lightspeed developer dashboard](https://developers.retail.lightspeed.app/applications)
* A Lightspeed OAuth application with a client ID and client secret
* Your store domain prefix, from `https://{domain_prefix}.retail.lightspeed.app`
* Lovable workspace **owner** or **admin** role

<Note>
  All API requests made through this connector count against your Lightspeed Retail X-Series API limits and the permissions on the connected account. Billing and quota are handled directly by Lightspeed, not Lovable.
</Note>

### Set up your Lightspeed connection

<Steps>
  <Step title="Create or open your Lightspeed OAuth application">
    Sign in to the [Lightspeed developer dashboard](https://developers.retail.lightspeed.app/applications). Create an OAuth application for Lovable, or open an existing one you want to use.
  </Step>

  <Step title="Configure the redirect URI">
    In your Lightspeed OAuth application, add the redirect URI that Lovable shows during the connect flow. Save the application, then copy the **Client ID** and **Client Secret**.
  </Step>

  <Step title="Open Lightspeed in Connectors">
    Go to **Connectors → App connectors** and select **Lightspeed**.
  </Step>

  <Step title="Add a connection">
    Click **Add connection**.
  </Step>

  <Step title="Configure the connection">
    Enter the connection details:

    * **Display name**: name the connection, for example `Lightspeed Prod`.
    * **Client ID**: paste the client ID from your Lightspeed OAuth application.
    * **Client Secret**: paste the client secret from your Lightspeed OAuth application.
    * **Domain Prefix**: enter the store prefix from `https://{domain_prefix}.retail.lightspeed.app`, for example `my-store`.
  </Step>

  <Step title="Review scopes (optional)">
    Expand **Advanced settings** to review the permissions your app requests. Default scopes are pre-selected for common read-only retail workflows.

    | Scope                                     | Description                                                                     | Default |
    | :---------------------------------------- | :------------------------------------------------------------------------------ | :------ |
    | Retailer configuration (`retailer:read`)  | Read account configuration such as loyalty, timezone, country, and currency.    | On      |
    | Outlets (`outlets:read`)                  | Read outlets.                                                                   | On      |
    | Registers (`registers:read`)              | Read registers.                                                                 | On      |
    | Payment types (`payment_types:read`)      | Read payment types excluding internal payment types.                            | On      |
    | Products (`products:read`)                | Read products, product types, product images, brands, and tags excluding costs. | On      |
    | Price books (`products:read:price_books`) | Read product price books.                                                       | On      |
    | Inventory (`inventory:read`)              | Read current and historical product inventory levels.                           | On      |
    | Customers (`customers:read`)              | Read customers and customer groups.                                             | On      |
    | Sales (`sales:read`)                      | Read sales and payments.                                                        | On      |
    | Fulfillments (`fulfillments:read`)        | Read sale order fulfillments.                                                   | On      |
    | Promotions (`promotions:read`)            | Read promotions and promotion product eligibility.                              | On      |
    | Gift cards (`gift_cards:read`)            | Read gift cards and gift card transactions.                                     | On      |
    | Store credits (`store_credits:read`)      | Read store credit transactions.                                                 | On      |
    | Suppliers (`suppliers:read`)              | Read suppliers.                                                                 | On      |
    | Taxes (`taxes:read`)                      | Read tax rates, tax rules, and tax groups where applicable.                     | On      |
    | Users (`users:read`)                      | Read user information except passwords.                                         | On      |

    Additional write, audit, channel, consignment, payment, serial number, service, and webhook scopes are available but off by default. Only select scopes your app needs.

    For full scope documentation, see [Lightspeed's OAuth scope reference](https://x-series-api.lightspeedhq.com/docs/scopes).
  </Step>

  <Step title="Choose who can access this connection">
    Under **Who can access this connection**, decide who in your workspace can use the connection:

    * **Only you** (default): only the person creating the connection can use it and its associated data.
    * **Invite specific people**: only you and explicitly added workspace members can use the connection and its associated data.
    * **Invite entire workspace**: click **Invite entire workspace** to make the connection available to everyone in your Lovable workspace.

    See [Connection-level access](/integrations/introduction#connection-level-access) for more information.
  </Step>

  <Step title="Connect to Lightspeed and authorize">
    Click **Connect**. The Lightspeed authorization window opens, so make sure your browser doesn't block pop-ups. If it does, Lovable redirects you instead.

    Sign in to Lightspeed if prompted, review the requested permissions, and click **Allow**.

    You'll be redirected back to Lovable with a confirmation.
  </Step>
</Steps>

When connected, anyone building in a project can ask Lovable in chat to link their project to Lightspeed (based on configured connection-level access). Your Lovable apps can then work with Lightspeed Retail X-Series products, inventory, outlets, customers, sales, and related retail data.

## Limitations

The Lightspeed connector cannot:

* Create a Lightspeed account or OAuth application for you
* Bypass Lightspeed API limits, plan limits, connected-user permissions, or selected OAuth scopes
* Provide per-end-user Lightspeed login. Each connection represents a single Lightspeed store authorization shared across projects linked to it
* Deliver Lightspeed webhook events through a Lovable-managed webhook subscription

If Lightspeed authorization is revoked from the Lightspeed side, you'll need to reconnect the integration in Lovable before API calls can succeed again.

## How to unlink projects from a {connector_0} connection

Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects.

To unlink projects:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to manage.
  </Step>

  <Step title="Select projects">
    Under **Linked projects**, check the projects you want to unlink.
  </Step>

  <Step title="Confirm">
    Click **Unlink projects** and confirm.
  </Step>
</Steps>

When unlinked, those projects will no longer have access to {connector_0} through this connection. If a project needs {connector_0} again, you can link it to any available connection.

## How to delete a {connector_0} connection

Workspace admins and owners can delete {connector_0} connections. Other members can delete a connection if they created it, or if they have been explicitly granted access to it.

<Warning>
  Deleting a connection is permanent and cannot be undone. It will remove the credentials from all linked projects, and any apps using this connection will stop working until a new connection is added.
</Warning>

Before deleting, review the **Linked projects** section to see which projects are currently using the connection.

To delete a connection:

<Steps>
  <Step title="Open Connectors">
    Open **Connectors**, then go to **App connectors**, and select **{connector_0}**.
  </Step>

  <Step title="Open the connection">
    Open the connection you want to remove.
  </Step>

  <Step title="Review linked projects">
    Review the **Linked projects** section.
  </Step>

  <Step title="Delete">
    Under **Delete this connection**, click **Delete** and confirm.
  </Step>
</Steps>
