Segments
Customer segmentation: rules, membership, exports and analytics
📄️ Create a segment
Creates a new customer or product segment for the store. Rules follow the segment rule DSL (nested AND/OR/NOT groups of field conditions).
📄️ List segments
Returns a paginated list of the store's segments, each enriched with rolling 30-day performance metrics. Supports filtering by type, status and free-text search.
📄️ List segment export jobs
Returns a paginated list of segment export jobs for the store, optionally filtered by segment and job status.
📄️ Get export job status
Returns a single segment export job with its progress (including a computed completion percentage), result and error details.
📄️ List field option values
Returns distinct values (with product counts) for a product attribute field, for use as rule-condition value suggestions. Only `category` and `vendor` are supported; results are capped at 50 values.