Skip to main content

Xuất kho

Mô tả

Các API hỗ trợ:

API


GET /api/inventoryOutTickets

Lấy danh sách các phiếu xuất 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_xuat | da_xuat

GET /api/inventoryOutTickets?page=1&size=10&order=asc&sort=name&name=ticket&status=da_xuat&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": "07a3da28-07bf-40ad-baa1-73cb27ad456d",
"code": "m032_25122023_122948",
"name": "Phiếu 25.12.2023",
"source": "import_excel_without_serial",
"source_id": null,
"status": "da_xuat",
"note": "string",
"merchant_id": "00000000-0000-0000-0000-000000000004",
"total_quantity": 16,
"total_scan_quantity": 16,
"warehouse_id": null,
"warehouse_id_to": null,
"zone_id_to": null,
"area_id_to": null,
"deleted": 0,
"created_at": "2023-12-25T05:29:49.000Z",
"created_by": "admin",
"updated_at": "2023-12-25T08:29:11.000Z",
"updated_by": "admin"
}
],
"page": 1,
"page_size": 10,
"total": 1
}

GET /api/inventoryOutTickets/{id}

Lấy chi tiết 1 phiếu xuất kho.

GET /api/inventoryOutTickets/1111

Response Body
{
"code": 200,
"message": "Thành công",
"result": [
{
"id": "2e1efe92-d468-4eef-84fe-01ae7a40a02b",
"product_id": "06754cf0-8e7f-4f33-b476-3499999a96df",
"merchant_product_id": "407956",
"product_name": "Andie Relaxed Shirt_2775TAND-ALFL",
"price": 5000156.0,
"quantity": 1,
"scan_quantity": 1,
"col_1": "",
"col_2": "",
"col_3": "",
"col_4": "",
"col_5": null,
"col_6": null,
"col_7": null,
"col_8": null,
"col_9": null,
"col_10": null
}
]
}

POST /api/inventoryOutTickets

Tạo mới phiếu xuất kho.

Request Body

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

  • note: (string) Mô tả.

  • products: (array) Danh sách sản phẩm.

  • product_id: (string) Mã sản phẩm.

  • serials: (string[]) Danh sách serial.

  • warehouse_id: (string) Mã kho xuất.

  • warehouse_id_to: (string) Mã kho nhập.

  • zone_id_to: (string) Mã khu vực nhập.

  • area_id_to: (string) Mã vị trí nhập.

  • source: (string) Nguồn dữ liệu từ phiếu kiểm đếm - counting_ticket

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

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"warehouse_id": "1",
"warehouse_id_to": "2",
"zone_id_to": "1",
"area_id_to": "1",
"source": "counting_ticket",
"source_id": "a"
}

POST /api/inventoryOutTickets


PUT /api/inventoryOutTickets/{id}

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

Request Body

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

  • note: (string) Mô tả.

  • products: (array) Danh sách sản phẩm.

  • product_id: (string) Mã sản phẩm.

  • serials: (string[]) Danh sách serial.

  • warehouse_id: (string) Mã kho xuất.

  • warehouse_id_to: (string) Mã kho nhập.

  • zone_id_to: (string) Mã khu vực nhập.

  • area_id_to: (string) Mã vị trí nhập.

  • source: (string) Nguồn dữ liệu từ phiếu kiểm đếm - counting_ticket

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

Request Body
{
"name": "Andie Relaxed Shirt_2775TAND-ALFL",
"note": "Mô tả",
"warehouse_id": "1",
"warehouse_id_to": "2",
"zone_id_to": "1",
"area_id_to": "1",
"source": "counting_ticket",
"source_id": "a"
}

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


DELETE /inventoryOutTickets/{id}

Xóa phiếu xuất kho.

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