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
- Webhooks — Event extraction, verification, and
customerExtraction - Salla example — Full OAuth + webhook + sync pattern
- E-commerce overview — When to use sync vs triggers-only
Structure
Resource definition
Each key underresources defines one importable entity:
Mapping transforms
Common transforms used inapiMapping:
Webhook handlers under sync
Realtime events usesync.webhooks.handlers (preferred over legacy webhook.ecommerce):
Bulk sync lifecycle
- Tenant installs MiniApp and completes OAuth / API key setup.
- Karzoun runs enabled
resourcesaccording tosyncConfiguration. - Ongoing changes arrive via provider webhooks →
sync.webhooks.handlers. - Rate limits and batch sizes protect both your API and Karzoun workers.
Submission checklist
- List + detail endpoints tested with sandbox credentials
-
apiMappingcovers required fields for eachcontentType - Webhook handler events match
triggers[].eventstrings exactly - Pagination
responseMappingmatches your provider’s JSON shape - Sample payloads included in your submission package