Báo cáo & tiện ích
Mô tả
Các API hỗ trợ:
- GET /reports/inventories: Báo cáo XNT
- GET /files/.../logo: Logo merchant
- GET /printerBrands/forSelectBox: Hãng máy in
API
GET /api/reports/inventories
Báo cáo xuất / nhập / tồn kho:
Tham số query:
| Tên trường | Kiểu dữ liệu | Mô tả | Bắt buộc |
|---|---|---|---|
merchant_product_id | string | Mã hàng hóa | Không |
product_id | string | Id hàng hóa | Không |
warehouse_id | string | Mã kho | Không |
created_from | string | yyyy-MM-dd'T'HH:mm:ss | Không |
created_to | string | yyyy-MM-dd'T'HH:mm:ss | Không |
page | integer | Trang | Không |
size | integer | Số bản ghi / trang | Không |
GET /api/reports/inventories?page=1&size=20
Response Body
{
"code": 200,
"message": "Success",
"result": [],
"page": 1,
"page_size": 20,
"total": 0
}
GET /api/files/merchants/{merchantId}/logo
Lấy ảnh logo merchant (public). Response binary image — không có JSON body.
GET /api/files/merchants/\{merchantId\}/logo
GET /api/printerBrands/forSelectBox
Hãng máy in cho select box.
GET /api/printerBrands/forSelectBox
Response Body
{
"code": 200,
"message": "Success",
"result": {}
}