# Lấy dữ liệu hóa đơn đầu vào

* Lấy và đọc toàn bộ hoá đơn đầu vào của doanh nghiệp, giúp tự động hóa quy trình nhập liệu và giảm thiểu sai sót do nhập liệu thủ công.
* Chuyển đổi các thông tin của hoá đơn đầu vào dưới định dạng XML và hiển thị lên màn hình nhập liệu.
* Hiển thị mẫu in của hoá đơn điện tử.

## Các bước thực hiện

Chương trình tự động lấy hóa đơn từ hộp Mail ( hoặc từ Tổng cục thuế ) về tại màn hình Mua vào/ Bán ra.&#x20;

Các hóa đơn được lấy về cập nhật sẽ có trạng thái **Chờ duyệt.**

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

Trường hợp chương trình chưa kịp cập nhật tự động hoá đơn thì người dùng có thể lấy ngay hoá đơn về bằng cách nhấn **Lấy dữ liệu hoá đơn mới.**

<figure><img src="/files/34rtPSUKyf3x8I14BaK9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/hi0dnAjPj2mSvuMcX6st" 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://help.safebooks.vn/safebooks/quan-ly-hoa-don/lay-du-lieu-hoa-don-dau-vao.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.
