Skip to main content

Phiếu kiểm kê

Mô tả

Các API hỗ trợ:

API


GET /api/inventoryTickets

Lấy danh sách các phiếu kiểm kê, hỗ trợ các tham số filter sau:

Tên trườngKiểu dữ liệuMô tả
namestringTên hàng hóa
statusstringTrạng thái
created_fromstringTừ ngày
created_tostringĐến ngày
warehouse_idstringMã kho
sortintegerTên trường sắp xếp
orderintegerThứ tự sắp xếp
pageintegerTrang
sizeintegerSố bản ghi trên trang

Trạng thái bao gồm: tao_moi | dang_kiem_ke | da_dong

GET /api/inventoryTickets?page=1&size=10&order=asc&sort=name&name=phieu&status=tao_moi&created_from=2024-01-01T10%3A00%3A00Z&created_to=2025-01-01T10%3A00%3A00Z&warehouse_id=47110cc6-d13e-42ba-b61d-7fdf116a7d80

Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"id": "6cb914c0-cf56-477f-970f-ca2eb1aea1fc",
"code": "m032_05032024_102233",
"name": "0305_phieu",
"status": "tao_moi",
"warehouse_id": "47110cc6-d13e-42ba-b61d-7fdf116a7d80",
"zone": null,
"total_quantity": 315,
"total_scan_quantity": 0,
"note": null,
"merchant_id": "00000000-0000-0000-0000-000000000004",
"deleted": 0,
"created_at": "2024-03-05T03:22:33.000Z",
"created_by": "admin",
"updated_at": null,
"updated_by": null
}
],
"page": 1,
"page_size": 10,
"total": 1
}

GET /api/inventoryTickets/{id}

Lấy chi tiết 1 phiếu kiểm kê.

GET /api/inventoryTickets/6cb914c0-cf56-477f-970f-ca2eb1aea1fc

Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"id": "5c5c4720-472f-4130-9f0a-c2452b6d8836",
"code": "m032_23082024_111136",
"name": "20240823",
"status": "tao_moi",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"zone": null,
"total_quantity": 367,
"total_scan_quantity": 0,
"note": null,
"merchant_id": "00000000-0000-0000-0000-000000000004",
"deleted": 0,
"created_at": "2024-08-23T04:11:36.000Z",
"created_by": "admin",
"updated_at": null,
"updated_by": null
}
],
"page": 1,
"page_size": 10,
"total": 1
}

POST /api/inventoryTickets

Tạo mới phiếu kiểm kê.

Request Body

  • name: (string) Tên phiếu.

  • note: (string) Mô tả.

  • warehouse_id: (string) Mã kho.

  • zone_id: (string) Mã khu vực.

  • area_id: (string) Mã vị trí.

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"zone_id": "bb919080-7e41-45ae-9498-0a3ed701c9ef",
"area_id": "5f96aae5-09d3-45a9-a18a-7a9368924884"
}

POST /api/inventoryTickets


PUT /api/inventoryTickets/{id}

Cập nhật phiếu kiểm kê.

Request Body

  • name: (string) Tên phiếu.

  • note: (string) Mô tả.

  • warehouse_id: (string) Mã kho.

  • zone_id: (string) Mã khu vực.

  • area_id: (string) Mã vị trí.

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"zone_id": "bb919080-7e41-45ae-9498-0a3ed701c9ef",
"area_id": "5f96aae5-09d3-45a9-a18a-7a9368924884"
}

PUT /api/inventoryTickets/d529573a-f87c-4233-a917-13ad74349f35


DELETE /inventoryTickets/{id}

Xóa phiếu kiểm kê.

DELETE /api/inventoryTickets/d529573a-f87c-4233-a917-13ad74349f35