Shopify entegrasyonu
Shopify mağaza olaylarını ve Content API’yi Otomasyum örnek scripti ile bağlayın.
-
1
Shopify site kaydı oluşturun
Otomasyum’da: Siteler → Oluştur → tür Shopify. Site URL olarak mağaza domain’inizi yazın.
-
2
Örneği uygulama backend’inize bağlayın
notifyOtomasyum / createShopifyWebhookHandler kullanın. X-Shopify-Hmac-Sha256’yi SHOPIFY_WEBHOOK_SECRET ile doğrulayın. Topic → action map (products/update → content_updated).
OTOMASYUM_API_BASE=https://www.otomasyum.com OTOMASYUM_API_KEY=your_webhook_api_key OTOMASYUM_CONTENT_TOKEN=your_content_token SHOPIFY_WEBHOOK_SECRET=shpss_… OTOMASYUM_CACHE_CLEAR_SECRET=optional_purge_secret
Sync sözleşmesi
POST https://www.otomasyum.com/api/v1/tenant/sites/sync
Headers: X-API-Key, X-Site-URL, X-Idempotency-Key
Body: { "action": "content_updated", "source": "shopify", "id": … }
Eski “event” + iç içe “payload” gövdeleri sunucuda normalize edilir.