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

Phiếu xuất kho

Domain InventorySheetOutchỉ đọc (GET).


1. Danh sách phiếu xuất

1.1. Thông tin API

  • Endpoint: /api/v6/inventory_sheet_outs
  • Method: GET
  • Authentication: X-API-KEY

1.2. Filtering

TrườngHỗ trợKiểuMô tả
ideqintegerID phiếu
sheet_codeeqstringMã chứng từ
account_ideq, emptyintegerKhách hàng
account_nameeq, containsstringTên KH
store_ideqintegerKho xuất
user_ideqintegerUser
sheet_statuseq, inintegerTrạng thái
order_ideq, emptyintegerLiên kết đơn
sale_order_codeeq, containsstringMã đơn bán
sheet_dateeq, gte, lte, betweendate / datetimeNgày phiếu
has_accountingeqintegerHạch toán
current_and_under_user_departmenteqintegerPhòng ban
valid_user_departmentismixedPhòng ban hợp lệ
inventory_product_ideqintegerSP trên dòng
inventory_product_nameeq, containsstringTên SP
inventory_product_codeeq, containsstringMã SP
(các inventory_product_* + custom field SP)Theo domain

Lọc lồng: sub_account.

1.3. Search / Sorting / Fields / Pagination

1.4. Response mẫu

{
"data": [
{
"id": 2100,
"sheet_code": "PXK/2026/0002",
"sheet_date": "2026-03-16",
"store_id": 1,
"sheet_status": 2
}
],
"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_outs?fields=id,sheet_code,sheet_date,store_id,sheet_status&limit=50' \
--header 'X-API-KEY: <your_api_key>'

2. Chi tiết phiếu xuất

  • Endpoint: GET /api/v6/inventory_sheet_outs/{id}
  • Path: {id} — ID phiếu.
  • Query: fields (CSV).

Response mẫu (rút gọn)

{
"id": 2100,
"sheet_code": "PXK/2026/0002",
"store_name": "Kho chính",
"sheet_details": [
{ "product_id": 101, "product_code": "SP001", "quantity": 4 }
]
}

Ví dụ curl

curl --location 'https://example.getflycrm.com/api/v6/inventory_sheet_outs/2100?fields=id,sheet_code,sheet_details' \
--header 'X-API-KEY: <your_api_key>'

3. Ghi chú