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.1/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 (nếu có)
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 (khách hàng).

  • searchsheet_code.

1.4. Sorting

TrườngHướng
idasc, desc

1.5. Fields

  • Mặc định: id.
  • Các trường chính (domain defineRetrievableFields): tương tự phiếu nhập — sheet_code, sheet_date, store_id, store_name, account_*, sheet_details, sheet_workflow_steps, sale_order, purchase_order, attachments, …

1.6. Pagination

limit, offsetneeded_info.

1.7. Response mẫu

{
"data": [
{
"id": 2100,
"sheet_code": "PXK/2026/0002",
"sheet_date": "2026-03-16",
"store_id": 1,
"store_name": "Kho chính",
"sheet_status": 2
}
],
"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_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

2.1. Thông tin API

  • Endpoint: /api/v6.1/inventory_sheet_out
  • Method: GET

2.2. Định danh (chọn một)

Tham sốMô tả
inventory_sheet_out_idID phiếu
inventory_sheet_out_codeMã chứng từ

2.3. 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
}
]
}

2.4. Ví dụ curl

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

3. Ghi chú