Kiểm kê — Chi tiết

Chi tiết một phiếu kiểm kê.

Xem Markdown

Trả về chi tiết phiếu kiểm kê theo ID, gồm chênh lệch tồn.

Endpoint

MethodEndpointMô tả
GET/api/v1/shops/{shop_id}/stocktakings/{stocktaking_id}Chi tiết kiểm kê

Tham số

Tham sốVị tríKiểuBắt buộcMô tả
shop_idđường dẫnstringCóID cửa hàng
stocktaking_idđường dẫnstringCóID phiếu kiểm kê

Kiểm thử tại chỗ

GEThttps://pos.hitechcloud.vn/api/v1/shops/{shop_id}/stocktakings/{stocktaking_id}

Nhập tham số và API Key rồi bấm Gửi thử. Key không được lưu lại.

Tham số đường dẫn
cURL mẫu
curl -X GET "https://pos.hitechcloud.vn/api/v1/shops/shop_0a1b2c3d/stocktakings/stk_4001" \
  -H "Authorization: Bearer YOUR_API_KEY"
Phản hồi mẫu
{
  "status": "success",
  "data": {
    "id": "stk_4001",
    "status": 1,
    "items": [
      {
        "variation_id": "var_1001",
        "system_quantity": 62,
        "actual_quantity": 60,
        "diff": -2
      }
    ]
  }
}