# Trang Product 3

# Lấy danh sách "Danh Mục Sản Phẩm" và " Công cụ gia công" - Done

Sử dụng API này để lấy tất cả sản phẩm thuộc category level 3

# Endpoint

# Parameters

Name Type Description Required
categoryId String ✔️
slug String ✔️
limit String default 500
offset String default 0

# Response

{
    "status": true,
    "messageCode": "success",
    "messageContent": "success",
    "data": {
        "categoryId": "31",
        "categoryName": "Bóng đèn LED BULB",
        "categorySlug": "bong-den-led-bulb",
        "categoryPath": [
            {
                "id": "30",
                "name": "ĐÈN LED  ",
                "slug": "den-led"
            },
            {
                "id": "31",
                "name": "Bóng đèn LED BULB",
                "slug": "bong-den-led-bulb"
            }
        ],
        "totalCnt": 231,
        "items": [
            {
                "id": 73775,
                "name": "PR test",
                "images": "https://ei-dev-store.s3.amazonaws.com/Product/1/31/caudaorodongc1.png#193#undefined",
                "price": 89000,
                "slug": "pr-test"
            },
          ...
        ]
    }
}
curl -X POST http://localhost:3000/product/ei/getListProductByCategoryId \
  -H 'Content-Type: application/json' \
  --data '{
      "categoryId": "31",
      "slug": ""bong-den-led-bulb",
      "limit": "500",
      "offset": "0"
  }'