Phiếu kiểm kho (đầu kỳ / kiểm kho)
Domain InventorySheetSlip — chỉ đọc (GET).
1. Danh sách phiếu kiểm kho
1.1. Thông tin API
- Endpoint:
/api/v6/inventory_sheet_slips - Method:
GET - Authentication:
X-API-KEY
1.2. Filtering
| Trường | Hỗ trợ | Kiểu | Mô tả |
|---|---|---|---|
id | eq | integer | ID phiếu |
status | eq | integer | Trạng thái |
1.3. Search / Sort / Fields / Pagination
- Search:
slip_code. - Sort:
id. - Fields: CSV (needed_info); mặc định
id. Trường domain: Phiếu kiểm kho v6.1. - Pagination:
limit,offset.
1.4. Response mẫu
{
"data": [
{
"id": 88,
"slip_code": "PKK/2026/001",
"status": 1,
"store_id": 1,
"store_name": "Kho chính"
}
],
"has_more": false,
"offset": 0,
"limited": 50,
"sorted": { "id": "DESC" }
}
1.5. Ví dụ curl
curl -g --location 'https://example.getflycrm.com/api/v6/inventory_sheet_slips?fields=id,slip_code,status,store_id,store_name&limit=50' \
--header 'X-API-KEY: <your_api_key>'
2. Chi tiết phiếu kiểm kho
- Endpoint:
GET /api/v6/inventory_sheet_slips/{id}
Response mẫu (rút gọn)
{
"id": 88,
"slip_code": "PKK/2026/001",
"store_name": "Kho chính",
"slip_details": [
{
"product_id": 101,
"quantity_good": 100,
"quantity_sample": 0,
"quantity_failing": 0
}
]
}
Ví dụ curl
curl --location 'https://example.getflycrm.com/api/v6/inventory_sheet_slips/88?fields=id,slip_code,store_name,slip_details' \
--header 'X-API-KEY: <your_api_key>'
3. Ghi chú
- v6.1: Phi ếu kiểm kho v6.1.