GET /customers

List customers

Retrieve customers with current churn scores. Cursor pagination, filters by label and score.

GEThttps://zedchurn.fr/api/v1/customersEssential

Retrieve customers with current churn scores. Cursor pagination, filters by label and score.

Auth — X-API-Key
Category — Customers

Query parameters

NomTypeRequisDescription
churn_labelstring[]—low, medium, high, critical
min_scorefloat—Score minimum (0–1)
max_scorefloat—Score maximum (0–1)
sortstring—churn_score_desc | last_activity_desc | …
limitinteger—Résultats par page (1–200, défaut 50)
cursorstring—Curseur de pagination (positif)

Examples

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

Responses

200OK
{
  "data": [{
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "external_id": "cust_789",
    "churn": {
      "score": "0.72",
      "label": "high",
      "calculated_at": "2026-05-15T08:00:00Z",
      "model_version": "rules_v1"
    }
  }],
  "pagination": { "next_cursor": "eyJpZCI6...", "has_more": true }
}

Errors

  • 401unauthorizedClé API invalide
  • 422validation_errorcursor négatif ou limit hors bornes

See all error codes →