Chuyển tới nội dung chính

Báo cáo tồn kho

Báo cáo tồn tổng hợp (theo thời điểm)

Endpoint

URL: /api/v6.1/inventory_reports
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)

Tham sốBắt buộcMô tả
filtering[store_id]ID kho.
filtering[date]KhôngThời điểm tồn: YYYY-MM-DD hoặc YYYY-MM-DD HH:MM:SS.
fields, limit, offset, …KhôngTheo domain public API InventoryReportThông tin cần thiết.
Query có dấu []

Trên shell, bọc URL trong nháy đơn hoặc dùng curl -g để [ ] không bị hiểu nhầm là glob.

Ví dụ Request

GET /api/v6.1/inventory_reports?filtering[store_id]=1&filtering[date]=2025-03-31&limit=100 HTTP/1.1
Host: example.getflycrm.com
X-API-KEY: your-api-key

Tồn kho chi tiết theo một kho

Endpoint

URL: /api/v6.1/inventory_reports/by_warehouse
Phương thức: GET

Tham số yêu cầu (Query Parameters)

Tham sốBắt buộcMô tả
filtering[warehouse_id]ID kho (số nguyên dương).
filtering[date]KhôngGiống mục báo cáo tổng hợp.

Ví dụ Request

GET /api/v6.1/inventory_reports/by_warehouse?filtering[warehouse_id]=2&filtering[date]=2025-03-31 HTTP/1.1
Host: example.getflycrm.com
X-API-KEY: your-api-key