E-commerce MiniApps connect storefront platforms (Salla, Zid, custom stacks) to Karzoun orders, customers, products, and abandoned carts.
Use the sync block — not legacy webhook.ecommerce.
| Capability | Configuration |
|---|---|
| Bulk import | sync.resources.* with apiMapping |
| Realtime orders/carts | sync.webhooks.handlers |
| Automation reactions | Matching triggers[] entries |
| Customer linking | webhook.customerExtraction |
Full reference: Sync guide.
- Tenant installs your MiniApp from Marketplace.
- OAuth or API key stores credentials on the tenant install.
- Provider webhooks hit
POST /miniapps/{ns}/webhooks. - Handlers map payloads into Karzoun commerce records.
- Automations use triggers (e.g.
order.created) for workflows.
- OAuth 2.0 with
auto_refresh: truefor platforms that issue refresh tokens webhook.verification— HMAC or token strategy from your providerwebhook.customerExtraction— Map buyer fields into Karzoun customerssync.resources— Products, customers, orders as neededsync.webhooks.handlers— Create/update mappings per eventtriggers— One per automation-visible event
See the Salla example for a complete pattern.
webhook.ecommerce is deprecated. New submissions must use sync. Karzoun may reject definitions that rely solely on the legacy block.
If you are maintaining an older integration, contact Karzoun support for a migration review.
Commerce partners (Salla, Zid, Matjrah) should also read the Partners program for whitelabel and embedded onboarding flows.