Phiếu chuyển kho
Domain InventorySheetTransfer — chỉ đọc (GET).
1. Danh sách phiếu chuyển
1.1. Thông tin API
- Endpoint:
/api/v6/inventory_sheet_transfers - Method:
GET - Authentication:
X-API-KEY
1.2. Filtering
(Public service: handleInventorySheetTransferConditions.)
| Trường | Hỗ trợ | Kiểu | Mô tả |
|---|---|---|---|
id | eq | integer | ID phiếu |
sheet_code | eq | string | Mã phiếu |
sheet_status | eq | integer | Trạng thái |
sheet_date | gte, lte | date / datetime | Khoảng ngày |
has_accounting | is | mixed | Hạch toán |
1.3. Search / Sort / Fields / Pagination
- Search:
sheet_code. - Sort:
id. - Fields: CSV (needed_info); mặc định
id. Bảng trường: Phiếu chuyển kho v6.1. - Pagination:
limit,offset.
1.4. Response mẫu
{
"data": [
{
"id": 3001,
"sheet_code": "PCK/2026/0003",
"sheet_date": "2026-03-10",
"store_from_name": "Kho A",
"store_to_name": "Kho B",
"sheet_status": 4
}
],
"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_transfers?fields=id,sheet_code,sheet_date,store_from_name,store_to_name,sheet_status&limit=50' \
--header 'X-API-KEY: <your_api_key>'
2. Chi tiết phiếu chuyển
- Endpoint:
GET /api/v6/inventory_sheet_transfers/{id}
Response mẫu (rút gọn)
{
"id": 3001,
"sheet_code": "PCK/2026/0003",
"store_from_name": "Kho A",
"store_to_name": "Kho B",
"sheet_details": [{ "product_id": 55, "quantity": 20 }]
}
Ví dụ curl
curl --location 'https://example.getflycrm.com/api/v6/inventory_sheet_transfers/3001?fields=id,sheet_code,sheet_details' \
--header 'X-API-KEY: <your_api_key>'
3. Ghi chú
- v6.1: Phiếu chuyển kho v6.1.