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.1/inventory_sheet_transfers - Method:
GET - Authentication:
X-API-KEY
1.2. Filtering
(Public service dùng InventorySheetTransfer::handleInventorySheetTransferConditions.)
| Trường | Hỗ trợ | Kiểu | Mô tả |
|---|---|---|---|
id | eq | integer | ID phiếu |
sheet_code | eq | string | Mã phiếu chuyển |
sheet_status | eq | integer | Tr ạng thái |
sheet_date | gte, lte | date / datetime | Khoảng ngày phiếu |
has_accounting | is | mixed | Điều kiện hạch toán (domain) |
1.3. Search
search—sheet_code.
1.4. Sorting
| Trường | Hướng |
|---|---|
id | asc, desc |
1.5. Fields
- Mặc định:
id. - Ví dụ trường domain:
sheet_code,sheet_date,sheet_status,sheet_status_title,store_from,store_from_name,store_to,store_to_name,sheet_details,sheet_workflow_steps,description,created_at,updated_at, …
1.6. Pagination
limit, offset.
1.7. 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.8. Ví dụ curl
curl -g --location 'https://example.getflycrm.com/api/v6.1/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
2.1. Thông tin API
- Endpoint:
/api/v6.1/inventory_sheet_transfer - Method:
GET
2.2. Định danh (chọn một)
| Tham số | Mô tả |
|---|---|
inventory_sheet_transfer_id | ID phiếu |
inventory_sheet_transfer_code | Mã phiếu |
2.3. 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
}
]
}
2.4. Ví dụ curl
curl --location 'https://example.getflycrm.com/api/v6.1/inventory_sheet_transfer?inventory_sheet_transfer_code=PCK/2026/0003&fields=id,sheet_code,store_from_name,store_to_name,sheet_details' \
--header 'X-API-KEY: <your_api_key>'
3. Ghi chú
- Chi tiết v6.0:
/api/v6/inventory_sheet_transfers/{id}— Phiếu chuyển kho v6.0.