Skip to main content

Nhập kho

Mô tả

Các API hỗ trợ:

API


GET /api/inventoryInTickets

Lấy danh sách các phiếu nhập kho, 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_nhap_kho | da_nhap_kho

GET /api/inventoryInTickets?page=1&size=10&order=asc&sort=name&name=ticket&status=&created_from=2024-01-01T10%3A00%3A00Z&created_to=2024-01-01T10%3A00%3A00Z&warehouse_id=25b1dcb8-d841-405e-8eff-28c2c93cafca

Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"id": "57e53c87-69d3-4eb2-baa1-3136fbb58868",
"code": "M032_30112023_111434",
"name": "Tên phiếu",
"source": "po_ticket",
"source_id": "c49f48e5-f387-4bff-9652-c4bcfbf6e873",
"status": "da_nhap_kho",
"note": "Ghi chú",
"total_quantity": 22,
"total_scan_quantity": 10,
"warehouse_id": null,
"zone_id": null,
"area_id": null,
"merchant_id": "00000000-0000-0000-0000-000000000004",
"deleted": 0,
"created_at": "2023-11-30T04:14:34.000Z",
"created_by": "admin",
"updated_at": "2023-12-02T10:31:37.000Z",
"updated_by": "admin"
}
],
"page": 1,
"page_size": 10,
"total": 1
}

POST /api/inventoryInTickets

Tạo mới phiếu nhập kho.

Request Body

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

  • note: (string) Mô tả.

  • product_ids: (string[]) Mã sản phẩm.

  • warehouse_id: (string) Mã kho.

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

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

  • source: (string) Nguồn dữ liệu từ phiếu kiểm kê | kiểm đếm, gồm po_ticket | counting_ticket

  • source_id: (string) Mã phiếu.

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"product_ids": ["05de255d-389a-4a65-8449-63e7108eb933"],
"warehouse_id": "1",
"zone_id": "1",
"area_id": "1",
"source": "po_ticket",
"source_id": "a"
}

POST /api/inventoryInTickets


PUT /api/inventoryInTickets/{id}

Cập nhật phiếu nhập kho.

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

  • note: (string) Mô tả.

  • product_ids: (string[]) Mã sản phẩm.

  • warehouse_id: (string) Mã kho.

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

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

  • source: (string) Nguồn dữ liệu từ phiếu kiểm kê | kiểm đếm, gồm po_ticket | counting_ticket

  • source_id: (string) Mã nguồn dữ liệu.

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"product_ids": ["05de255d-389a-4a65-8449-63e7108eb933"],
"warehouse_id": "1",
"zone_id": "1",
"area_id": "1",
"source": "po_ticket",
"source_id": "a"
}

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


DELETE /api/inventoryInTickets/{id}

Xóa phiếu nhập kho.

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