All routes need a user who can manage WooCommerce, for example with an application password.
| Route | Does |
|---|---|
GET /wp-json/wfcs/v1/segments | Ready and custom segments with counts. |
GET /wp-json/wfcs/v1/customers | The same filters as the screen, plus email, page, per_page, orderby, order. |
POST /wp-json/wfcs/v1/recalculate | Starts a run. |
wp wfcs status, wp wfcs recalculate --wait, wp wfcs segments --format=csv, wp wfcs customers --segment=at_risk --format=csv