- List and search products, orders, customers, and categories with filters, sorting, and paging
- Read stock levels and update product quantities
- Create and update products and their attributes
- Add comments to orders, and invoice and ship them
- Read the store’s websites and store views, Magento’s scopes for running several storefronts from one installation
Common use cases and example apps
These examples show what you can build with Magento, each with a prompt to start from.How to connect Magento
Who can create Magento 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 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 Magento connections for different stores, or for different integrations on one store. An integration is a store-side identity with its own access rights. Separate connections keep a staging store apart from production, or connect several stores. When the connection is created, you can link it to the projects 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 Magento, make sure you have:- A Magento Open Source or Adobe Commerce store (version 2.x) reachable over HTTPS from the internet
- An admin account on that store that may manage integrations
- Permission to create connections in your Lovable workspace (see Who can create connections and clients)
All API requests made through this connector go to your own store. Billing and quota are handled directly by your store hosting or Adobe, not Lovable.
Step 1: Create an integration in your store
The integration has its own access rights and four credentials. Lovable signs every request with those credentials. The credentials are not exposed to your published app. To create an integration:1
Open the integrations list
Sign in to your store admin and go to System → Extensions → Integrations.
2
Add an integration
Click Add New Integration. Under Integration Info, give it a name, for example
Lovable, and enter your admin password in Your Password.3
Grant access to resources
Open the API tab, set Resource Access to Custom, and select every resource your app uses:
- Catalog: products and stock (stock sits under Catalog → Inventory)
- Sales: orders, invoices, and shipments
- Customers: customer records
- Stores → Settings → All Stores: websites and store views
4
Activate the integration
In the integrations list, click Activate on the new row, then Allow. The store shows the Consumer Key, Consumer Secret, Access Token, and Access Token Secret. Copy all four, then click Done.
Step 2: Connect Magento to Lovable
You connect the store by entering its URL and the four integration values.1
Open Magento in Connectors
Open Connectors and select Magento (Adobe Commerce). For the other places to open the catalog from, see 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:
- Store URL: the HTTPS address of your store, for example
https://shop.example.com. Include the subdirectory when the store is not hosted at the domain root. - Consumer key: the consumer key shown when you activated the integration.
- Consumer secret: the consumer secret from the same screen.
- Access token: the access token from the same screen.
- Access token secret: the access token secret from the same screen.
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 for more information.
6
Connect
Click Connect at the bottom of the form. Lovable verifies the credentials against your store before saving the connection.
Limitations
The Magento connector cannot:- Connect to Adobe Commerce as a Cloud Service, Adobe’s software-as-a-service edition. You are on it when you open your store admin from Commerce Cloud Manager after signing in to Adobe Experience Cloud with your Adobe ID. That edition signs in through Adobe’s identity service instead of integration credentials
- Use the store’s GraphQL API. The connector covers the REST API
- Create admin tokens or act as an admin user. The connection acts as the integration you created
- Support per-end-user Magento login. Each connection represents a single integration shared across all projects linked to it
Troubleshooting
Use these checks when connecting fails or a Magento request returns an unexpected status.Magento (Adobe Commerce) did not validate your credentials
Magento (Adobe Commerce) did not validate your credentials
Click Show error under the message to see the store’s reply. A reply about the signature or the token means one of the four values is wrong. Copy them again from the store, or reauthorize the integration under System → Extensions → Integrations and paste the new tokens. A reply that names Adobe Commerce as a Cloud Service means the store is on the edition listed under Limitations. An HTML page or a
503 means the store is down or in maintenance mode. Check that the store URL opens in a browser, then try again.Manage your Magento (Adobe Commerce) connection
Connections are managed from Connectors: select Magento (Adobe Commerce), then open the connection.- Unlink projects to remove Magento (Adobe Commerce) 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 Magento (Adobe Commerce) stop working until a new connection is added. See Delete a connection for the steps and who can delete.