> For the complete documentation index, see [llms.txt](https://apidocs.abit.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.abit.vn/cham-soc-khach-hang/api-lay-danh-sach-nhom-zalo.md).

# API lấy danh sách nhóm

{% hint style="info" %}

### Sau khi kết nối Zalo của mỗi bạn Sale, Bạn có thể lấy ID Group Zalo mà bạn sale đó tham gia và gửi tin nhắn vào nhóm nào đó bất kỳ theo hướng dân sau

{% endhint %}

Lấy ID Nhóm Zalo của nick Zalo tại đây trên giao diện Abit kết nối Zalo cá nhân

<figure><img src="/files/8TlZPOHPXCdMe5m0Jw64" alt=""><figcaption></figcaption></figure>

Để lấy ID Nhóm Zalo, Quý khách hàng vào phần danh sách Zalo vừa kết nối, có mục **Nhóm Zalo** trên mỗi nick Zalo nhân viên&#x20;

Cách 2: Lấy ID nhóm cần gửi theo API

Phương thức: <mark style="color:green;">POST</mark>

{% tabs %}
{% tab title="URL API Example" %}

```
https://new.abitstore.vn/zalo/listAllGroupForPartner/2/{ma-shop}/{ma-truy-cap}
```

{% endtab %}

{% tab title="Body" %}

```json
{
    "phoneNumber": "84915217486"
}
```

{% endtab %}
{% endtabs %}

<table><thead><tr><th>Tham số</th><th>Giá trị</th></tr></thead><tbody><tr><td><pre><code>phoneNumber
</code></pre></td><td>SĐT Zalo dùng để gửi. Bắt buộc phải có thông tin, chú ý copy đúng định dạng số dạng <mark style="color:$danger;"><strong>84</strong></mark><strong>975xxxxxxx</strong></td></tr></tbody></table>

Kết quả gửi qua API sẽ như này, bạn có thể áp dụng để đứng ở các hệ thống ngoài Abit gửi file tài liệu&#x20;

```postman_json
{
    "number_group": 230,
    "all_groups": [
        {
            "groupId": "2277939074805121739",
            "groupname": "Nhóm A",
            "creatorId": "2054469423625461717",
            "group_avt": "",
            "number_member": 3
        },
        {
            "groupId": "22779390748051217340",
            "groupname": "Nhóm B",
            "creatorId": "2054469423625461717",
            "group_avt": "",
            "number_member": 2
        }
    ]
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://apidocs.abit.vn/cham-soc-khach-hang/api-lay-danh-sach-nhom-zalo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
