> For the complete documentation index, see [llms.txt](https://api.vietqr.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.vietqr.vn/korea/vietqr-xin-chao/tong-quan/mo-ta-luong-nghiep-api.md).

# Mô tả luồng nghiệp API

## Mô tả luồng nghiệp API VietQR

### 1. Các bước để tạo mã thanh toán VietQR:

#### • Bước 1: Lấy Token truy cập

Khách hàng (KH) cần gọi API Get Token của VietQR để thực hiện truy cập và xác thực. Sau khi xác thực thành công, VietQR sẽ trả về một token, đóng vai trò như chìa khóa để truy cập API tạo mã VietQR.

🔗 [Tham khảo API Get Token](https://api.vietqr.vn/vi/api-vietqr/goi-api-get-token)

#### • Bước 2: Tạo mã thanh toán VietQR

Sau khi nhận được token, KH sử dụng token này để gọi API tạo mã thanh toán VietQR.

🔗 [Tham khảo API tạo mã VietQR](https://api.vietqr.vn/vi/api-vietqr/goi-api-generate-vietqr-code)

#### • Bước 3: Giả lập thanh toán trong môi trường Test/Staging/Sandbox

Trong môi trường thử nghiệm, KH không cần quét mã để thanh toán thực tế. Thay vào đó, KH có thể gọi API Test Callback để giả lập giao dịch thanh toán thành công.

🔗 [Tham khảo API Test Callback](https://api.vietqr.vn/vi/api-vietqr/goi-api-test-callback)

📌 Lưu ý: Sau khi hoàn tất thanh toán, KH cần một nơi để nhận thông báo biến động số dư (BĐSD). Do đó, cần thiết lập một hệ thống tiếp nhận thông tin thanh toán.

### 2. Thiết lập nơi tiếp nhận thông tin thanh toán/BĐSD

#### • Bước 1: Cung cấp API Get Token

KH cần triển khai API Get Token của riêng mình để xác thực và cung cấp token cho VietQR. Token này cho phép VietQR truy cập vào hệ thống của KH để gửi dữ liệu thanh toán/BĐSD.

🔗 [Tham khảo API Get Token](https://api.vietqr.vn/vi/api-vietqr/trien-khai-api-get-token)

#### • Bước 2: Tạo API tiếp nhận dữ liệu giao dịch

KH cần triển khai API Transaction Sync để làm nơi tiếp nhận dữ liệu thanh toán/BĐSD từ VietQR.

🔗 [Tham khảo API Transaction Sync](https://api.vietqr.vn/vi/api-vietqr/trien-khai-api-transaction-sync)

## 📌 Tóm lại:

Quy trình bao gồm việc tạo mã thanh toán VietQR, giả lập thanh toán (trong môi trường test), và xây dựng hệ thống tiếp nhận dữ liệu thanh toán/BĐSD để đảm bảo thông tin giao dịch được ghi nhận đầy đủ.

Quét Mã QR để join vào nhóm Zalo hỗ trợ mở để đươc hỗ trợ :&#x20;

{% embed url="<https://zalo.me/g/tachpp720>" %}
Link vào nhóm mở zalo&#x20;
{% endembed %}

{% tabs %}
{% tab title="Mã QR vào nhóm Chat" %}

<figure><img src="/files/TXJciPT4UpC5QsULnnTf" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}


---

# 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://api.vietqr.vn/korea/vietqr-xin-chao/tong-quan/mo-ta-luong-nghiep-api.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.
