# API gửi tin nhắn đến nhóm Zalo

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 API sau

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 URL này, Quý khách hàng vào phần danh sách Zalo vừa kết nối, có mục <mark style="color:blue;">**URL API**</mark> trên mỗi nick Zalo nhân viên và gửi đến url trên với body định dạng như mẫu dưới đây

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

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

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

{% endtab %}

{% tab title="Body" %}

```json
{
"send_from_number": "84975387753",
"send_to_groupid": "4973309772266774852",
"message": "Nội dung gửi tin nhắn đến nhóm Zalo bạn muốn"
}
```

{% endtab %}
{% endtabs %}

<table><thead><tr><th>Tham số</th><th>Giá trị</th></tr></thead><tbody><tr><td><pre><code>send_from_number
</code></pre></td><td>SĐT Zalo dùng để gửi, chú ý copy đúng định dạng số dạng <mark style="color:$danger;"><strong>84</strong></mark><strong>975xxxxxxx</strong></td></tr><tr><td><pre><code>send_to_groupid
</code></pre></td><td>ID Group Zalo cần gửi tin nhắn đến</td></tr><tr><td><pre><code>message
</code></pre></td><td>Nội dung tin nhắn Text gửi đến nhóm mà bạn muốn</td></tr></tbody></table>


---

# Agent Instructions: 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:

```
GET https://apidocs.abit.vn/cham-soc-khach-hang/api-gui-tin-nhan-den-nhom-zalo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
