> For the complete documentation index, see [llms.txt](https://e-bot.card2k.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://e-bot.card2k.com/huong-dan-setup/cau-hinh-bot/cau-hinh-nap-atm/cai-dat-webhook.md).

# Cài đặt Webhook

{% hint style="success" %}
Bot được quản lý và chịu trách nhiệm trực tiếp bởi đơn vị [Card2K](https://card2k.com/) !!
{% endhint %}

Cài đặt webhook để khi có giao dịch hệ thống sẽ tự động báo cáo cho BOT

> 1. Truy cập trang "[Tích hợp WebHooks](https://my.sepay.vn/webhooks)"

<figure><img src="/files/eN65mZHsZSboD4FdRwzV" alt=""><figcaption><p>Truy cập mục "Tích hợp webhooks"</p></figcaption></figure>

> 2. Thêm mới webhooks

<figure><img src="/files/ElF61gx4V5oL1gxTPHP6" alt=""><figcaption><p>Chọn "Thêm webhooks"</p></figcaption></figure>

> 3. Đặt tên, bạn có thể chọn tên gì cũng được. Khuyến khích `E-Bot Card2k`

<figure><img src="/files/QJhyxl5BDgyidw2zYyl4" alt=""><figcaption><p>Đặt tên Webhook</p></figcaption></figure>

> 4. Chọn sự kiện **"Có tiền vào"**

<figure><img src="/files/yfCGkD4rswYrvORp9raG" alt=""><figcaption><p>Cấu hình "Sự kiện"</p></figcaption></figure>

> 5. Mục "chọn điều kiện" bạn chọn ngân hàng bạn đã liên kết ở [Bước 1](/huong-dan-setup/cau-hinh-bot/cau-hinh-nap-atm/ket-noi-sepay.md)

<figure><img src="/files/dUFiydhy2uewjueInRst" alt=""><figcaption><p>Cấu hình "Điều kiện"</p></figcaption></figure>

> 6. ✨ **Bước quan trọng** (điền như trong hình)
>
> Gọi đến URL: `https://e-bot-webhook.card2k.com/sepay`
>
> Là Webhooks xác thực thanh toán? `Đúng`
>
> Gọi lại Webhook khi? `Tích chọn`

<figure><img src="/files/XWIzTnjRGQYSCfYfiIHI" alt=""><figcaption></figcaption></figure>

> 7. Cấu hình chứng thực webhooks. (điền như hình)
>
> Kiểu chứng thực: `APIKey`
>
> Request Content Type: `application/json`
>
> API Key: Sử dụng lệnh `/setup bank` để lấy Key bảo mật ([hướng dẫn lấy key bảo mật](/khac/cach-lay-bao-mat-sepay.md))

<figure><img src="/files/U5qMkbs5PxfmipWnURJr" alt=""><figcaption></figcaption></figure>

> 8. Cài đặt xong, tiến hành **Thêm**

<figure><img src="/files/ou7ldTck9XxCEbhv1b6q" alt=""><figcaption><p>Chọn "Thêm" để tiến hành tạo mới</p></figcaption></figure>

<figure><img src="/files/gT1PuYC0udeElz9WsuNP" alt=""><figcaption><p>Thêm thành công Webhook</p></figcaption></figure>


---

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

```
GET https://e-bot.card2k.com/huong-dan-setup/cau-hinh-bot/cau-hinh-nap-atm/cai-dat-webhook.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.
