POST api/goods/GoodsCatalogDataAction

Получение и изменение информации по сущностям товарного каталога: склад, бренд, свойство, папка каталога

Request Information

URI Parameters

None.

Body Parameters

GoodsCatalogDataActionRequest
NameDescriptionTypeAdditional information
CatalogId

Идентификатор каталога, по сущностям которого идёт запрос

integer

None.

ActionType

Тип действия: Update, Info

string

None.

BrandId

Идентификатор сущности для действия: бренд

integer

None.

BrandName

Наименование сущности для действия: бренд

string

None.

StoragesId

Идентификатор сущности для действия: склад

integer

None.

StoragesName

Наименование сущности для действия: склад

string

None.

PropsId

Идентификатор сущности для действия: свойство

integer

None.

PropsName

Наименование сущности для действия: свойство

string

None.

CatalogPositionId

Идентификатор сущности для действия: папка каталога

integer

None.

CatalogPositionName

Наименование сущности для действия: папка каталога

string

None.

ShownMobile

Команда: отображать запись в моб. приложении

boolean

None.

NoShownMobile

Команда: не отображать запись в моб. приложении

boolean

None.

NoActive

Команда: деактивировать запись

boolean

None.

Active

Команда: активировать запись

boolean

None.

LevelShown

Порядковый номер сущности в списке для отображения пользователю (слева направо)

byte

None.

BigLogo

Большое изображение сущности

string

None.

Logo

Стандартное (типовое) изображение сущности

string

None.

IconLogo

Иконка сущности

string

None.

PreviewLogo

Превью (среднее) изображения сущности

string

None.

MainPageMobile

Признак отображения сущности на гл. экране моб. приложения

boolean

None.

Code

Код сущности (например, size или color)

string

None.

Type

Тип сущности

string

None.

Name

Наименование сущности

string

None.

TypeInfo

Тип сущности для типа Info (Brands, Catalogpositions, Storages, Props)

string

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CatalogId": 1,
  "ActionType": "sample string 1",
  "BrandId": 1,
  "BrandName": "sample string 2",
  "StoragesId": 1,
  "StoragesName": "sample string 3",
  "PropsId": 1,
  "PropsName": "sample string 4",
  "CatalogPositionId": 1,
  "CatalogPositionName": "sample string 5",
  "ShownMobile": true,
  "NoShownMobile": true,
  "NoActive": true,
  "Active": true,
  "LevelShown": 64,
  "BigLogo": "sample string 6",
  "Logo": "sample string 7",
  "IconLogo": "sample string 8",
  "PreviewLogo": "sample string 9",
  "MainPageMobile": true,
  "Code": "sample string 10",
  "Type": "sample string 11",
  "Name": "sample string 12",
  "TypeInfo": "sample string 13",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 14"
}

application/xml, text/xml

Sample:
<GoodsCatalogDataActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.GoodsRequest">
  <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator>
  <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 14</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <Active>true</Active>
  <BigLogo>sample string 6</BigLogo>
  <BrandId>1</BrandId>
  <BrandName>sample string 2</BrandName>
  <CatalogId>1</CatalogId>
  <CatalogPositionId>1</CatalogPositionId>
  <CatalogPositionName>sample string 5</CatalogPositionName>
  <Code>sample string 10</Code>
  <IconLogo>sample string 8</IconLogo>
  <LevelShown>64</LevelShown>
  <Logo>sample string 7</Logo>
  <MainPageMobile>true</MainPageMobile>
  <Name>sample string 12</Name>
  <NoActive>true</NoActive>
  <NoShownMobile>true</NoShownMobile>
  <PreviewLogo>sample string 9</PreviewLogo>
  <PropsId>1</PropsId>
  <PropsName>sample string 4</PropsName>
  <ShownMobile>true</ShownMobile>
  <StoragesId>1</StoragesId>
  <StoragesName>sample string 3</StoragesName>
  <Type>sample string 11</Type>
  <TypeInfo>sample string 13</TypeInfo>
</GoodsCatalogDataActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GoodsCatalogDataActionResponse
NameDescriptionTypeAdditional information
Properties

Массив свойств товаров

Collection of GoodsCatalogDataActionProperty

None.

Storages

Массив складов в каталоге

Collection of GoodsCatalogDataActionStorage

None.

Positions

Массив папок каталога товаров

Collection of GoodsCatalogDataActionPosition

None.

Brands

Массив брендов товаров

Collection of GoodsCatalogDataActionBrand

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Properties": [
    {
      "Id": 1,
      "PropertyId": 1,
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Type": "sample string 3",
      "NoShownMobile": true,
      "NoActive": true,
      "LevelShown": 64
    },
    {
      "Id": 1,
      "PropertyId": 1,
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Type": "sample string 3",
      "NoShownMobile": true,
      "NoActive": true,
      "LevelShown": 64
    }
  ],
  "Storages": [
    {
      "Id": 1,
      "StoragesId": 1,
      "Name": "sample string 1",
      "Pos": 1,
      "Partner": 1,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    },
    {
      "Id": 1,
      "StoragesId": 1,
      "Name": "sample string 1",
      "Pos": 1,
      "Partner": 1,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    }
  ],
  "Positions": [
    {
      "Id": 1,
      "PositionId": 1,
      "Name": "sample string 1",
      "NoShownMobile": true,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    },
    {
      "Id": 1,
      "PositionId": 1,
      "Name": "sample string 1",
      "NoShownMobile": true,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    }
  ],
  "Brands": [
    {
      "Id": 1,
      "BrandId": 1,
      "Name": "sample string 1",
      "NoShownMobile": true,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    },
    {
      "Id": 1,
      "BrandId": 1,
      "Name": "sample string 1",
      "NoShownMobile": true,
      "NoActive": true,
      "BigLogo": "sample string 2",
      "Logo": "sample string 3",
      "IconLogo": "sample string 4",
      "PreviewLogo": "sample string 5",
      "MainPageMobile": true,
      "LevelShown": 64
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<GoodsCatalogDataActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.GoodsResponse">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
  <Brands>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionBrand>
      <BigLogo>sample string 2</BigLogo>
      <BrandId>1</BrandId>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PreviewLogo>sample string 5</PreviewLogo>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionBrand>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionBrand>
      <BigLogo>sample string 2</BigLogo>
      <BrandId>1</BrandId>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PreviewLogo>sample string 5</PreviewLogo>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionBrand>
  </Brands>
  <Positions>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionPosition>
      <BigLogo>sample string 2</BigLogo>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PositionId>1</PositionId>
      <PreviewLogo>sample string 5</PreviewLogo>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionPosition>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionPosition>
      <BigLogo>sample string 2</BigLogo>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PositionId>1</PositionId>
      <PreviewLogo>sample string 5</PreviewLogo>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionPosition>
  </Positions>
  <Properties>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionProperty>
      <Code>sample string 2</Code>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PropertyId>1</PropertyId>
      <Type>sample string 3</Type>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionProperty>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionProperty>
      <Code>sample string 2</Code>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <PropertyId>1</PropertyId>
      <Type>sample string 3</Type>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionProperty>
  </Properties>
  <Storages>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
      <BigLogo>sample string 2</BigLogo>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <Partner>1</Partner>
      <Pos>1</Pos>
      <PreviewLogo>sample string 5</PreviewLogo>
      <StoragesId>1</StoragesId>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
    <GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
      <BigLogo>sample string 2</BigLogo>
      <IconLogo>sample string 4</IconLogo>
      <Id>1</Id>
      <LevelShown>64</LevelShown>
      <Logo>sample string 3</Logo>
      <MainPageMobile>true</MainPageMobile>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <Partner>1</Partner>
      <Pos>1</Pos>
      <PreviewLogo>sample string 5</PreviewLogo>
      <StoragesId>1</StoragesId>
    </GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
  </Storages>
</GoodsCatalogDataActionResponse>