# Products

# Get Products by category level 2

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

# Endpoint

# Parameters

Name Type Description Required
categoryId Number ✔️
slug String ✔️

# Response

{
    "status": true,
    "messageCode": "success",
    "messageContent": "success",
    "data": {
        "categoryId": 800,
        "categoryName": "ẮC QUY & PIN",
        "categorySlug": "ac_quy_and_pin",
        "totalCnt": 14,
        "items": [
            {
                "id": 73738,
                "name": "NF32-SV 3P 5kA 10A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84558/nf32-sv-3p-5ka-10a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-10a"
            },
            {
                "id": 73739,
                "name": "NF32-SV 3P 5kA 6A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84559/nf32-sv-3p-5ka-6a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-6a"
            },
            {
                "id": 73740,
                "name": "NF32-SV 3P 5kA 16A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84560/nf32-sv-3p-5ka-16a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-16a"
            },
            {
                "id": 73741,
                "name": "NF32-SV 3P 5kA 30A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84561/nf32-sv-3p-5ka-30a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-30a"
            },
            {
                "id": 73742,
                "name": "NF32-SV 3P 5kA 15A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84562/nf32-sv-3p-5ka-15a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-15a"
            },
            {
                "id": 73743,
                "name": "NF32-SV 3P 5kA 25A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84563/nf32-sv-3p-5ka-25a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-25a"
            },
            {
                "id": 73744,
                "name": "NF32-SV 3P 5kA 20A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84564/nf32-sv-3p-5ka-20a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-20a"
            },
            {
                "id": 73745,
                "name": "NF32-SV 3P 5kA 32A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84565/nf32-sv-3p-5ka-32a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-32a"
            },
            {
                "id": 73746,
                "name": "NF63-SV 3P 7.5kA 10A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84569/nf63-sv-3p-7-5ka-10a.jpg",
                "price": 1545000,
                "slug": "nf63-sv-3p-7-5ka-10a"
            },
            {
                "id": 73747,
                "name": "NF63-SV 3P 7.5kA 5A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84570/nf63-sv-3p-7-5ka-5a.jpg",
                "price": 1545000,
                "slug": "nf63-sv-3p-7-5ka-5a"
            },
            {
                "id": 73748,
                "name": "NF63-SV 3P 7.5kA 15A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84571/nf63-sv-3p-7-5ka-15a.jpg",
                "price": 1545000,
                "slug": "nf63-sv-3p-7-5ka-15a"
            },
            {
                "id": 73749,
                "name": "NF63-SV 3P 7.5kA 16A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84572/nf63-sv-3p-7-5ka-16a.jpg",
                "price": 1545000,
                "slug": "nf63-sv-3p-7-5ka-16a"
            },
            {
                "id": 73750,
                "name": "NF63-SV 3P 7.5kA 20A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84573/nf63-sv-3p-7-5ka-20a.jpg",
                "price": 1545000,
                "slug": "nf63-sv-3p-7-5ka-20a"
            },
            {
                "id": 73751,
                "name": "NF32-SV 3P 5kA 4A",
                "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84574/nf32-sv-3p-5ka-4a.jpg",
                "price": 1435000,
                "slug": "nf32-sv-3p-5ka-4a"
            },
        ]
    }
}
curl -X POST http://localhost:3000/product/ei/getListProductByCategoryId \
  -H 'Content-Type: application/json' \
  --data '{
      "categoryId": "800",
      "slug": "ac_quy_and_pin"
  }'

# Get Product Detail by Id

Sử dụng API này để lấy thông tin chi tiết của sản phẩm bằng id

# Endpoint

# Parameters

Name Type Description Required
id Number ✔️

# Response

{
    "status": true,
    "message": "success",
    "data": {
        "id": 71321,
        "name": "Yếm Chống Cắt Inox 304L Chống Cắt, Chống Vật Nhọn, Dao",
        "eic": "EII-HSE-909277",
        "mpn": null,
        "uom": null,
        "companyId": 1,
        "description": "description product",
        "content": "",
        "specification": "",
        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_82048/yem-chong-cat-inox-304l-chong-cat-chong-vat-nhon-dao.jpg#undefined",
        "tags": "",
        "price": 2970000,
        "promotionCode": null,
        "specialRequest": null,
        "rate": 0,
        "brand": null,
        "category": {
            "id": 243,
            "name": "Găng Tay Bảo Hộ",
            "parentId": 229,
            "slug": "gang-tay-bao-ho"
        },
        "grouping": {
            "id": 800,
            "name": "ẮC QUY & PIN",
            "parentId": 635,
            "slug": "ac_quy_and_pin",
            "items": [
                {
                    "id": 73738,
                    "name": "NF32-SV 3P 5kA 10A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84558/nf32-sv-3p-5ka-10a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-10a"
                },
                {
                    "id": 73739,
                    "name": "NF32-SV 3P 5kA 6A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84559/nf32-sv-3p-5ka-6a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-6a"
                },
                {
                    "id": 73740,
                    "name": "NF32-SV 3P 5kA 16A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84560/nf32-sv-3p-5ka-16a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-16a"
                },
                {
                    "id": 73741,
                    "name": "NF32-SV 3P 5kA 30A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84561/nf32-sv-3p-5ka-30a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-30a"
                }
            ]
        },
        "supplier": {
            "id": 4,
            "name": "EI Industrial"
        },
        "variantTemplateType": {
            "id": 1,
            "name": "Size-Color",
            "variantTemplates": [
                {
                    "id": 1,
                    "variantGroup": {
                        "id": 2,
                        "name": "Size",
                        "variants": [
                            {
                                "id": 8,
                                "name": "L"
                            },
                            {
                                "id": 9,
                                "name": "M"
                            },
                            {
                                "id": 10,
                                "name": "S"
                            }
                        ]
                    }
                },
                {
                    "id": 24,
                    "variantGroup": {
                        "id": 3,
                        "name": "Color",
                        "variants": [
                            {
                                "id": 3,
                                "name": "Red"
                            },
                            {
                                "id": 4,
                                "name": "Black"
                            },
                            {
                                "id": 6,
                                "name": "white"
                            },
                            {
                                "id": 7,
                                "name": "blue"
                            }
                        ]
                    }
                }
            ]
        },
        "UpSell": {
            "id": 3,
            "name": "Up-Sell 3123",
            "categoryId": 512,
            "productsUpSells": [
                {
                    "id": 1,
                    "dataProduct": {
                        "id": 73772,
                        "name": "Demo 1",
                        "eic": "FAC-HSE-389125",
                        "mpn": null,
                        "uom": null,
                        "companyId": 0,
                        "images": "https://ei-dev-store.s3.amazonaws.com/Product/1/256/dayhan.jpg#146#undefined#undefined#undefined",
                        "tags": "54|43",
                        "price": 99000,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": null
                    }
                },
                {
                    "id": 2,
                    "dataProduct": {
                        "id": 30576,
                        "name": "Cáp hàn Kiseong 16123",
                        "eic": "EII-RAW-396781",
                        "mpn": null,
                        "uom": null,
                        "companyId": 1,
                        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_39722/cap-han-kiseong-16.jpg#undefined#undefined",
                        "tags": "",
                        "price": 89000,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": "Kiseong"
                    }
                },
                {
                    "id": 3,
                    "dataProduct": {
                        "id": 73728,
                        "name": "Găng tay nilon dùng một lần",
                        "eic": "EII-HSE-724213",
                        "mpn": null,
                        "uom": null,
                        "companyId": 1,
                        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/thumbnails/gang-tay-nilong-dung-mot-lan-1.1.jpg",
                        "tags": null,
                        "price": 8500,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": null
                    }
                }
            ]
        },
        "productsVariants": [
            {
                "id": 37,
                "variantValueId": 159,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|4"
                }
            },
            {
                "id": 38,
                "variantValueId": 158,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|3"
                }
            },
            {
                "id": 39,
                "variantValueId": 163,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|3"
                }
            },
            {
                "id": 40,
                "variantValueId": 160,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|6"
                }
            },
            {
                "id": 41,
                "variantValueId": 161,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|4"
                }
            },
            {
                "id": 42,
                "variantValueId": 162,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|3"
                }
            },
            {
                "id": 43,
                "variantValueId": 165,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|6"
                }
            },
            {
                "id": 44,
                "variantValueId": 164,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|7"
                }
            },
            {
                "id": 45,
                "variantValueId": 166,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|4"
                }
            },
            {
                "id": 46,
                "variantValueId": 167,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|6"
                }
            },
            {
                "id": 47,
                "variantValueId": 169,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|7"
                }
            },
            {
                "id": 48,
                "variantValueId": 168,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|7"
                }
            }
        ],
        "breadcrumb": [
            {
                "id": 243,
                "name": "Găng Tay Bảo Hộ",
                "parentId": 229,
                "slug": "gang-tay-bao-ho"
            },
            {
                "id": 229,
                "name": "BẢO HỘ LAO ĐỘNG",
                "slug": "bao-ho-lao-dong",
                "parentId": 0
            }
        ]
    }
}
curl -X POST http://localhost:3000/product/ei/getProductDetailById \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <const name="MOCK_TOKEN" />' \
  --data '{
    "id":"71321"
  }'

# Get Product Detail by Slug

Sử dụng API này để lấy thông tin chi tiết của sản phẩm bằng slug

# Endpoint

# Parameters

Name Type Description Required
slug String ✔️

# Response

{
    "status": true,
    "message": "success",
    "data": {
        "id": 71321,
        "name": "Yếm Chống Cắt Inox 304L Chống Cắt, Chống Vật Nhọn, Dao",
        "eic": "EII-HSE-909277",
        "mpn": null,
        "uom": null,
        "companyId": 1,
        "description": "description product",
        "content": "",
        "specification": "",
        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_82048/yem-chong-cat-inox-304l-chong-cat-chong-vat-nhon-dao.jpg#undefined",
        "tags": "",
        "price": 2970000,
        "promotionCode": null,
        "specialRequest": null,
        "rate": 0,
        "brand": null,
        "category": {
            "id": 243,
            "name": "Găng Tay Bảo Hộ",
            "parentId": 229,
            "slug": "gang-tay-bao-ho"
        },
        "grouping": {
            "id": 800,
            "name": "ẮC QUY & PIN",
            "parentId": 635,
            "slug": "ac_quy_and_pin",
            "items": [
                {
                    "id": 73738,
                    "name": "NF32-SV 3P 5kA 10A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84558/nf32-sv-3p-5ka-10a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-10a"
                },
                {
                    "id": 73739,
                    "name": "NF32-SV 3P 5kA 6A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84559/nf32-sv-3p-5ka-6a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-6a"
                },
                {
                    "id": 73740,
                    "name": "NF32-SV 3P 5kA 16A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84560/nf32-sv-3p-5ka-16a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-16a"
                },
                {
                    "id": 73741,
                    "name": "NF32-SV 3P 5kA 30A",
                    "images": "https://d3k0afzw9h49li.cloudfront.net/images/products/product_84561/nf32-sv-3p-5ka-30a.jpg",
                    "price": 1435000,
                    "slug": "nf32-sv-3p-5ka-30a"
                }
            ]
        },
        "supplier": {
            "id": 4,
            "name": "EI Industrial"
        },
        "variantTemplateType": {
            "id": 1,
            "name": "Size-Color",
            "variantTemplates": [
                {
                    "id": 1,
                    "variantGroup": {
                        "id": 2,
                        "name": "Size",
                        "variants": [
                            {
                                "id": 8,
                                "name": "L"
                            },
                            {
                                "id": 9,
                                "name": "M"
                            },
                            {
                                "id": 10,
                                "name": "S"
                            }
                        ]
                    }
                },
                {
                    "id": 24,
                    "variantGroup": {
                        "id": 3,
                        "name": "Color",
                        "variants": [
                            {
                                "id": 3,
                                "name": "Red"
                            },
                            {
                                "id": 4,
                                "name": "Black"
                            },
                            {
                                "id": 6,
                                "name": "white"
                            },
                            {
                                "id": 7,
                                "name": "blue"
                            }
                        ]
                    }
                }
            ]
        },
        "UpSell": {
            "id": 3,
            "name": "Up-Sell 3123",
            "categoryId": 512,
            "productsUpSells": [
                {
                    "id": 1,
                    "dataProduct": {
                        "id": 73772,
                        "name": "Demo 1",
                        "eic": "FAC-HSE-389125",
                        "mpn": null,
                        "uom": null,
                        "companyId": 0,
                        "images": "https://ei-dev-store.s3.amazonaws.com/Product/1/256/dayhan.jpg#146#undefined#undefined#undefined",
                        "tags": "54|43",
                        "price": 99000,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": null
                    }
                },
                {
                    "id": 2,
                    "dataProduct": {
                        "id": 30576,
                        "name": "Cáp hàn Kiseong 16123",
                        "eic": "EII-RAW-396781",
                        "mpn": null,
                        "uom": null,
                        "companyId": 1,
                        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/products/product_39722/cap-han-kiseong-16.jpg#undefined#undefined",
                        "tags": "",
                        "price": 89000,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": "Kiseong"
                    }
                },
                {
                    "id": 3,
                    "dataProduct": {
                        "id": 73728,
                        "name": "Găng tay nilon dùng một lần",
                        "eic": "EII-HSE-724213",
                        "mpn": null,
                        "uom": null,
                        "companyId": 1,
                        "images": "https://d3p5dsvnajipiv.cloudfront.net/images/thumbnails/gang-tay-nilong-dung-mot-lan-1.1.jpg",
                        "tags": null,
                        "price": 8500,
                        "promotionCode": null,
                        "rate": 0,
                        "brand": null
                    }
                }
            ]
        },
        "productsVariants": [
            {
                "id": 37,
                "variantValueId": 159,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|4"
                }
            },
            {
                "id": 38,
                "variantValueId": 158,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|3"
                }
            },
            {
                "id": 39,
                "variantValueId": 163,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|3"
                }
            },
            {
                "id": 40,
                "variantValueId": 160,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|6"
                }
            },
            {
                "id": 41,
                "variantValueId": 161,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|4"
                }
            },
            {
                "id": 42,
                "variantValueId": 162,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|3"
                }
            },
            {
                "id": 43,
                "variantValueId": 165,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|6"
                }
            },
            {
                "id": 44,
                "variantValueId": 164,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "8|7"
                }
            },
            {
                "id": 45,
                "variantValueId": 166,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|4"
                }
            },
            {
                "id": 46,
                "variantValueId": 167,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|6"
                }
            },
            {
                "id": 47,
                "variantValueId": 169,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "9|7"
                }
            },
            {
                "id": 48,
                "variantValueId": 168,
                "price": 2970000,
                "stock": 123,
                "sku": "zxc",
                "isEnabled": 1,
                "variantValues": {
                    "variantTemplateTypeId": 1,
                    "variantsId": "10|7"
                }
            }
        ],
        "breadcrumb": [
            {
                "id": 243,
                "name": "Găng Tay Bảo Hộ",
                "parentId": 229,
                "slug": "gang-tay-bao-ho"
            },
            {
                "id": 229,
                "name": "BẢO HỘ LAO ĐỘNG",
                "slug": "bao-ho-lao-dong",
                "parentId": 0
            }
        ]
    }
}
curl -X POST http://localhost:3000/product/ei/getProductDetailBySlug \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <const name="MOCK_TOKEN" />' \
  --data '{
    "slug": "yem-chong-cat-inox-304l-chong-cat-chong-vat-nhon-dao"
  }'

# Get Supplier By ProductId

Sử dụng API này để lấy thông tin chi tiết nhà cung cấp của sản phẩm

# Endpoint

# Parameters

Name Type Description Required
productId Number ✔️

# Response

{
    "status": true,
    "message": "success",
    "totalRows": 1,
    "rows": {
        "id": 241,
        "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": "<html><head></head><body><div role=\"tabpanel\" class=\"tab-pane active\" id=\"ud\"> <h1 style=\"text-align: center;\"><a href=\"#\">&nbsp;</a></h1></div><a href=\"#\"> <!-- Kết thúc 1 thuộc tính -->                 \n\n</a><a href=\"#\">http://example.com</a></body></html>",
        "content": null,
        "specification": "<div role=\"tabpanel\" class=\"tab-pane table-responsive\" id=\"tskt\">                     <!-- Bắt đầu 1 thuộc tính--> <div class=\"col-sm-6\"> <div style=\"width:100%; height:auto\"> <p style=\"font-weight:bold; font-size:20px\">Đặc t&iacute;nh của đ&egrave;n</p>  <div style=\"width:100%; height:auto; border-color:#CCC; background-color:#D7FDE6; padding:10px; line-height:40px\"> <table border=\"0\" cellpadding=\"4\" cellspacing=\"4\" width=\"100%\"> \t<tbody> \t\t<tr> \t\t\t<td>C&ocirc;ng suất</td> \t\t\t<td>2,2W</td> \t\t</tr> \t\t<tr> \t\t\t<td>Nguồn điện danh định</td> \t\t\t<td>220V/50Hz</td> \t\t</tr> \t\t<tr> \t\t\t<td>Thời gian chiếu s&aacute;ng dự ph&ograve;ng</td> \t\t\t<td>3 giờ</td> \t\t</tr> \t</tbody> </table> </div> </div> </div> <!-- Kết thúc 1 thuộc tính --><!-- THÔNG SỐ ĐIỆN -->  <div class=\"col-sm-6\"> <div style=\"width:100%; height:auto\"> <p style=\"font-weight:bold; font-size:20px\">Th&ocirc;ng số điện</p>  <div style=\"width:100%; height:auto; border-color:#CCC; background-color:#D7FDE6; padding:10px; line-height:40px\"> <table border=\"0\" cellpadding=\"4\" cellspacing=\"4\" width=\"100%\"> \t<tbody> \t\t<tr> \t\t\t<td>Dung lượng pin</td> \t\t\t<td>400 mAh</td> \t\t</tr> \t\t<tr> \t\t\t<td>Thời gian nạp đầy</td> \t\t\t<td>20 giờ</td> \t\t</tr> \t</tbody> </table> </div> </div> </div>  <div class=\"divClear\">&nbsp;</div> <!-- Kết thúc 1 thuộc tính --><!-- TUỔI THỌ -->  <div class=\"col-sm-6\"> <div style=\"width:100%; height:auto\"> <p style=\"font-weight:bold; font-size:20px\">Tuổi thọ</p>  <div style=\"width:100%; height:auto; border-color:#CCC; background-color:#D7FDE6; padding:10px; line-height:40px\"> <table border=\"0\" cellpadding=\"4\" cellspacing=\"4\" width=\"100%\"> \t<tbody> \t\t<tr> \t\t\t<td>Tuổi thọ của đ&egrave;n</td> \t\t\t<td>15.000 giờ</td> \t\t</tr> \t\t<tr> \t\t\t<td>Số chu kỳ tắt/bật</td> \t\t\t<td>50.000 lần</td> \t\t</tr> \t</tbody> </table> </div> </div> </div>  <div class=\"divClear\">&nbsp;</div> <!-- Kết thúc 1 thuộc tính --><!-- KÍCH THƯỚC -->  <div class=\"col-sm-6\"> <div style=\"width:100%; height:auto\"> <p style=\"font-weight:bold; font-size:20px\">K&iacute;ch thước của đ&egrave;n</p>  <div style=\"width:100%; height:auto; border-color:#CCC; background-color:#D7FDE6; padding:10px; line-height:40px\"> <table border=\"0\" cellpadding=\"4\" cellspacing=\"4\" width=\"100%\"> \t<tbody> \t\t<tr> \t\t\t<td>Chiếu d&agrave;i</td> \t\t\t<td>370 mm</td> \t\t</tr> \t\t<tr> \t\t\t<td>Chiều rộng</td> \t\t\t<td>25 mm</td> \t\t</tr> \t\t<tr> \t\t\t<td>Chiều cao</td> \t\t\t<td>202 mm</td> \t\t</tr> \t</tbody> </table> </div> </div> </div> <!-- Kết thúc 1 thuộc tính --><!-- Bắt đầu 1 thuộc tính -->  <div class=\"col-sm-6\"> <div style=\"width:100%; height:auto\"> <p style=\"font-weight:bold; font-size:20px\">Đặc điểm kh&aacute;c</p>  <div style=\"width:100%; height:auto; border-color:#CCC; background-color:#D7FDE6; padding:10px; line-height:40px\"> <table border=\"0\" cellpadding=\"4\" cellspacing=\"4\" width=\"100%\"> \t<tbody> \t\t<tr> \t\t\t<td>H&agrave;m lượng thủy ng&acirc;n</td> \t\t\t<td>0 mg</td> \t\t</tr> \t\t<tr> \t\t\t<td>Thời gian khởi động của đ&egrave;n</td> \t\t\t<td>&lt; 0,5 gi&acirc;y</td> \t\t</tr> \t</tbody> </table> </div> </div> </div> <!-- Kết thúc 1 thuộc tính -->  <div class=\"divClear\">&nbsp;</div>  <div class=\"divClear\">&nbsp;</div>  <div style=\"width:100%; height:30px\">&nbsp;</div> <!-- Kết thúc 1 thuộc tính -->                 </div>\r\n",
        "categoryId": 48,
        "images": "https://ei-dev-store.s3.amazonaws.com/Product/1/48/den-led-exit-chi-dan-2-mat-2w.jpg#51057",
        "thumbnail": "https://ei-dev-store.s3.amazonaws.com/Product/1/48/den-led-exit-chi-dan-2-mat-2w.jpg#51057",
        "tags": null,
        "price": 2520000,
        "supplierPrice": 2520000,
        "promotionCode": null,
        "warrantyZone": null,
        "shipMethodId": 0,
        "specialRequest": null,
        "rate": 0,
        "brandId": 0,
        "deleted": 0,
        "createdBy": 1,
        "updatedBy": 1,
        "startDate": "2021-08-04T12:02:58.419Z",
        "endDate": null,
        "upSellId": null,
        "groupingId": null,
        "crossSellIds": null,
        "productCustomIds": null,
        "variantTemplateTypeId": null,
        "stock": -1,
        "soldQuantity": 0,
        "moq": 1,
        "discountRate": "0",
        "categoryPath": "[{\"id\":48,\"name\":\"Đèn Exit, khẩn cấp, thoát hiểm LED\",\"slug\":\"den-exit-khan-cap-thoat-hiem-led\"}]",
        "supplierName": null,
        "companyName": null,
        "brandName": null,
        "productPackingId": null,
        "unitId": null,
        "createdAt": "2021-08-04T12:02:57.000Z",
        "updatedAt": "2021-08-04T12:02:57.000Z",
        "supplier": {
            "id": 1,
            "name": "Rạng đông",
            "slug": null,
            "address": "Số 87-89, Phố Hạ Đình, Phường Thanh Xuân Trung, Quận Thanh Xuân, Hà Nội",
            "email": "rangdong.cskh@gmail.com",
            "phone": "0942 669 678",
            "company": "Rạng đông",
            "taxCode": null,
            "code": "RAD",
            "shortDesc": null,
            "desc": null,
            "type": 2,
            "deleted": 0,
            "status": 1,
            "createdBy": 1,
            "updatedBy": 1,
            "createdAt": "2021-07-19T02:08:14.000Z",
            "updatedAt": "2021-07-19T02:08:14.000Z"
        }
    }
}
curl -X POST http://localhost:3000/product/ei/getSupplier \
  -H 'Content-Type: application/json' \
  --data '{
        "productId" : 241
    }'