list_customer_groups
Retrieve a list of customer groups with optional name search. Use to browse segments or obtain group IDs for further queries.
Instructions
取得客戶群組列表,支援依名稱搜尋。
【用途】 瀏覽或搜尋已建立的客戶群組(分群)。可用於確認客戶標籤分群策略、 取得群組 ID 後進一步查詢群組成員。
【呼叫的 Shopline API】
GET /v1/customer-groups(無搜尋條件時)
GET /v1/customer-groups/search(有搜尋條件時)
【回傳結構】 dict 含 total_found, returned, groups[]。 每個 group 包含 id, name, customers_count, created_at。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search_keyword | No | 群組名稱搜尋關鍵字 | |
| max_results | No | 最多回傳筆數 |