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

Kho

1. Tổng quan

API nhóm Kho chỉ đọc (GET): danh sách kho, chi tiết kho theo ID, báo cáo tồn, phiếu nhập/xuất/chuyển/kiểm, thẻ kho.

  • Xác thực: X-API-KEY
  • Prefix: /api/v6/
  • Tham số: fields, filtering, search, sort, direction, limit, offsetThông tin cần thiết.

2. Danh mục endpoint

Tài liệuEndpoint
Danh sách khoGET /api/v6/warehouses
Chi tiết khoGET /api/v6/warehouses/{id}
Báo cáo tồn khoGET /api/v6/inventory_reports, GET /api/v6/inventory_reports/by_warehouse
Thẻ khoGET /api/v6/inventory_cards
Phiếu nhậpGET /api/v6/inventory_sheet_ins, GET /api/v6/inventory_sheet_ins/{id}
Phiếu xuấtGET /api/v6/inventory_sheet_outs, GET /api/v6/inventory_sheet_outs/{id}
Phiếu chuyểnGET /api/v6/inventory_sheet_transfers, GET /api/v6/inventory_sheet_transfers/{id}
Phiếu kiểm khoGET /api/v6/inventory_sheet_slips, GET /api/v6/inventory_sheet_slips/{id}

3. Liên quan

  • Tồn kho sản phẩm: product/inventory (nếu triển khai trên môi trường của bạn).
  • Webhook kho: webhook/inventory.
  • v6.1 (chi tiết kho bằng warehouse_code, phiếu bằng query ..._code): Kho v6.1.

4. Mã HTTP & lỗi thường gặp

  • Bảng mã HTTP dùng chung toàn API: Errors.
  • 401 — thiếu hoặc sai X-API-KEY.
  • 400 — tham số không hợp lệ (ví dụ fields yêu cầu trường không được public API cho phép).
  • 404 — không tìm thấy kho theo {id} trên URL hoặc không tìm thấy phiếu theo {id}.