> For the complete documentation index, see [llms.txt](https://tailieu.smax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.ai/module-cai-dat/tich-hop/kiotviet.md).

# KiotViet

{% hint style="info" %}
Hướng dẫn tích hợp KiotViet vào module <mark style="color:orange;">**Nhắn tin**</mark> để lên đơn
{% endhint %}

## 1\_ Tạo kết nối trên KiotViet

Để tạo kết nối trên KiotViet, bạn cần truy cập vào <mark style="color:orange;">**Thiết lập cửa hàng**</mark> và chọn <mark style="color:orange;">**Thiết lập kết nối API**</mark>

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FWOLrN4BFFKHvj1sdZctz%2Fimage.png?alt=media&amp;token=11624ac8-31bf-4b55-bfeb-e5714d7735f8" alt=""><figcaption></figcaption></figure>

Sau đó chọn <mark style="color:orange;">**Tạo mã**</mark> và <mark style="color:orange;">**Lưu**</mark> để tạo kết nối mới

Lưu lại <mark style="color:orange;">**Tên kết nối**</mark>, <mark style="color:orange;">**Client ID**</mark>, <mark style="color:orange;">**Mã bảo mật**</mark> để kết nối với SmaxAi

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FrKlHHNlB7LnyF0xVziXy%2Fimage.png?alt=media&amp;token=04069a9d-79a2-4f84-a092-3d1ef65c07ee" alt=""><figcaption></figcaption></figure>

## 2\_ Kết nối KiotViet

Chọn nền tảng KiotViet, trong cửa sổ kết nối điền các thông tin

<mark style="color:orange;">**(1)**</mark> - Đặt tên cho kết nối với KiotViet

<mark style="color:orange;">**(2)**</mark> - Retailer: <mark style="color:orange;">**Tên kết nối**</mark> tạo ở bước 1

<mark style="color:orange;">**(3)**</mark> - Client id: <mark style="color:orange;">**Client ID**</mark> tạo ở bước 1

<mark style="color:orange;">**(4)**</mark> - Client Secret: <mark style="color:orange;">**Mã bảo mật**</mark> tạo ở bước 1

Sau đó chọn <mark style="color:orange;">**Lưu**</mark> để thêm kết nối

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2Fy3YbOVC1ZSxfytOVXtWp%2Fimage.png?alt=media&amp;token=96362cf2-698f-4291-9a2d-b20e6420a6be" alt=""><figcaption></figcaption></figure>
