> ## 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 Squarespace Commerce

> Connect your app to Squarespace Commerce, the store built into Squarespace websites, to work with your orders, products, inventory, and customers from your Lovable app.

[Squarespace](https://www.squarespace.com/) is a website builder with a built-in online store. The Squarespace Commerce connector lets your Lovable app work with the store of one Squarespace site: its orders, products, stock levels, transactions, and customer contacts. It's designed for store owners who want their own dashboards, fulfillment tools, or reports on top of their Squarespace store.

Squarespace Commerce is available as an [app + chat connector](https://docs.lovable.dev/integrations/app-connectors.md): one shared connection that works in [Chats](https://docs.lovable.dev/features/chats.md), in the project chat while you build, and in your published apps.

With Squarespace Commerce, your app can:

* List orders that changed within a date range, with customer details, fulfillment status, and totals
* List products and their variants, with images and prices
* Read stock levels, and adjust them when your API key allows changes
* List transactions for orders and donations, including payments and refunds
* Read your customer contacts
* List the store pages of your site, the pages where your products are displayed

Your app reads the store on a schedule rather than being notified of each new order. It's a good fit for order dashboards, stock reports, and fulfillment or accounting tools.

## Common use cases and example apps

These examples show what you can build with Squarespace Commerce, each with a prompt to start from.

| Example app | Example prompt | Description |
| :- | :- | :- |
| **Order dashboard** | *Use Squarespace Commerce and build a dashboard that shows my orders from the last 30 days with their fulfillment status and total.* | **See recent orders in one place.** The app reads orders that changed in the last 30 days and groups them by fulfillment status. |
| **Stock report** | *Use Squarespace Commerce and build a page that lists my products with the stock level of each variant and highlights the ones running low.* | **Spot products that need restocking.** The app reads products and stock levels and flags variants below a threshold you choose. |
| **Packing list** | *Use Squarespace Commerce and build a packing list for my unfulfilled orders with the items and shipping address of each.* | **Prepare shipments faster.** The app reads pending orders and prints their line items and shipping addresses. |
| **Sales summary** | *Use Squarespace Commerce and build a weekly sales summary with revenue, refunds, and order count.* | **Track how the store is doing.** The app reads transactions and orders for each week and totals revenue and refunds. |
| **Customer list** | *Use Squarespace Commerce and build a page that lists my store's customers with their order count.* | **Know your repeat customers.** The app reads your customer contacts and matches them to their orders. |

## How to connect Squarespace Commerce

Who can create Squarespace Commerce connections depends on your plan and workspace settings. App + chat connectors are available by default. On Business and Enterprise plans, [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients) starts at **Admins**. Some Enterprise workspaces start at **No one**, which disables the connector. An admin or owner changes it in **Connectors → Admin settings → App + chat connectors**.

You can create multiple Squarespace Commerce connections using different API keys, which is useful for connecting the stores of several Squarespace sites. Each API key belongs to one site.

When the connection is created, you can [link it to the projects](https://docs.lovable.dev/integrations/app-connectors.md#link-a-connection-to-a-project) where you want to use it. Anyone building in a project can ask Lovable in the project chat to link their project to it. Linking follows the connection's access rules.

### Prerequisites

Before connecting Squarespace Commerce, make sure you have:

* A Squarespace site on a plan that includes Commerce APIs. The Basic plan does not include them.
* A Squarespace API key for that site
* Permission to **create connections** in your Lovable workspace (see [Who can create connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-create-connections-and-clients))

> [!NOTE]
>
> Requests through this connector are included in your Squarespace plan. Billing is handled directly by Squarespace, not Lovable.

### Step 1: Get a Squarespace API key

A Squarespace API key lets your Lovable app reach the store data of one site. When you create the key, you choose which parts of the store it can read or change.

To create a Squarespace API key:

**1. Open your site in Squarespace**

Sign in to [Squarespace](https://account.squarespace.com/) and open the site whose store you want to connect.

**2. Navigate to developer API keys**

Go to **Settings → Advanced → Developer API Keys**. On dashboards with a **Developer Tools** panel, open that panel and select **Developer API Keys**.

**3. Create a key**

Click **Generate Key**. Give it a descriptive name, for example `Lovable integration`.

Select each part of the store your app needs, such as orders, inventory, products, transactions, and contacts. Choose read-only access for apps that only show data, and read and write access for apps that change stock or orders. The key reaches only the parts you select. Lovable accepts the key even when a part is missing, so your app reports the error only when it asks for that data.

To add a part later, create a new key and replace the one in the connection: open the connection in Lovable, click **Edit** next to **API key** under **Configure connection**, paste the new key, and click **Update**.

**4. Copy the key**

Copy the key and store it securely. Squarespace shows it only once.

> [!WARNING]
>
> Your API key functions like a password. Keep it secure and never share it publicly. You'll need it in the next step.

See Squarespace documentation for more: [Squarespace API keys](https://support.squarespace.com/hc/en-us/articles/236297987-Squarespace-API-keys).

### Step 2: Connect Squarespace Commerce to Lovable

Use the key you created in Step 1 to add the connection.

**1. Open Squarespace Commerce in Connectors**

Open [Connectors](https://lovable.dev/dashboard?connectors) and select **Squarespace Commerce**. For the other places to open the catalog from, see [Where to find connectors](https://docs.lovable.dev/integrations/introduction#where-to-find-connectors).

**2. Add a connection**

Click **Connect** on the connector page. The form is split into collapsible sections, **Details**, **Configure connection**, and **Sharing**.

**3. Name the connection**

Under **Details**, Lovable fills in a name for the connection, which you can change. The name is only used inside Lovable to identify the connection.

**4. Configure the connection**

Under **Configure connection**, enter:

1. **API key**: paste the Squarespace API key you copied.

**5. Choose who can use this connection**

Under **Sharing**, the connection is private to you by default and shows a **Private** label. To share it, click **Share with others**. Then add workspace members by email, or click **Invite entire workspace** to make the connection available to everyone in your Lovable workspace.

See [Who can use connections and clients](https://docs.lovable.dev/integrations/admin-controls.md#who-can-use-connections-and-clients) for more information.

**6. Connect**

Click **Connect** at the bottom of the form. Lovable verifies the API key against the Squarespace API before saving the connection.

When connected, anyone building in a project can ask Lovable in the project chat to link their project to Squarespace Commerce. Linking follows the connection's access rules. Your Lovable apps can then read your store's orders, products, stock, and customer contacts, and change stock levels when the API key allows it.

## Limitations

The Squarespace Commerce connector cannot:

* Connect by signing in with Squarespace. Each connection uses an API key you create on your site, and Squarespace sends order notifications only to apps that sign in. Your app checks for changes on a schedule instead.
* Connect more than one site per connection. Each connection represents a single Squarespace site shared across all projects linked to it.
* Edit your website's pages, design, or blog. The connector works with the store only.

## Manage your Squarespace Commerce connection

Connections are managed from [**Connectors**](https://lovable.dev/dashboard?connectors): select **Squarespace Commerce**, then open the connection.

* **Unlink projects** to remove Squarespace Commerce access from specific projects while keeping the connection available for others. See [Unlink projects from a connection](https://docs.lovable.dev/integrations/app-connectors.md#unlink-projects-from-a-connection) for the steps.
* **Delete the connection** to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use Squarespace Commerce stop working until a new connection is added. See [Delete a connection](https://docs.lovable.dev/integrations/app-connectors.md#delete-a-connection) for the steps and who can delete.
