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/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ôngYYYY-MM-DD hoặc YYYY-MM-DD HH:MM:SS.
Query có dấu []

Trên shell, bọc URL trong nháy hoặc dùng curl -g.

Ví dụ Request

GET /api/v6/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/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.
filtering[date]KhôngGiống trên.

Ví dụ Request

GET /api/v6/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