Skip to main content

Điều chuyển

Mô tả

Các API hỗ trợ:

API


GET /api/inventoryPositionChangeTickets

Lấy danh sách các phiếu điều chuyển, 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
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 | da_chuyen

GET /api/inventoryPositionChangeTickets?page=1&size=10&order=asc&sort=name&created_to=2024-08-023T10%3A00%3A00Z&name=tao_moi&status=&created_from=2023-08-22T07:59:59.000Z

Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"id": "e5a810ff-145a-486b-835e-2fdc35bf100f",
"code": "m032_22082024_150746",
"name": "20240801",
"status": "tao_moi",
"note": null,
"total_quantity": 1,
"total_scan_quantity": 1,
"merchant_id": "00000000-0000-0000-0000-000000000004",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"deleted": 0,
"created_at": "2024-08-22T08:07:46.000Z",
"created_by": "admin",
"updated_at": null,
"updated_by": null
}
],
"page": 1,
"page_size": 10,
"total": 1
}

GET /api/inventoryPositionChangeTickets/{id}

Lấy chi tiết 1 phiếu điều chuyển.

GET /api/inventoryPositionChangeTickets/1111

Response Body
{
"code": 200,
"message": "Thành công",
"result": [
{
"id": "d27d97b0-3632-4d0b-9769-f96810f7271b",
"product_id": "00012b4e-0701-4d88-913f-4b56db5a1676",
"merchant_product_id": "405746",
"serial": 9,
"zone_id": "5ee7c007-2ec6-4675-abc4-7e3ee756e0d9",
"area_id": null,
"zone_id_to": "bb919080-7e41-45ae-9498-0a3ed701c9ef",
"area_id_to": "5f96aae5-09d3-45a9-a18a-7a9368924884"
}
]
}

POST /api/inventoryPositionChangeTickets

Tạo mới phiếu điều chuyển.

Request Body

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

  • note: (string) Mô tả.

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

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

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

  • serial: (string) Serial.

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

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

Request Body
{
"name": "20240801",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"products": [
{
"product_id": "00012b4e-0701-4d88-913f-4b56db5a1676",
"serial": "9",
"zone_id_to": "bb919080-7e41-45ae-9498-0a3ed701c9ef",
"area_id_to": "5f96aae5-09d3-45a9-a18a-7a9368924884"
}
]
}

POST /api/inventoryPositionChangeTickets


PUT /api/inventoryPositionChangeTickets/{id}

Cập nhật phiếu điều chuyển.

Request Body

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

  • note: (string) Mô tả.

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

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

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

  • serial: (string) Serial.

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

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

Request Body
{
"name": "20240801",
"warehouse_id": "25b1dcb8-d841-405e-8eff-28c2c93cafca",
"products": [
{
"product_id": "00012b4e-0701-4d88-913f-4b56db5a1676",
"serial": "9",
"zone_id_to": "bb919080-7e41-45ae-9498-0a3ed701c9ef",
"area_id_to": "5f96aae5-09d3-45a9-a18a-7a9368924884"
}
]
}

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


DELETE /inventoryPositionChangeTickets/{id}

Xóa phiếu điều chuyển.

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