Summary: API2Cart connects to 70+ eCommerce platforms using two methods: API-based integration (OAuth/token credentials for Shopify, BigCommerce, eBay, Etsy, Amazon) and bridge-based integration (a small file on the server for Magento, WooCommerce, PrestaShop, OpenCart). Both are managed through the account.cart.add API method.
Connecting a B2B application to multiple eCommerce platforms is one of the most complex challenges in software integration. Each platform has its own API protocols, authentication flows, and data access mechanisms. API2Cart solves this by providing a unified REST API that handles store connectivity behind the scenes, regardless of which eCommerce system a merchant uses.
In this article, we explain how API2Cart connects to stores across different platforms and what integration methods are available.
Two Connection Methods: API-Based and Bridge-Based
API2Cart supports two primary methods for establishing a connection to an online store:
- API-based integration — used for platforms that provide native API access (e.g., Shopify, BigCommerce, Etsy, eBay, Amazon SP-API, WooCommerce API, Lightspeed)
- Bridge-based integration — used for self-hosted platforms where direct API access is limited or requires a file installed on the store server (e.g., Magento, WooCommerce, PrestaShop, OpenCart)
API-Based Integration
For platforms with native API access, you provide authentication credentials issued by the eCommerce system. Depending on the platform, these may include:
- Client ID and Client Secret (OAuth)
- Access Token and Refresh Token
- API Key or other platform-specific credentials
For example, connecting a Shopify store requires providing the store URL and an access token generated through a Shopify app. For eBay or Etsy, the flow involves OAuth authorization where the merchant grants your application access to their account.
Once credentials are supplied via the account.cart.add method, API2Cart establishes and maintains the connection. Your application does not need to manage token refresh cycles or handle platform-specific authentication quirks — API2Cart manages this internally.
Bridge-Based Integration
For self-hosted platforms like Magento, WooCommerce (non-API mode), PrestaShop, and OpenCart, API2Cart uses a Connection Bridge — a small file deployed on the store’s server. The bridge acts as a secure communication layer between API2Cart and the store’s database.
The bridge file is typically uploaded to the store’s root directory and provides:
- Direct access to the store database for reading and writing eCommerce data
- Compatibility with custom server configurations and hosting environments
- No dependency on the platform’s built-in API limitations
The bridge can be installed manually by the merchant, or your application can automate this step as part of the onboarding flow.
Connecting Stores Programmatically
To add a store connection from your application, use the account.cart.add API method. This allows you to build custom onboarding experiences where your users connect their stores without leaving your product interface.
A typical request includes:
- The store URL
- The cart type identifier (e.g., Shopify, Magento, WooCommerce)
- Authentication credentials or bridge details specific to that platform
Once the connection is active, all subsequent API calls (retrieving products, orders, customers, categories, etc.) work through the same unified interface regardless of the underlying platform.
One API for 70+ Platforms
The key advantage of this architecture is that your application code remains the same whether you’re working with Shopify, Magento, WooCommerce, BigCommerce, PrestaShop, OpenCart, Etsy, eBay, Amazon, Demandware, LightSpeed, Bol, or any of the other 70+ supported platforms. API2Cart abstracts the connectivity layer so you can focus on building your product rather than maintaining separate integrations.
The unified data model covers:
- Products, variants, and inventory
- Orders, shipments, and fulfillment
- Customers and addresses
- Categories and taxonomies
- Webhooks for real-time event notifications
Getting Started
To start connecting stores through API2Cart:
- Create a free account to get your API key
- Choose the platform you want to connect
- Use the Interactive Docs to test the
account.cart.addmethod - Build your store connection flow using the API or SDKs
For platform-specific connection guides, visit the integration documentation.
Frequently Asked Questions
What is the difference between API-based and bridge-based connections?
API-based connections use OAuth or API tokens provided by the platform (Shopify, BigCommerce, eBay). Bridge-based connections use a small file installed on the store’s server for self-hosted platforms (Magento, WooCommerce, PrestaShop) where native API access is limited.
Do I need to write separate code for each platform?
No. After connecting a store via account.cart.add, all subsequent API calls (products, orders, customers) use the same unified methods regardless of the platform.
How many stores can I connect to one API2Cart account?
The number of store connections depends on your API2Cart plan. You can manage all connections through account.cart.list and work with each store using its unique store_key.