> For the complete documentation index, see [llms.txt](https://doc.vietqr.vn/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.vietqr.vn/doc/vietqr-api-china/mqtt-api-vietqr.md).

# MQTT API VietQR

销售点代码 MQTT 同步文档

**1. 目的**\
指导集成通过 VietQR 进行交易的二维码生成与使用功能，采用 MQTT 协议传输交易信息，接收余额变动通知（BĐSD），并检查交易状态。

**2. 介绍**\
VietQR 提供二维码生成能力，用于支付交易，并通过 MQTT 协议将二维码信息传输到其他系统。\
VietQR 为支持 MQTT 协议连接的设备（IoT）提供余额变动通知（BĐSD）服务。

**3. MQTT 连接设置**\
**3.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:

```
GET https://doc.vietqr.vn/doc/vietqr-api-china/mqtt-api-vietqr.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.
