Chuyển tới nội dung chính

Phiếu kiểm kho (đầu kỳ / kiểm kho)

Domain InventorySheetSlipchỉ đọ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ườngHỗ trợKiểuMô tả
ideqintegerID phiếu
statuseqintegerTrạng thái

API public luôn thêm valid = 1 nếu thiếu.

  • searchslip_code.

1.4. Sorting

TrườngHướng
idasc, 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_idID phiếu
inventory_sheet_slip_codeMã 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ú