WMS - InventoryPhiếu nhập/xuất kho

Thống kê phiếu theo trạng thái

Đếm số phiếu nhập/xuất kho theo từng trạng thái

Endpoint

GET /v1/productreceipts/summarybystatus

Quyền: inventory.view (scoped theo warehouse)

Lưu ý: Chỉ đếm các phiếu thuộc kho mà người dùng có quyền xem.

Query Parameters

TênKiểuBắt buộcMô tả
directionintLọc theo hướng (1: Xuất, 3: Nhập)
warehouse_idintLọc theo ID kho
date_startedintLọc từ ngày tạo (Unix timestamp)
date_endedintLọc đến ngày tạo (Unix timestamp)

Response Schema

HTTP 200 - JSON Object

TrườngKiểuMô tả
totalintSố nhóm trạng thái trả về
currentpageintLuôn là 1
limitintLuôn là 100
itemsarrayDanh sách nhóm
items[].group_idintTrạng thái phiếu (xem Trạng thái phiếu)
items[].group_dataintSố phiếu ở trạng thái đó

Trạng thái không có phiếu nào sẽ không xuất hiện trong items.

Error Codes

HTTPCodeMô tả
403error_role_not_availableNgười dùng không có quyền inventory.view

Ví dụ Response

{
  "total": 2,
  "currentpage": 1,
  "limit": 100,
  "items": [
    { "group_id": 1, "group_data": 4 },
    { "group_id": 9, "group_data": 120 }
  ]
}

On this page