v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Customer Groups

Search Customer Groups

To search customer groups with specific conditions.<br>利用特殊條件搜尋顧客分群。

get/customer_groups/search

Query parameters

pageinteger

Page<br>頁數<br>(Default: 1)

per_pageinteger

Numbers of Customers per page<br>每頁顯示 n 筆資料<br>(Default: 24, Max: 999)

querystring

Support searching fields below:<br>支援搜尋以下欄位:<br>customer_group_name

sort_bystring

Setting sort by created time<br>設定依照建立時間排序<br>(Default: desc)

Response

OK

Example response

{
  "items": [
    {
      "id": "5ce0d084e388096bdb229a59",
      "name": "VIP",
      "count": 10,
      "email_users_count": 10,
      "mobile_phone_users_count": 10,
      "updated_at": "2018-07-31T03:57:36.409+00:00",
      "created_at": "2018-07-31T03:57:36.409+00:00",
      "status": "active",
      "update_type": "manual",
      "update_cycle": 7,
      "created_by": "manual",
      "parent_id": "5ce0d084e388096bdb229a59",
      "last_child_id": "643fbf34029235003557bf05",
      "last_updated_at": "2018-07-31T03:57:36.409+00:00",
      "next_update_at": "2018-07-31T03:57:36.409+00:00",
      "expired_at": "2018-07-31T03:57:36.409+00:00"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 24,
    "total_count": 1,
    "total_pages": 1
  }
}