POST /churn/recalculate

Recalculate scores

Force score recalculation for the whole tenant or a list of customer_ids (max 1000). Async processing via Celery.

POSThttps://zedchurn.fr/api/v1/churn/recalculate

Force score recalculation for the whole tenant or a list of customer_ids (max 1000). Async processing via Celery.

Auth — X-API-Key
Category — Churn

Request body

NomTypeRequisDescription
customer_idsstring[]—IDs externes ; omis = tout le tenant
forceboolean—Ignorer le cache TTL

Examples

Request body

1{ "customer_ids": ["cust_789", "cust_456"], "force": true }
curl -X POST 'https://zedchurn.fr/api/v1/churn/recalculate' \
  -H 'X-API-Key: api_zedcheckout_votre_cle_api' \
  -H 'Content-Type: application/json' \
  -d '{ "customer_ids": ["cust_789", "cust_456"], "force": true }'

Responses

202Accepted
{ "job_id": "job_abc", "queued": 2, "message": "Recalculation queued" }