E-commerce integrations

Connect Shopify to ZedCheckout via OAuth for churn scoring, and configure outbound webhooks.

Prerequisites

  1. Tenant API key: X-API-Key for manual ingestion (POST /events). Shopify OAuth webhooks do not use this header.
  2. Outbound webhook secret: POST /settings/webhook/secret (JWT) — for ZedCheckout → your systems, not inbound Shopify.
  3. 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

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)

  • POSThttps://zedchurn.fr/api/v1/webhooks/shopify/t/{tenant_id}/orders
  • POSThttps://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).

Slack (planned)

Specification: docs/integrations/slack-notifications.md in the monorepo.