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.1/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 |
API public luôn thêm valid = 1 nếu thiếu.
1.3. Search
search—slip_code.
1.4. Sorting
| Trường | Hướng |
|---|---|
id | asc, desc |
1.5. Fields
- Mặc định:
id. - Trường domain (ví dụ):
slip_code,slip_date,status,store_id,store_name,slip_details,slip_workflow_steps,attachments,note,created_at,updated_at, …
1.6. Pagination
limit, offset.
1.7. 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.8. Ví dụ curl
curl -g --location 'https://example.getflycrm.com/api/v6.1/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
2.1. Thông tin API
- Endpoint:
/api/v6.1/inventory_sheet_slip - Method:
GET
2.2. Định danh (chọn một)
| Tham số | Mô tả |
|---|---|
inventory_sheet_slip_id | ID phiếu |
inventory_sheet_slip_code | Mã phiếu (slip_code) |
2.3. 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
}
]
}
2.4. Ví dụ curl
curl --location 'https://example.getflycrm.com/api/v6.1/inventory_sheet_slip?inventory_sheet_slip_id=88&fields=id,slip_code,store_name,slip_details' \
--header 'X-API-KEY: <your_api_key>'
3. Ghi chú
- Chi tiết v6.0:
/api/v6/inventory_sheet_slips/{id}— Phiếu kiểm kho v6.0.