GET /customers/{customer_id}/churn

Customer churn score

Score detail, RFM features (AI Act explainability) and recent history for one customer.

GEThttps://zedchurn.fr/api/v1/customers/{customer_id}/churn

Score detail, RFM features (AI Act explainability) and recent history for one customer.

Auth — X-API-Key
Category — Customers

Path parameters

NomTypeRequisDescription
customer_idstring✓external_id du client

Examples

curl -X GET 'https://zedchurn.fr/api/v1/customers/{customer_id}/churn' \
  -H 'X-API-Key: api_zedcheckout_votre_cle_api'

Responses

200OK
{
  "customer_id": "550e8400-e29b-41d4-a716-446655440000",
  "external_id": "cust_789",
  "churn": {
    "score": "0.72",
    "label": "high",
    "model_version": "rules_v1",
    "calculated_at": "2026-05-15T08:00:00Z"
  },
  "features": {
    "recency_days": 45,
    "frequency_orders_30d": 0,
    "monetary_total": "320.00"
  }
}

Errors

  • 404not_foundClient inconnu pour ce tenant

See all error codes →