# 5.4. Rút tiền từ bot

<table><thead><tr><th width="410">URL</th><th>Method</th></tr></thead><tbody><tr><td><a href="https://services.entrade.com.vn/entrade-api/transactions">https://services.entrade.com.vn/entrade-api/transactions</a></td><td>POST</td></tr></tbody></table>

#### Request header

| Field         | Type        | Description         |
| ------------- | ----------- | ------------------- |
| Authorization | <p><br></p> | Bearer \<JWT Token> |

#### Request Body

| Field             | Type        | Description                 |
| ----------------- | ----------- | --------------------------- |
| investorId        | String      | Mã khách hàng               |
| investorAccountId | Int         | Mã tài khoản của khách hàng |
| data              | <p><br></p> | Bên dưới                    |

#### data (có dạng JSON, thêm vào request body)

| Field               | Type        | Description                 |
| ------------------- | ----------- | --------------------------- |
| investorId          | String      | Mã khách hàng               |
| investorAccountId   | Int         | Mã tài khoản của bot        |
| toInvestorAccountId | Int         | Mã tài khoản của khách hàng |
| amount              | <p><br></p> | Số tiền nạp                 |

#### Response Body

| Field             | Type        | Description                                           |
| ----------------- | ----------- | ----------------------------------------------------- |
| id                | <p><br></p> | Số hiệu lệnh giao dịch                                |
| actor             | String      | Số điện thoại đăng kí tài khoản của khách hàng        |
| investorId        | String      | Mã khách hàng                                         |
| investorAccountId | Int         | Mã tài khoản của bot (dùng khi muốn nạp tiền cho bot) |
| …                 | <p><br></p> | <p><br></p>                                           |


---

# 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://hdsd2.entrade.com.vn/entrade-api/tai-lieu-api-cu/5.-tu-dong-hoa-avatar-bot/5.4.-rut-tien-tu-bot.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.
