POST V2/Banner/GetPromotionByDevice

Request Information

URI Parameters

None.

Body Parameters

PromotionQueryCond
NameDescriptionTypeAdditional information
Page

string

None.

Position

string

None.

Currency

Currency

None.

BannerEnable

boolean

None.

ProductEnable

boolean

None.

IsMobile

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Page": "sample string 1",
  "Position": "sample string 2",
  "Currency": {
    "Id": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "Desc": "sample string 4",
    "IsSyncProducts": true,
    "IsSyncOrders": true
  },
  "BannerEnable": true,
  "ProductEnable": true,
  "IsMobile": true
}

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 'PromotionQueryCond'.

Response Information

Resource Description

PromotionFrontView
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Lang

string

None.

LangDesc

string

None.

Name

string

None.

Desc

string

None.

ImgName

string

None.

ImgPath

string

None.

CatTypeName

string

None.

Seq

integer

None.

BannerList

Collection of BannerItem

None.

PrmtProductList

Collection of ProdouctSummaryView

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "b6ff8cdd-dbc4-44c0-87a0-916508a58e26",
  "Lang": "sample string 2",
  "LangDesc": "sample string 3",
  "Name": "sample string 4",
  "Desc": "sample string 5",
  "ImgName": "sample string 6",
  "ImgPath": "sample string 7",
  "CatTypeName": "sample string 8",
  "Seq": 9,
  "BannerList": [
    {
      "Id": 1,
      "Image": "sample string 2",
      "Seq": 3,
      "Url": "sample string 4",
      "Content": "sample string 5",
      "IsRedirect": true
    },
    {
      "Id": 1,
      "Image": "sample string 2",
      "Seq": 3,
      "Url": "sample string 4",
      "Content": "sample string 5",
      "IsRedirect": true
    }
  ],
  "PrmtProductList": [
    {
      "Code": "sample string 1",
      "Sku": "sample string 2",
      "Name": "sample string 3",
      "Title": "sample string 4",
      "Img": "sample string 5",
      "Img_SM": "sample string 6",
      "Img_M": "sample string 7",
      "Img_B": "sample string 8",
      "Img_L": "sample string 9",
      "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": 10.1,
      "DefaultSalePrice": 11.1,
      "DefaultListPrice": 12.1,
      "ListPrice": 13.1,
      "HasDiscount": true,
      "Url": "sample string 14",
      "Colors": [
        {
          "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
          }
        }
      ],
      "Sizes": [
        {
          "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
          }
        }
      ],
      "Sexes": [
        {
          "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
          }
        }
      ],
      "OverView": "sample string 15",
      "Detail": "sample string 16",
      "IsFavorite": true,
      "Score": 18.0,
      "Status": 19,
      "AdditionalImage": [
        [
          "sample string 1",
          "sample string 2"
        ],
        [
          "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
    },
    {
      "Code": "sample string 1",
      "Sku": "sample string 2",
      "Name": "sample string 3",
      "Title": "sample string 4",
      "Img": "sample string 5",
      "Img_SM": "sample string 6",
      "Img_M": "sample string 7",
      "Img_B": "sample string 8",
      "Img_L": "sample string 9",
      "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": 10.1,
      "DefaultSalePrice": 11.1,
      "DefaultListPrice": 12.1,
      "ListPrice": 13.1,
      "HasDiscount": true,
      "Url": "sample string 14",
      "Colors": [
        {
          "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
          }
        }
      ],
      "Sizes": [
        {
          "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
          }
        }
      ],
      "Sexes": [
        {
          "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
          }
        }
      ],
      "OverView": "sample string 15",
      "Detail": "sample string 16",
      "IsFavorite": true,
      "Score": 18.0,
      "Status": 19,
      "AdditionalImage": [
        [
          "sample string 1",
          "sample string 2"
        ],
        [
          "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
    }
  ]
}