# Tài liệu tích hợp dành cho Publisher của DiMuaDi

File Datafeed được cung cấp dưới dạng file csv, gồm các trường thông tin sau:&#x20;

| Tên                     | Ý nghĩa                                                             |
| ----------------------- | ------------------------------------------------------------------- |
| id                      | ID của sản phẩm                                                     |
| name                    | Tên sản phẩm                                                        |
| thumb Image             | Link ảnh đại diện của sản phẩm                                      |
| price                   | Giá bán                                                             |
| price\_before\_discount | Giá trước khi giảm. Nếu sản phẩm không giảm giá thì hiển thị bằng 0 |
| ship\_price             | Chính sách vận chuyển                                               |
| category                | Ngành hàng                                                          |
| description             | Mô tả sản phẩm                                                      |

{% file src="/files/wJQDkYAPWCd5JmTJzTnL" %}

Bạn sẽ tạo link bán hàng của mình theo cấu trúc

```
https://shop.dimuadi.vn/product/<product_id>?pub_id=<pub_id> 
```

Để tạo link sản phẩm cho mình, bạn đăng nhập vào app Dimuadi hoặc web <https://banhang.dimuadi.vn>, copy link share của sản phẩm

![](/files/-MhsV6H-Dh9K_HgAgEQ2)

Ví dụ link của bạn là&#x20;

```
https://shop.dimuadi.vn/product/16844?pub_id=6728183105103855616
```

Bạn sẽ có được pub\_id = 6728183105103855616

Ghép với product\_id có được ở datafeed, bạn sẽ tự tạo được link cho mình

**API cung cấp id sản phẩm và thông tin sản phẩm:**

curl --location --request GET '<https://apis.dimuadi.vn/d2c-service/product'\\>
\--header 'Connection: keep-alive'\
\--header 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "CCleaner Browser";v="98"'\
\--header 'Accept: application/json, text/plain, */*'\
\--header 'DNT: 1'\
\--header 'Authorization;'\
\--header 'sec-ch-ua-mobile: ?0'\
\--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36'\
\--header 'sec-ch-ua-platform: "Windows"'\
\--header 'Origin: <https://dev.dimuadi.vn'\\>
\--header 'Sec-Fetch-Site: same-site'\
\--header 'Sec-Fetch-Mode: cors'\
\--header 'Sec-Fetch-Dest: empty'\
\--header 'Referer: <https://dimuadi.vn/'\\>
\--header 'Accept-Language: en-US,en;q=0.9'\
\--header 'If-None-Match: W/"67f8-oIoVqmuCjX4k404H4Ody4UGmJjw"'\
\--header 'Cookie: rchsession=52d47251db104ed53fce3eb8a8992022844c79cc'

*Status đơn hàng có 4 trạng thái*&#x20;

*hết hàng: status: 3 ; hiển thị: status: 2; tạm dừng: status: 1; chờ duyệt. status: 0*

**API cung cấp category sản phẩm:**

curl --location --request GET '<https://apis.dimuadi.vn/d2c-service/product'\\>
\--header 'Connection: keep-alive'\
\--header 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "CCleaner Browser";v="98"'\
\--header 'Accept: application/json, text/plain, */*'\
\--header 'DNT: 1'\
\--header 'Authorization;'\
\--header 'sec-ch-ua-mobile: ?0'\
\--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36'\
\--header 'sec-ch-ua-platform: "Windows"'\
\--header 'Origin: <https://dev.dimuadi.vn'\\>
\--header 'Sec-Fetch-Site: same-site'\
\--header 'Sec-Fetch-Mode: cors'\
\--header 'Sec-Fetch-Dest: empty'\
\--header 'Referer: <https://dimuadi.vn/'\\>
\--header 'Accept-Language: en-US,en;q=0.9'\
\--header 'If-None-Match: W/"67f8-oIoVqmuCjX4k404H4Ody4UGmJjw"'\
\--header 'Cookie: rchsession=52d47251db104ed53fce3eb8a8992022844c79cc'

**API cung cấp brand:**

curl --location --request GET '<https://apis.dimuadi.vn/d2c-service/brand'\\>
\--header 'authority: apis.dimuadi.vn'\
\--header 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "CCleaner Browser";v="98"'\
\--header 'accept: application/json, text/plain, */*'\
\--header 'dnt: 1'\
\--header 'sec-ch-ua-mobile: ?0'\
\--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36'\
\--header 'sec-ch-ua-platform: "Windows"'\
\--header 'origin: <https://shop.dimuadi.vn'\\>
\--header 'sec-fetch-site: same-site'\
\--header 'sec-fetch-mode: cors'\
\--header 'sec-fetch-dest: empty'\
\--header 'referer: <https://shop.dimuadi.vn/'\\>
\--header 'accept-language: en-US,en;q=0.9'\
\--header 'Cookie: rchsession=52d47251db104ed53fce3eb8a8992022844c79cc'


---

# 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://developers.dimuadi.vn/master.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.
