v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Customer Group Children

Get Children Group of the Customer Group

To get child customer groups of the customer group.<br>取得母分群的子分群。

get/customer_groups/{parentCustomerGroupId}/customer_group_children

Path parameters

parentCustomerGroupIdstring required

Parent Customer Group ID<br>母分群ID<br>

Query parameters

pageinteger

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

per_pageinteger

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

sort_bystring

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

Response

OK

Example response

{
  "parent": {
    "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"
  },
  "children": [
    {
      "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
  }
}