# Tạo và lấy mã app token từ hệ thống Haravan

Để các tính năng liên quan tới việc tạo và cập nhật mã khuyến mãi lên hệ thống Haravan được hoạt động ổn định, bạn cần tạo ứng dụng riêng trên Haravan theo hướng dẫn dưới đây:

Truy cập **Tăng trưởng** → **Mã khuyến mãi** → **Tạo mã mới** → hệ thống yêu cầu cập nhật API App Token như hình bên dưới:

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

Để lấy App token, bạn cần thực hiện các bước sau:

Bước 1: Truy cập Trang quản trị trên Haravan → chọn **Ứng dụng** → chọn **Ứng dụng riêng**:

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

Chọn tiếp **Tạo ứng dụng riêng:**

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

Bước 2: Nhập tên ứng dụng tùy ý → chọn **Hiện quyền quản trị API không hoạt động** → Kéo xuống tìm **Khuyến mãi** → thay đổi quyền thành **Đọc và ghi** → bấm **Tạo ứng** **dụng riêng:**

<figure><img src="/files/1EL4omHSVIuKFWikj6f6" alt=""><figcaption></figcaption></figure>

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

Bước 3: Bấm **Hiện Token** → **copy** → chọn **Lưu:**

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

Bước 4: Truy cập Trang quản trị GrowthUP → chọn **Tăng trưởng** → **Khuyến mãi** → dán Token vào → bấm **Cập nhật**

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


---

# 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://docs.growthup.vn/bat-dau-su-dung/thiet-lap-ban-dau/tao-va-lay-ma-app-token-tu-he-thong-haravan.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.
