Chi tiết kho
Lấy một kho theo id hoặc mã kho.
Endpoint
URL: /api/v6.1/warehouse
Phương thức: GET
Tiêu đề yêu cầu (Request Headers)
X-API-KEY: <your_api_key>
Tham số yêu cầu (Query Parameters)
Bắt buộc đúng một trong hai (query hoặc body JSON tùy client):
| Tham số | Kiểu dữ liệu | Mô tả |
|---|---|---|
warehouse_id | integer | ID kho (≥ 1). |
warehouse_code | string | Mã kho (tương ứng store_code trong CRM). |
fields | string | Danh sách trường cần lấy (theo cấu hình public API domain Warehouse; ví dụ có thể gồm id, store_name, total_quantity — không phải mọi trường CRM đều mở). |
Ví dụ Request
curl --location 'https://example.getflycrm.com/api/v6.1/warehouse?warehouse_id=1&fields=id,store_name,total_quantity' \
--header 'X-API-KEY: <your_api_key>'
GET /api/v6.1/warehouse?warehouse_code=KHO-A HTTP/1.1
Host: example.getflycrm.com
X-API-KEY: your-api-key
Phản hồi (Response)
Đối tượng một kho; các trường trả về phụ thuộc fields và cấu hình public API.