# Home

img

Sử dụng APi này để lấy danh sách Menu img

# Endpoint

# Parameters

Name Type Description Required

# Response

{
    "status": true,
    "messageCode": "success",
    "messageContent": "success",
    "data": {
        "items": [
            {
                "id": 30,
                "name": "ĐÈN LED  ",
                "slug": "den-led",
                "image": "https://d3p5dsvnajipiv.cloudfront.net/images/thumbnails/752.jpg",
                "icon": "https://d3p5dsvnajipiv.cloudfront.net/images/thumbnails/752.jpg",
                "subCategories": [
                    {
                        "id": 31,
                        "name": "Bóng đèn LED BULB",
                        "slug": "bong-den-led-bulb",
                        "subCategories": []
                    },
                    {
                        "id": 32,
                        "name": "Đèn LED âm trần Downlight",
                        "slug": "den-led-am-tran-downlight",
                        "subCategories": []
                    },
                  ......
                ]
            },
            .....

        ]
    }
}
curl -X POST http://localhost:3000/category/ei/getMenuList \
  -H 'Content-Type: application/json' \

# Tìm kiếm - Done

Sử dụng APi này để tìm kiếm sản phẩm theo tên

# Endpoint

# Parameters

Name Type Description Required
name String ✔️
page Number

# Response

{
    "status": true,
    "message": "success",
    "totalRows": 865,
    "rows": [
        {
            "id": 1,
            "name": "Đèn LED Exit Chỉ dẫn 2 mặt 2W",
            "slug": "den-led-exit-chi-dan-2-mat-2w",
            "eic": "RAD-LED-817155",
            "mpn": null,
            "uom": null,
            "companyId": 1,
            "supplierId": 1,
            "description": "<div role=\"tabpanel\" class=\"tab-pane active\" id=\"ud\"> <h1 style=\"text-align: center;\"><a href=\"#\">&nbsp;</div> <!-- Kết thúc 1 thuộc tính -->                 </div>\r\n\r\n<a href=\"#\" >http://example.com</a>",
            "content": null,
            "specification": null,
            "categoryId": 48,
            "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_241/D_CD01 40x20_2,2W_1.jpg",
            "thumbnail": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_241/D_CD01 40x20_2,2W_1.jpg",
            "tags": "1|2|3",
            "price": 2520000,
            "supplierPrice": 2520000,
            "promotionCode": null,
            "warrantyZone": null,
            "shipMethodId": 0,
            "specialRequest": null,
            "rate": 0,
            "brandId": 0,
            "deleted": 0,
            "createdBy": 1,
            "updatedBy": 1,
            "startDate": "2021-07-20T16:22:42.662Z",
            "endDate": null,
            "upSellId": null,
            "groupingId": null,
            "crossSellIds": null,
            "productCustomIds": null,
            "variantTemplateTypeId": 1,
            "stock": -1,
            "soldQuantity": 1,
            "moq": 1,
            "discountRate": "0",
            "categoryPath": "[{\"id\":\"30\",\"name\":\"ĐÈN LED  \",\"slug\":\"den-led\"},{\"id\":\"48\",\"name\":\"Đèn Exit, khẩn cấp, thoát hiểm LED\",\"slug\":\"den-exit-khan-cap-thoat-hiem-led\"}]",
            "supplierName": "Rạng đông",
            "companyName": null,
            "brandName": null,
            "createdAt": "2021-07-20T16:22:41.000Z",
            "updatedAt": "2021-07-27T08:58:33.861Z",
            "productsOptions": [],
            "productsVariants": [
                {
                    "id": 25,
                    "variantValueId": 148,
                    "price": 99000,
                    "stock": 10,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "8|6"
                    }
                },
                {
                    "id": 26,
                    "variantValueId": 146,
                    "price": 199000,
                    "stock": 11,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "8|3"
                    }
                },
                {
                    "id": 27,
                    "variantValueId": 149,
                    "price": 299000,
                    "stock": 12,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "9|3"
                    }
                },
                {
                    "id": 28,
                    "variantValueId": 147,
                    "price": 399000,
                    "stock": 13,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "8|4"
                    }
                },
                {
                    "id": 29,
                    "variantValueId": 150,
                    "price": 499000,
                    "stock": 14,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "8|7"
                    }
                },
                {
                    "id": 30,
                    "variantValueId": 152,
                    "price": 599000,
                    "stock": 15,
                    "sku": "zxczx",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "9|4"
                    }
                },
                {
                    "id": 31,
                    "variantValueId": 151,
                    "price": 699000,
                    "stock": 16,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "10|3"
                    }
                },
                {
                    "id": 32,
                    "variantValueId": 154,
                    "price": 799000,
                    "stock": 17,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "9|7"
                    }
                },
                {
                    "id": 33,
                    "variantValueId": 153,
                    "price": 899000,
                    "stock": 18,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "9|6"
                    }
                },
                {
                    "id": 34,
                    "variantValueId": 155,
                    "price": 999000,
                    "stock": 19,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "10|4"
                    }
                },
                {
                    "id": 35,
                    "variantValueId": 156,
                    "price": 1099000,
                    "stock": 20,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "10|6"
                    }
                },
                {
                    "id": 36,
                    "variantValueId": 157,
                    "price": 1199000,
                    "stock": 21,
                    "sku": "zxc",
                    "isEnabled": 1,
                    "variantValues": {
                        "variantTemplateTypeId": 1,
                        "variantsId": "10|7"
                    }
                }
            ]
        },
        {
            "id": 256,
            "name": "Bộ đèn LED Âm trần 600x600 M22L 36W",
            "slug": "bo-den-led-am-tran-600x600-m22l-36w",
            "eic": "RAD-LED-869277",
            "mpn": null,
            "uom": null,
            "companyId": 1,
            "supplierId": 1,
            "description": "description",
            "content": null,
            "specification": null,
            "categoryId": 52,
            "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_608/BD M22L AT01 60x60-36W.jpg",
            "thumbnail": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_608/BD M22L AT01 60x60-36W.jpg",
            "tags": null,
            "price": 611600,
            "supplierPrice": 611600,
            "promotionCode": null,
            "warrantyZone": null,
            "shipMethodId": 0,
            "specialRequest": null,
            "rate": 0,
            "brandId": 0,
            "deleted": 0,
            "createdBy": 1,
            "updatedBy": 1,
            "startDate": "2021-07-20T16:22:42.662Z",
            "endDate": null,
            "upSellId": null,
            "groupingId": null,
            "crossSellIds": null,
            "productCustomIds": null,
            "variantTemplateTypeId": null,
            "stock": -1,
            "soldQuantity": 0,
            "moq": 1,
            "discountRate": "0",
            "categoryPath": "[{\"id\":\"30\",\"name\":\"ĐÈN LED  \",\"slug\":\"den-led\"},{\"id\":\"52\",\"name\":\"Thiết bị chiếu sáng LED\",\"slug\":\"thiet-bi-chieu-sang-led\"}]",
            "supplierName": "Rạng đông",
            "companyName": null,
            "brandName": null,
            "createdAt": "2021-07-20T16:22:41.000Z",
            "updatedAt": "2021-07-27T08:58:33.861Z",
            "productsOptions": [],
            "productsVariants": []
        },
        ......
    ]
}
curl -X POST http://localhost:3000/category/ei/getMenuList \
  -H 'Content-Type: application/json' \
  --data '{
    "name": "đèn led",
    "page":"1,
  }'

# Siêu ưu đãi

Sử dụng APi này để lấy danh sách Menu

# Endpoint

# Parameters

Name Type Description Required

# Response


curl -X POST http://localhost:3000/category/ei/getMenuList \
  -H 'Content-Type: application/json' \

# Top Thương Hiệu

Sử dụng APi này để lấy danh sách Menu

# Endpoint

# Parameters

Name Type Description Required

# Response


curl -X POST http://localhost:3000/category/ei/getMenuList \
  -H 'Content-Type: application/json' \

# Sản phẩm bán chạy

Sử dụng APi này để lấy danh sách Menu

# Endpoint

# Parameters

Name Type Description Required

# Response


curl -X POST http://localhost:3000/category/ei/getMenuList \
  -H 'Content-Type: application/json' \