Phiếu xuất kho
Domain InventorySheetOut — chỉ đọ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ường | Hỗ trợ | Kiểu | Mô tả |
|---|---|---|---|
id | eq | integer | ID phiếu |
sheet_code | eq | string | Mã chứng từ |
account_id | eq, empty | integer | Khách hàng |
account_name | eq, contains | string | Tên KH |
store_id | eq | integer | Kho xuất |
user_id | eq | integer | User |
sheet_status | eq, in | integer | Trạng thái |
order_id | eq, empty | integer | Liên kết đơn |
sale_order_code | eq, contains | string | Mã đơn bán |
sheet_date | eq, gte, lte, between | date / datetime | Ngày phiếu |
has_accounting | eq | integer | Hạch toán |
current_and_under_user_department | eq | integer | Phòng ban |
valid_user_department | is | mixed | Phòng ban hợp lệ |
inventory_product_id | eq | integer | SP trên dòng |
inventory_product_name | eq, contains | string | Tên SP |
inventory_product_code | eq, contains | string | Mã SP |
(các inventory_product_* + custom field SP) | Theo domain | — |
Lọc lồng: sub_account.
1.3. Search / Sorting / Fields / Pagination
- Search:
sheet_code. - Sort:
id(asc/desc). - Fields: CSV (needed_info); mặc định
id. Chi tiết trường: Phiếu xuất kho v6.1. - Pagination:
limit,offset.
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ú
- v6.1: query
inventory_sheet_out_id/inventory_sheet_out_code— Phiếu xuất kho v6.1.