- List and manage products, variations, categories, and inventory
- Read and update orders, refunds, coupons, and customer records
- Build dashboards around revenue, fulfillment, products, and customers
- Create internal storefront admin tools powered by WooCommerce REST APIs
- Automate store workflows that use your WooCommerce data
Common use cases and example apps
How to connect WooCommerce
Workspace admins and owners can connect WooCommerce. You can create multiple WooCommerce connections using different REST API keys, which is useful for separating environments (for example, development and production), connecting multiple stores, or using keys with different permissions. When the connection is created, WooCommerce 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 WooCommerce, make sure you have:- A WooCommerce store with HTTPS enabled
- A WordPress admin account that can manage WooCommerce settings
- Non-plain WordPress permalinks enabled for REST API routes
- A WooCommerce REST API consumer key and consumer secret
- Lovable workspace owner or admin role
All API requests made through this connector run against your WooCommerce store. Hosting, plugin, and WooCommerce-related costs are handled outside Lovable.
Step 1: Get a WooCommerce REST API key
A WooCommerce REST API key lets your Lovable app authenticate with your store. The key permissions you choose in WooCommerce control what the connection can do. To create a WooCommerce REST API key:1
Open your WooCommerce settings
Sign in to your WordPress admin dashboard for the store you want to connect.
2
Open REST API keys
Go to WooCommerce → Settings → Advanced → REST API.
3
Add a key
Click Add key. Enter a description, for example
Lovable integration, and choose the WordPress user the key belongs to.4
Choose permissions
Choose the permissions your app needs:
- Read: use this for dashboards, reports, search, and other read-only apps.
- Read/Write: use this when your app needs to create or update products, orders, coupons, customers, refunds, or inventory.
5
Generate and copy the credentials
Click Generate API key, then copy the Consumer key and Consumer secret. WooCommerce only shows the consumer secret once.
Step 2: Connect WooCommerce to Lovable
You can create multiple connections using different WooCommerce REST API keys.1
Open WooCommerce in Connectors
Go to Connectors and select WooCommerce.
2
Add a connection
Click Add connection.
3
Configure the connection
- Display name: name the connection, for example
WooCommerce Prod. - Store URL: enter the HTTPS URL of your WooCommerce store, for example
https://store.example.com. - Consumer key: paste the WooCommerce REST API consumer key. It starts with
ck_. - Consumer secret: paste the WooCommerce REST API consumer secret. It starts with
cs_.
4
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.
5
Connect
Click Connect.
Working with WooCommerce REST API permissions
WooCommerce controls access through the permissions on the REST API key you create. If your app only needs dashboards, reports, product lists, or customer lookup, use a Read key. If your app needs to create or update store data, use a Read/Write key. The connector verifies credentials by listing products from your store. If verification fails with a route error, check that WooCommerce REST API routes work on your store and that WordPress permalinks are not set to Plain.Limitations
The WooCommerce connector cannot:- Create WooCommerce REST API keys or change their permissions for you. Configure keys in WordPress admin first.
- Bypass the permissions on the connected REST API key.
- Configure WordPress permalinks, hosting, SSL, plugins, or WooCommerce settings.
- Call general WordPress APIs or WooCommerce endpoints outside the connected store’s
/wp-json/wc/v3REST API path. - Refresh or rotate consumer keys automatically. To rotate credentials, generate a new key in WooCommerce and update the Lovable connection.
- Support per-end-user WooCommerce login. Each connection represents a single WooCommerce store account shared across all projects linked to it.
Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See 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 stop working until a new connection is added. See Delete a connection for the steps and who can delete.