E-commerce integrations
Connect Shopify to ZedCheckout via OAuth for churn scoring, and configure outbound webhooks.
Prerequisites
- Tenant API key:
X-API-Keyfor manual ingestion (POST /events). Shopify OAuth webhooks do not use this header. - Outbound webhook secret:
POST /settings/webhook/secret(JWT) — for ZedCheckout → your systems, not inbound Shopify. - Base URL: https://zedchurn.fr/api/v1
Shopify OAuth (merchants)
Shopify connects from the ZedCheckout dashboard (OAuth). Merchants do not use the Shopify Partner Dashboard.
Who does what
- ZedCheckout publisher (once): scopes in the app version, Protected customer data form and data protection in partners.shopify.com → Apps → ZedCheckout → API access requests.
- Each merchant: open Integrations, click Connect Shopify (or Disconnect then Reconnect if initial import fails with a scope message).
Dashboard URLs
- Integrations: https://zedchurn.fr/en/integrations
- After successful OAuth: redirect to
https://zedchurn.fr/en/integrations?shopify=connected
Publisher detail (scopes, webhooks, troubleshooting): docs/integrations/shopify.md in the monorepo.
Shopify inbound webhooks
After OAuth, Shopify sends signed POST requests; ZedCheckout maps to normalized event_type values (order_created, customer_created, etc.).
Shopify
Auto-registered after connect — replace {tenant_id} with your ZedCheckout tenant id.
Signature: X-Shopify-Hmac-SHA256 (Shopify app secret)
- POST
https://zedchurn.fr/api/v1/webhooks/shopify/t/{tenant_id}/orders - POST
https://zedchurn.fr/api/v1/webhooks/shopify/t/{tenant_id}/customers
URLs and topics detail: Shopify webhooks and docs/integrations/shopify.md.
Outbound webhooks
ZedCheckout notifies your endpoint (HMAC X-ZedCheckout-Signature). Implemented event: retention.campaign.sent (webhook channel campaigns).
- Outbound webhooks guide
GET /settings/webhook/deliveries— delivery history (retry, dead letter)
Slack (planned)
Specification: docs/integrations/slack-notifications.md in the monorepo.