page và page_size (mặc định 25, tối đa 100).order_info ở danh sách chỉ gồm id, code, link_erp, customer; cần đủ thông tin đơn thì gọi GET /invoices/{id} hoặc GET /orders/{id}.| status | Trạng thái |
|---|---|
0 | Sale nháp, chưa gửi kế toán |
1 | Hóa đơn đã phát hành |
2 | Đã hủy |
3 | Hóa đơn nháp |
4 | Sale đồng ý phát hành |
5 | Sale gửi yêu cầu xuất hóa đơn |
Authorization: Bearer ********************curl --location 'https://demo.tourwell.net/invoices?code=HD00122&export_code=undefined&status=undefined&tax_code=undefined&order_id=undefined&order_code=undefined&export_at=undefined&created_at=undefined&updated_at=undefined&page=undefined&page_size=undefined' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": 122,
"code": "HD00122",
"status_code": 1,
"status": "Hóa đơn đã phát hành",
"created_at": "03/08/2026 15:53:22",
"created_at_iso": "2026-08-03T15:53:22+07:00",
"updated_at_iso": "2026-08-03T15:54:56+07:00",
"creator_info": {
"id": 1,
"name": "Admin",
"email": "admin@admin.com"
},
"total_amount": {
"foreign": 0,
"base": "19000000.00"
},
"order_info": {
"id": 1618,
"code": "UP1618",
"link_erp": "https://your-domain.tourwell.vn/admin/order/1618/show",
"customer": {
"id": 2247,
"code": "KH2247",
"name": "NTH"
}
},
"request_info": {
"tax_code": "0101234567",
"company_name": "CÔNG TY TNHH ABC Travel",
"company_address": "Hà Nội",
"description": "Dịch vụ đặt Tour liên minh"
},
"export_info": {
"export_code": "HD001",
"export_date": "03/08/2026",
"export_note": "",
"export_by": "Admin"
},
"export_at_iso": "2026-08-03T15:54:56+07:00",
"cancel_at_iso": null,
"cancel_note": null,
"lookup_url": null,
"inv_series": "1C26TTS",
"currency": {
"foreign_currency": null,
"base_currency": "vnd",
"exchange_rate": 1
},
"items": [
{
"id": 190,
"line_number": 1,
"item_code": "TOUR01",
"item_name": "Người lớn",
"uom": "Khách",
"quantity": 2,
"price": 8796296,
"amount": 17592593,
"tax_rate": 8,
"tax_amount": 1407407,
"discount_amount": 0,
"note": null
}
]
}
],
"links": {},
"meta": {
"current_page": 1,
"per_page": 25,
"total": 123
}
}