You can call this operation to search for the products that you want.

API

POST ${API_PREFIX}/commodity/search
Content-Type: application/json;charset=utf-8

Request Body

{
  "catGroup": 1,
  "start": 0,
  "num": 5,
  "q": "query string",
  "catId": "3FO4K4BX0KGM",
  "code": "CODE",
  "includeStyleItems":false,
  "lastModifiedStart": 1519820808879,
  "lastModifiedEnd": 1519820908879
}

Addition:
Currently, this operation only supports the following scenarios. 

  1. Specifies catId, start, and num to retrieve the products in the specified category. Specifies lastModifiedStart and lastModifiedEnd to retrieve the products that have been updated in the specified time range. Specifies includeStyleItems to retrieve products in collections. Default value: false. A true value indicates that all collection products are returned.Note: Currently, each collection has a default product. A collection is in the category which the default product is in. We recommend that you set all products of the same collection in the same category to avoid ambiguity.
  2. Specifies q, start, and num to search for products based on keywords.
  3. Specifies code to  search for the products with the specified product code. Note: Multiple products are supported to use the same code. We recommend that you avoid using one code for multiple products. To fuzzy match products with product codes, use the q parameter.

Response

{
  "c": "0",
  "m": "",
  "d": {
    "totalCount": 9804,
    "count": 1,
    "hasMore": true,
    "result": [
      {
        "id": "3FO4K4WE71VB",
        "name": "table-180-90-k009",
        "description": "aaaaa",
        "type": "furniture",
        "subType": 1,
        "size": {
          "x": 1800.02,
          "y": 902.017,
          "z": 745.015
        },
        "largeImgUrl": "http://qhyxpic.oss.kujiale.com/rbet/2014/12/26/NUBRMG6W7JALJTGFEY4BQXYO_800x800.jpg",
        "imgUrl": "http://qhyxpic.oss.kujiale.com/rbet/2014/12/26/NUBRME6W7JALJTGFEY4BQXYO_240x240.jpg",
        "brandName": "coohom",
        "brandLogo": "http://qhyxpic.oss.kujiale.com/rbet/2014/12/26/NUBRME6W7JALJTGFEY4BQXYO_240x240.jpg",
        "unitPrice": "1920.00",
        "customTexture": "bbb",
        "prodUrl": "www.kujiale.com",
        "code": "12222",
        "styleName": "style1",
        "styleId": "3FO4K4WFPMOC",
         "tags": [
             {
                  "name": "asd",
                  "tagId": "3FO4K4VYH15A"
             }
         ],
         "created": 1553758172000,
         "lastModified": 1553758190000
      }
    ]
  }
}

Appendix

subType enumerations

Did this answer your question?