Recalculate scores
Force score recalculation for the whole tenant or a list of customer_ids (max 1000). Async processing via Celery.
POST
https://zedchurn.fr/api/v1/churn/recalculateForce 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
| Nom | Type | Requis | Description |
|---|---|---|---|
| customer_ids | string[] | — | IDs externes ; omis = tout le tenant |
| force | boolean | — | 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" }