POST V2/Product/SearchV2

Request Information

URI Parameters

None.

Body Parameters

SearchPageInfo
NameDescriptionTypeAdditional information
Key

string

None.

Language

string

None.

Currency

string

None.

CatType

integer

None.

CatIds

Collection of integer

None.

Attrs

Collection of AttrValues

None.

PageInfo

PageInfo

None.

Type

integer

None.

Reflesh

integer

None.

Prices

Collection of integer

None.

PermissionId

string

None.

IndexKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "Language": "sample string 2",
  "Currency": "sample string 3",
  "CatType": 4,
  "CatIds": [
    1,
    2
  ],
  "Attrs": [
    {
      "Id": 1,
      "Type": 2,
      "IsRange": true,
      "Vals": [
        1,
        2
      ]
    },
    {
      "Id": 1,
      "Type": 2,
      "IsRange": true,
      "Vals": [
        1,
        2
      ]
    }
  ],
  "PageInfo": {
    "Page": 1,
    "PageSize": 2,
    "Offset": 0,
    "SortName": "sample string 3",
    "SortOrder": "sample string 4"
  },
  "Type": 5,
  "Reflesh": 6,
  "Prices": [
    1,
    2
  ],
  "PermissionId": "sample string 7",
  "IndexKey": "sample string 3-sample string 1-1-2-1-2-1-1-2-1-1-21-2-sample string 3-sample string 4"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SearchPageInfo'.

Response Information

Resource Description

PageDataOfProductListViewModel
NameDescriptionTypeAdditional information
TotalPage

integer

None.

TotalRecord

integer

None.

Data

Collection of ProductListViewModel

None.

Page

integer

None.

PageSize

integer

None.

Offset

integer

None.

SortName

string

None.

SortOrder

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalPage": 1,
  "TotalRecord": 1,
  "Data": [
    {
      "Thumbnail": "sample string 1",
      "Currency": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Desc": "sample string 4",
        "IsSyncProducts": true,
        "IsSyncOrders": true
      },
      "DefaultCurrency": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Desc": "sample string 4",
        "IsSyncProducts": true,
        "IsSyncOrders": true
      },
      "SalePrice": 2.1,
      "ListPrice": 3.1,
      "DefaultSalePrice": 4.1,
      "DefaultListPrice": 5.1,
      "HasDiscount": true,
      "IsFavorite": true,
      "Score": 7.0,
      "AdditionalImages": [
        "sample string 1",
        "sample string 2"
      ],
      "ExtAttrList": [
        [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          }
        ],
        [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          }
        ]
      ],
      "HasStockAttrVal": true,
      "Sku": "sample string 9",
      "Code": "sample string 10",
      "Name": "sample string 11",
      "Title": "sample string 12",
      "Image": "sample string 13",
      "Status": 14,
      "Description": "sample string 15"
    },
    {
      "Thumbnail": "sample string 1",
      "Currency": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Desc": "sample string 4",
        "IsSyncProducts": true,
        "IsSyncOrders": true
      },
      "DefaultCurrency": {
        "Id": 1,
        "Code": "sample string 2",
        "Name": "sample string 3",
        "Desc": "sample string 4",
        "IsSyncProducts": true,
        "IsSyncOrders": true
      },
      "SalePrice": 2.1,
      "ListPrice": 3.1,
      "DefaultSalePrice": 4.1,
      "DefaultListPrice": 5.1,
      "HasDiscount": true,
      "IsFavorite": true,
      "Score": 7.0,
      "AdditionalImages": [
        "sample string 1",
        "sample string 2"
      ],
      "ExtAttrList": [
        [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          }
        ],
        [
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          },
          {
            "Id": 1,
            "Code": "sample string 2",
            "Name": "sample string 3",
            "NameC": "sample string 4",
            "NameE": "sample string 5",
            "Img": "sample string 6",
            "ProductImage": "sample string 7",
            "exchangeAdditionalPrice": 8.0,
            "AdditionalPrice": 9.0,
            "IsSelected": true,
            "IsDisplay": true,
            "ExistProductImage": true,
            "Type": {
              "TypeId": 1,
              "Name": "sample string 2",
              "TypeNameC": "sample string 3",
              "TypeNameE": "sample string 4",
              "IsBatchOrder": true,
              "IsInventory": true
            }
          }
        ]
      ],
      "HasStockAttrVal": true,
      "Sku": "sample string 9",
      "Code": "sample string 10",
      "Name": "sample string 11",
      "Title": "sample string 12",
      "Image": "sample string 13",
      "Status": 14,
      "Description": "sample string 15"
    }
  ],
  "Page": 2,
  "PageSize": 3,
  "Offset": 3,
  "SortName": "sample string 4",
  "SortOrder": "sample string 5"
}