Summary: API2Cart eCommerce webhooks deliver real-time HTTP POST notifications to your application when store events occur (new order, product update, customer change). Create webhooks with webhook.create, specifying the entity, action, and your callback URL. For complete implementation details, see the full webhooks documentation.
Why eCommerce Webhooks Matter
Without eCommerce webhooks, your application must constantly poll for changes. Webhooks provide instant notifications, reducing API usage and ensuring real-time data accuracy.
Quick Overview
The webhook lifecycle in API2Cart:
- Register a webhook using
webhook.createwith entity, action, and callback URL - When the event occurs in the store, API2Cart sends an HTTP POST to your URL
- Your application processes the notification and fetches full details if needed
Available Events
Use webhook.events to get the full list. Common events:
- order.add — new order created
- order.update — order status changed
- product.add / product.update — catalog changes
- customer.add / customer.update — customer data changes
Creating a Webhook
POST /webhook.create.json?api_key=YOUR_KEY&store_key=STORE_KEY&entity=order&action=add&callback=https://yourapp.com/webhooks/order-created
Managing Webhooks
webhook.list— view all registered webhookswebhook.update— modify callback URL or statuswebhook.delete— remove a webhookaccount.failed_webhooks— retrieve missed notifications
Filtering Conditions
API2Cart supports advanced webhook filtering — you can configure conditions so that a webhook fires only when specific criteria are met (e.g., only orders above a certain total, or only products with a specific SKU pattern). This is configured via the filtering_conditions parameter in webhook.create.
Best Practices
- Use HTTPS endpoints for callback URLs
- Respond with HTTP 200 quickly — process data asynchronously
- Implement idempotency — the same event may be delivered more than once
- Monitor
account.failed_webhooksfor missed deliveries
→ For complete implementation details, filtering examples, payload structure, and platform-specific notes, see the full Working with Webhooks documentation.
Webhook availability varies by platform and event. Check the current event and platform matrix and call webhook.events for the connected store before implementation.
Implement webhooks with API2Cart
Review the current event and platform coverage, then use the Working with Webhooks documentation for setup, payload, signature and delivery details.
See also: API2Cart Webhooks — feature overview and Real-Time Sync — feature overview.
Technical author at API2Cart focused on practical API integration, webhooks, store authentication, data synchronization and developer workflows.