> For the complete documentation index, see [llms.txt](https://apidocs.abit.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.abit.vn/don-hang/in-danh-sach-don-hang.md).

# In danh sách đơn hàng

API cho phép lấy thông tin cần thiết khi in đơn hàng từ hệ thống ngoài Abit

URL API: [https://new.abitstore.vn](https://new.abitstore.vn/invoices/printInvoicebyPartner)

<mark style="color:green;">`POST /`</mark>`invoices/printInvoicebyPartner`

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th width="149">Name</th><th width="95">Type</th><th>Description</th></tr></thead><tbody><tr><td>access_token</td><td>string</td><td>Mã Access token được khởi tạo và cấp quyền bởi chủ tài khoản Abit, Xem hướng dẫn tạo <a href="https://apidocs.abit.vn/gioi-thieu-ve-abit-open-api.md#khoi-tao-access-token"><mark style="color:red;"><strong>Access Token</strong></mark> </a></td></tr><tr><td>partner_name</td><td>string</td><td>Mã shop khi đăng ký Abit</td></tr><tr><td>listinvoice</td><td>arrray</td><td>Bạn có thể in nhiều đơn hàng cùng lúc bằng cách truyền mảng invoiceid đơn hàng</td></tr></tbody></table>

{% tabs %}
{% tab title="Body" %}

```json
{
"access_token":"MzhjNWI4OGE2NDUxNjY4Nzg4MzViMjY1NTIzZTFhY2M=",
"partner_name":"Abit",
"listinvoice": [
    {
      "invoiceid": 103640238
    },
    {
       "invoiceid":103640307
    }
  ]
}
```

{% endtab %}

{% tab title="Response" %}

```json
[
    {
        "invoice_no": "EG95058878A70",
        "confirm_order": "chuyen_hang",
        "ngaygui": "2026-11-09 23:17:32",
        "subject": "Mr A",
        "idshop": 1,
        "accountid": 30229138,
        "confirm_order_time": null,
        "ngayxacnhan": null,
        "other_vandon": null,
        "number_product": "1",
        "cf_879": "097****51",
        "phone_mask": "097****51",
        "trongluong": 1000,
        "thanhtoan": "",
        "cf_881": "203 Minh Khai, Hai Bà Trưng, Hà Nội",
        "ship_street": "203 Minh Khai, Hai Bà Trưng, Hà Nội",
        "cf_875": "JNT",
        "nhomkhach": "",
        "cf_888": "0",
        "invoicestatus": "Daguibuudien",
        "createdtime": "2026-11-09 23:13:57",
        "smownerid": 131,
        "total": "210000.000",
        "invoiceid": 103640238,
        "chiendich": "",
        "nhomchiendich": "",
        "chanel": "",
        "nhanvien": "",
        "mavandon": "8543847343553",
        "productstoreid": "1",
        "cuoccod": "",
        "CodAmount": 0,
        "cf_883": "Mr A",
        "cf_889": "1",
        "ward": "00295",
        "tongcuocdi": "",
        "ghichu1": "",
        "notevanchuyen": "ghi chú vận chuyển",
        "giamgia": "0.000",
        "phivanchuyen": "0.000",
        "phuthu": "0.000",
        "tiendatcoc": "0.000",
        "provinceCode": "01",
        "districtcode": "007",
        "ClientNote": "",
        "statusvandon": "",
        "duedate": "2026-11-09",
        "discount_percent": "0.000",
        "discount_amount": "0.000",
        "s_h_amount": "0.000",
        "adjustment": "0.000",
        "taxtype": "individual",
        "subtotal": "210000.000",
        "ecom_doanhso": "210000.000",
        "taxtotal_invoice": "0.000",
        "type": null,
        "reminder_date": null,
        "is_hachtoan": 1,
        "ecommerce_id": "0",
        "paymentby_voucher": "0.000",
        "paymentby_card": "0.000",
        "paymentby_other": "0.000",
        "bank_number": "",
        "bank_name": "",
        "bank_owner_name": "",
        "thongdiep": null,
        "userInfo": [
            {
                "first_name": "Họ teen",
                "last_name": "Nhân Viên dê mô",
                "phone_mobile": "0975387753"
            }
        ],
        "listProduct": [
            {
                "productid": 71119264,
                "price": "210000.000",
                "amount": "1.000",
                "storeId": 1,
                "productName": "Thùng rác inox đạp chân 5L",
                "productcode": "INOX5LA",
                "usageunit": "Cái",
                "unit_price": "210000.000",
                "weight": "1000",
                "imagename": "[{\"id\":1,\"isDefault\":true,\"imgSrc\":\"https://cf.shopee.vn/file/f5319a0297796d91a6925c6181a43270\"}]",
                "discount_percent": "0.000",
                "time_baohanh": 0,
                "starttime_baohanh": "0000-00-00",
                "description": "Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t c&oacute; thiết kế nhỏ gọn sang trọng, th&iacute;ch hợp với mọi kh&ocirc;ng gian l&agrave;m việc v&agrave; văn ph&ograve;ng. Hiện nay c&ocirc;ng ty H&agrave;nh Tinh Xanh l&agrave; nh&agrave; cung cấp th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L h&agrave;ng đầu Việt Nam với chất lượng, gi&aacute; th&agrave;nh sản phẩm tốt nhất tới tất cả c&aacute;c kh&aacute;ch h&agrave;ng tr&ecirc;n khắp cả nước. Ngo&agrave;i cung cấp th&ugrave;ng r&aacute;c inox c&ocirc;ng ty c&ograve;n cung cấp th&ugrave;ng r&aacute;c nhựa với nhiều chủng loại mẫu m&atilde; kh&aacute;c nhau với số lượng lớn, gi&aacute; rẻ nhất tại Việt Nam. Th&ocirc;ng tin th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t: - Xuất xứ: h&agrave;ng nhập khẩu - Chất liệu: inox kh&ocirc;ng gỉ - Kiểu d&aacute;ng: đẹp, hiện đại - Dung t&iacute;ch: 5 L&iacute;t - Size:(&Oslash;)200mm x (H)275mm M&ocirc; tả th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t: - Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5l&iacute;t hoạt động bằng b&agrave;n đạp ch&acirc;n, kh&ocirc;ng cần d&ugrave;ng tay mở nắp - Th&ugrave;ng r&aacute;c rời b&ecirc;n trong với quai x&aacute;ch tiện lợi. Nắp đậy k&iacute;n kh&ocirc;ng g&acirc;y m&ugrave;i hại cho sức khỏe v&agrave; &ocirc; nhiễm m&ocirc;i trường - Ch&acirc;n đế bằng cao su chống trượt, kh&ocirc;ng b&aacute;m dấu v&acirc;n tay - Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L với cơ chế đ&oacute;ng &ndash; mở bền bỉ, kh&ocirc;ng gỉ nước hay vung v&atilde;i khi sử dụng. - Th&ugrave;ng đựng r&aacute;c b&ecirc;n trong bằng nhựa chống b&aacute;m d&iacute;nh gi&uacute;p việc vệ sinh được dễ d&agrave;ng hơn. - Với thiết kế bằng inox hiện đại, chịu được va đập cao. Vỏ inox s&aacute;ng b&oacute;ng trang nh&atilde;, lịch sự. Vị tr&iacute; đặt: Th&ugrave;ng đựng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t đẹp v&agrave; trang nh&atilde;, ph&ugrave; hợp với nhu cầu sử dụng trong ph&ograve;ng kh&aacute;ch, nh&agrave; bếp, nh&agrave; tắm, nh&agrave; vệ sinh, văn ph&ograve;ng&hellip; Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L mang nh&atilde;n hiệu Paloca được bảo h&agrave;nh 12 th&aacute;ng kể từ ng&agrave;y giao h&agrave;ng, C&ocirc;ng ty CP Thương mại &amp; Dịch vụ H&agrave;nh Tinh Xanh l&agrave; đơn vị trực tiếp sản xuất v&agrave; ph&acirc;n phối tr&ecirc;n to&agrave;n quốc.\n",
                "short_description": "Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t c&oacute; thiết kế nhỏ gọn sang trọng, th&iacute;ch hợp với mọi kh&ocirc;ng gian l&agrave;m việc v&agrave; văn ph&ograve;ng. Hiện nay c&ocirc;ng ty H&agrave;nh Tinh Xanh l&agrave; nh&agrave; cung cấp th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L h&agrave;ng đầu Việt Nam với chất lượng, gi&aacute; th&agrave;nh sản phẩm tốt nhất tới tất cả c&aacute;c kh&aacute;ch h&agrave;ng tr&ecirc;n khắp cả nước. Ngo&agrave;i cung cấp th&ugrave;ng r&aacute;c inox c&ocirc;ng ty c&ograve;n cung cấp th&ugrave;ng r&aacute;c nhựa với nhiều chủng loại mẫu m&atilde; kh&aacute;c nhau với số lượng lớn, gi&aacute; rẻ nhất tại Việt Nam. Th&ocirc;ng tin th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t: - Xuất xứ: h&agrave;ng nhập khẩu - Chất liệu: inox kh&ocirc;ng gỉ - Kiểu d&aacute;ng: đẹp, hiện đại - Dung t&iacute;ch: 5 L&iacute;t - Size:(&Oslash;)200mm x (H)275mm M&ocirc; tả th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t: - Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5l&iacute;t hoạt động bằng b&agrave;n đạp ch&acirc;n, kh&ocirc;ng cần d&ugrave;ng tay mở nắp - Th&ugrave;ng r&aacute;c rời b&ecirc;n trong với quai x&aacute;ch tiện lợi. Nắp đậy k&iacute;n kh&ocirc;ng g&acirc;y m&ugrave;i hại cho sức khỏe v&agrave; &ocirc; nhiễm m&ocirc;i trường - Ch&acirc;n đế bằng cao su chống trượt, kh&ocirc;ng b&aacute;m dấu v&acirc;n tay - Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L với cơ chế đ&oacute;ng &ndash; mở bền bỉ, kh&ocirc;ng gỉ nước hay vung v&atilde;i khi sử dụng. - Th&ugrave;ng đựng r&aacute;c b&ecirc;n trong bằng nhựa chống b&aacute;m d&iacute;nh gi&uacute;p việc vệ sinh được dễ d&agrave;ng hơn. - Với thiết kế bằng inox hiện đại, chịu được va đập cao. Vỏ inox s&aacute;ng b&oacute;ng trang nh&atilde;, lịch sự. Vị tr&iacute; đặt: Th&ugrave;ng đựng r&aacute;c inox đạp ch&acirc;n 5 l&iacute;t đẹp v&agrave; trang nh&atilde;, ph&ugrave; hợp với nhu cầu sử dụng trong ph&ograve;ng kh&aacute;ch, nh&agrave; bếp, nh&agrave; tắm, nh&agrave; vệ sinh, văn ph&ograve;ng&hellip; Th&ugrave;ng r&aacute;c inox đạp ch&acirc;n 5L mang nh&atilde;n hiệu Paloca được bảo h&agrave;nh 12 th&aacute;ng kể từ ng&agrave;y giao h&agrave;ng, C&ocirc;ng ty CP Thương mại &amp; Dịch vụ H&agrave;nh Tinh Xanh l&agrave; đơn vị trực tiếp sản xuất v&agrave; ph&acirc;n phối tr&ecirc;n to&agrave;n quốc.\n",
                "mo_ta_them": "",
                "endtime_baohanh": "0000-00-00",
                "serial_imei": "",
                "inventorytype": 0,
                "serial": [],
                "discount_amount": "0.000",
                "use_unit_convert": 0,
                "unit_convert_name": "Cái",
                "unit_convert_code": "INOX5LA",
                "unit_convert_quantity": "1.000",
                "unit_convert_dvt": null,
                "unit_convert_price": "210000.000",
                "tax1": "0.000",
                "vitri": "",
                "qtyinstock": null
            }
        ],
        "accountinfo": {
            "accountname": "Mr A",
            "phone": "097****51",
            "otherphone": "",
            "email1": "",
            "diachivanphong": "",
            "diachi_vat": "",
            "tenlienhe": "Mr A",
            "tax_number": "",
            "diachithanhtoan": "",
            "chuc_vu_name": null,
            "dai_dien_phap_luat": null
        }
    },
    {
        "invoice_no": "EG95058947A52",
        "confirm_order": null,
        "ngaygui": null,
        "subject": "Mr A",
        "idshop": 1,
        "accountid": 30229138,
        "confirm_order_time": null,
        "ngayxacnhan": null,
        "other_vandon": null,
        "number_product": "1",
        "cf_879": "097****53",
        "phone_mask": "097****53",
        "trongluong": 11000,
        "thanhtoan": "",
        "cf_881": "203 Minh Khai, Hai Bà Trưng, Hà Nội",
        "ship_street": "203 Minh Khai, Hai Bà Trưng, Hà Nội",
        "cf_875": "",
        "nhomkhach": "",
        "cf_888": "0",
        "invoicestatus": "AutoCreated",
        "createdtime": "2026-11-09 23:14:36",
        "smownerid": 131,
        "total": "1069200.000",
        "invoiceid": 103640307,
        "chiendich": "",
        "nhomchiendich": "",
        "chanel": "",
        "nhanvien": "",
        "mavandon": "",
        "productstoreid": "1",
        "cuoccod": "",
        "CodAmount": 0,
        "cf_883": "Mr A",
        "cf_889": "0",
        "ward": "00295",
        "tongcuocdi": "",
        "ghichu1": "",
        "notevanchuyen": "",
        "giamgia": "0.000",
        "phivanchuyen": "0.000",
        "phuthu": "0.000",
        "tiendatcoc": "0.000",
        "provinceCode": "01",
        "districtcode": "007",
        "ClientNote": "",
        "statusvandon": "",
        "duedate": "2026-11-09",
        "discount_percent": "0.000",
        "discount_amount": "0.000",
        "s_h_amount": "0.000",
        "adjustment": "0.000",
        "taxtype": "individual",
        "subtotal": "1069200.000",
        "ecom_doanhso": "1069200.000",
        "taxtotal_invoice": "0.000",
        "type": null,
        "reminder_date": null,
        "is_hachtoan": 1,
        "ecommerce_id": "0",
        "paymentby_voucher": "0.000",
        "paymentby_card": "0.000",
        "paymentby_other": "0.000",
        "bank_number": "",
        "bank_name": "",
        "bank_owner_name": "",
        "thongdiep": null,
        "userInfo": [
            {
                "first_name": "Họ teen",
                "last_name": "Nhân Viên dê mô",
                "phone_mobile": "0975387753"
            }
        ],
        "listProduct": [
            {
                "productid": 96916813,
                "price": "990000.000",
                "amount": "1.000",
                "storeId": 1,
                "productName": "Thùng rác 240L - Xanh biển - 240L-XANHBIEN",
                "productcode": "240L-XANHBIEN",
                "usageunit": "Cái",
                "unit_price": "990000.000",
                "weight": "11000",
                "imagename": "[{\"isDefault\":true,\"imgSrc\":\"https://cf.shopee.vn/file/2a6f0dbe4f95a93607341287277e1ddb\"}]",
                "discount_percent": "0.000",
                "time_baohanh": 0,
                "starttime_baohanh": "0000-00-00",
                "description": "",
                "short_description": "",
                "mo_ta_them": "",
                "endtime_baohanh": "0000-00-00",
                "serial_imei": "",
                "inventorytype": 0,
                "serial": [],
                "discount_amount": "0.000",
                "use_unit_convert": 0,
                "unit_convert_name": "",
                "unit_convert_code": "",
                "unit_convert_quantity": "0.000",
                "unit_convert_dvt": null,
                "unit_convert_price": "990000.000",
                "tax1": "8.000",
                "vitri": "",
                "qtyinstock": null
            }
        ],
        "accountinfo": {
            "accountname": "Mr A",
            "phone": "097****51",
            "otherphone": "",
            "email1": "",
            "diachivanphong": "",
            "diachi_vat": "",
            "tenlienhe": "Mr A",
            "tax_number": "",
            "diachithanhtoan": "",
            "chuc_vu_name": null,
            "dai_dien_phap_luat": null
        }
    }
]
```

{% endtab %}
{% endtabs %}

Từ dữ liệu trả ra từ API , bạn cũng có thể tạo được nội dung in như này cho đơn hàng được tạo trên Abit\
![](https://3069215855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F91ushNBhdXBKtwOIS6Yg%2Fuploads%2FNYcNB5RNw9hkAX607Af9%2Fimage.png?alt=media\&token=785fc960-2231-42d3-b9e2-e6196edd6686)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.abit.vn/don-hang/in-danh-sach-don-hang.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
