Skip to main content
E-commerce and catalog MiniApps use the top-level sync block for bulk import (initial and scheduled sync) and realtime webhook handlers that share the same field-mapping vocabulary. Use sync when your integration must keep orders, customers, products, or carts aligned between an external platform and Karzoun — not just fire automation triggers.
See also

Structure

Resource definition

Each key under resources defines one importable entity:

Mapping transforms

Common transforms used in apiMapping:

Webhook handlers under sync

Realtime events use sync.webhooks.handlers (preferred over legacy webhook.ecommerce):
Pair every handler event with a matching trigger so automations can react after sync processing.

Bulk sync lifecycle

  1. Tenant installs MiniApp and completes OAuth / API key setup.
  2. Karzoun runs enabled resources according to syncConfiguration.
  3. Ongoing changes arrive via provider webhooks → sync.webhooks.handlers.
  4. Rate limits and batch sizes protect both your API and Karzoun workers.

Submission checklist

  • List + detail endpoints tested with sandbox credentials
  • apiMapping covers required fields for each contentType
  • Webhook handler events match triggers[].event strings exactly
  • Pagination responseMapping matches your provider’s JSON shape
  • Sample payloads included in your submission package
Last modified on August 8, 2026