POST api/goods/GoodsCatalogDataAction
Получение и изменение информации по сущностям товарного каталога: склад, бренд, свойство, папка каталога
Request Information
URI Parameters
None.
Body Parameters
GoodsCatalogDataActionRequest| Name | Description | Type | Additional 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. |
| PriceRemainId |
Идентификатор сущности для действия: запись остатка и цены |
integer |
None. |
| OldPrice |
Новая старая цена товара |
decimal number |
None. |
| PriceMarkup |
Новая наценка на товар |
decimal number |
None. |
| Remain |
Новый остаток товара |
decimal number |
None. |
| MinPrice |
Новый остаток на складе |
decimal number |
None. |
| Price |
Новая цена товара |
decimal number |
None. |
| StoragePos |
Идентификатор точки продаж, которой принадлежит склад |
integer |
None. |
| Operator |
Идентификатор оператора программы лояльности |
integer |
None. |
| Token |
Токен пользователя, который инициирует данный запрос |
integer |
None. |
| SiteCode |
Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос |
string |
None. |
Request Formats
application/json, text/json
{
"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",
"PriceRemainId": 1,
"OldPrice": 1.0,
"PriceMarkup": 1.0,
"Remain": 1.0,
"MinPrice": 1.0,
"Price": 1.0,
"StoragePos": 1,
"Operator": 1,
"Token": 1,
"SiteCode": "sample string 14"
}
application/xml, text/xml
<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> <MinPrice>1</MinPrice> <Name>sample string 12</Name> <NoActive>true</NoActive> <NoShownMobile>true</NoShownMobile> <OldPrice>1</OldPrice> <PreviewLogo>sample string 9</PreviewLogo> <Price>1</Price> <PriceMarkup>1</PriceMarkup> <PriceRemainId>1</PriceRemainId> <PropsId>1</PropsId> <PropsName>sample string 4</PropsName> <Remain>1</Remain> <ShownMobile>true</ShownMobile> <StoragePos>1</StoragePos> <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 not available.
Response Information
Resource Description
GoodsCatalogDataActionResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Properties |
Массив свойств товаров |
Collection of GoodsCatalogDataActionProperty |
None. |
| Storages |
Массив складов в каталоге |
Collection of GoodsCatalogDataActionStorage |
None. |
| Positions |
Массив папок каталога товаров |
Collection of GoodsCatalogDataActionPosition |
None. |
| Brands |
Массив брендов товаров |
Collection of GoodsCatalogDataActionBrand |
None. |
| Prices |
Массив остатков и цен |
Collection of GoodsCatalogDataActionPrice |
None. |
| ErrorCode |
Код ошибки |
integer |
None. |
| Message |
Сообщение об ошибке |
string |
None. |
Response Formats
application/json, text/json
{
"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,
"PosName": "sample string 2",
"Partner": 1,
"NoActive": true,
"BigLogo": "sample string 3",
"Logo": "sample string 4",
"IconLogo": "sample string 5",
"PreviewLogo": "sample string 6",
"MainPageMobile": true,
"LevelShown": 64
},
{
"Id": 1,
"StoragesId": 1,
"Name": "sample string 1",
"Pos": 1,
"PosName": "sample string 2",
"Partner": 1,
"NoActive": true,
"BigLogo": "sample string 3",
"Logo": "sample string 4",
"IconLogo": "sample string 5",
"PreviewLogo": "sample string 6",
"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
}
],
"Prices": [
{
"Id": 1,
"StoragesId": 1,
"StoragesName": "sample string 1",
"PosId": 1,
"PosName": "sample string 2",
"Goods": 1,
"Price": 1.0,
"MinPrice": 1.0,
"OldPrice": 1.0,
"MarkupPrice": 1.0,
"Remain": 1.0
},
{
"Id": 1,
"StoragesId": 1,
"StoragesName": "sample string 1",
"PosId": 1,
"PosName": "sample string 2",
"Goods": 1,
"Price": 1.0,
"MinPrice": 1.0,
"OldPrice": 1.0,
"MarkupPrice": 1.0,
"Remain": 1.0
}
],
"ErrorCode": 1,
"Message": "sample string 2"
}
application/xml, text/xml
<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>
<Prices>
<GoodsCatalogDataActionResponse.GoodsCatalogDataActionPrice>
<Goods>1</Goods>
<Id>1</Id>
<MarkupPrice>1</MarkupPrice>
<MinPrice>1</MinPrice>
<OldPrice>1</OldPrice>
<PosId>1</PosId>
<PosName>sample string 2</PosName>
<Price>1</Price>
<Remain>1</Remain>
<StoragesId>1</StoragesId>
<StoragesName>sample string 1</StoragesName>
</GoodsCatalogDataActionResponse.GoodsCatalogDataActionPrice>
<GoodsCatalogDataActionResponse.GoodsCatalogDataActionPrice>
<Goods>1</Goods>
<Id>1</Id>
<MarkupPrice>1</MarkupPrice>
<MinPrice>1</MinPrice>
<OldPrice>1</OldPrice>
<PosId>1</PosId>
<PosName>sample string 2</PosName>
<Price>1</Price>
<Remain>1</Remain>
<StoragesId>1</StoragesId>
<StoragesName>sample string 1</StoragesName>
</GoodsCatalogDataActionResponse.GoodsCatalogDataActionPrice>
</Prices>
<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 3</BigLogo>
<IconLogo>sample string 5</IconLogo>
<Id>1</Id>
<LevelShown>64</LevelShown>
<Logo>sample string 4</Logo>
<MainPageMobile>true</MainPageMobile>
<Name>sample string 1</Name>
<NoActive>true</NoActive>
<Partner>1</Partner>
<Pos>1</Pos>
<PosName>sample string 2</PosName>
<PreviewLogo>sample string 6</PreviewLogo>
<StoragesId>1</StoragesId>
</GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
<GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
<BigLogo>sample string 3</BigLogo>
<IconLogo>sample string 5</IconLogo>
<Id>1</Id>
<LevelShown>64</LevelShown>
<Logo>sample string 4</Logo>
<MainPageMobile>true</MainPageMobile>
<Name>sample string 1</Name>
<NoActive>true</NoActive>
<Partner>1</Partner>
<Pos>1</Pos>
<PosName>sample string 2</PosName>
<PreviewLogo>sample string 6</PreviewLogo>
<StoragesId>1</StoragesId>
</GoodsCatalogDataActionResponse.GoodsCatalogDataActionStorage>
</Storages>
</GoodsCatalogDataActionResponse>