POST api/goods/ItemListDataAction

Создание, изменение, получение расширенной информации о товарах в списке кодов товаров

Request Information

URI Parameters

None.

Body Parameters

ItemListDataActionRequest
NameDescriptionTypeAdditional information
ActionType

Тип действия, которое необходимо произвести (Create, Update, Info)

string

None.

ListDataId

Идентификатор записи товара, который будут менять или в котором будут производиться изменения

integer

None.

ItemList

Идентификатор списка кодов товаров, которому принадлежат товары

integer

None.

Name

Наименование товара

string

None.

Code

Код товара

string

None.

Description

Описание товара

string

None.

Price

Цена товара

decimal number

None.

OldPrice

Старая цена

decimal number

None.

UrlImage

Адрес изображения

string

None.

Qvant

Квант

string

None.

Tag

Тег

string

None.

ColorTag

Цвет тега

string

None.

CategoryName

Категория товара

string

None.

BrandName

Бренд товара

string

None.

NoShownMobile

Признак отображения или не отображения товара в приложении

boolean

None.

NoActive

Признак деактивации товара в списке

boolean

None.

Start

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

integer

None.

Length

Пагинация: количество записей, которые нужно вернуть

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "ListDataId": 1,
  "ItemList": 1,
  "Name": "sample string 2",
  "Code": "sample string 3",
  "Description": "sample string 4",
  "Price": 1.0,
  "OldPrice": 1.0,
  "UrlImage": "sample string 5",
  "Qvant": "sample string 6",
  "Tag": "sample string 7",
  "ColorTag": "sample string 8",
  "CategoryName": "sample string 9",
  "BrandName": "sample string 10",
  "NoShownMobile": true,
  "NoActive": true,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 11"
}

application/xml, text/xml

Sample:
<ItemListDataActionRequest 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 11</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <BrandName>sample string 10</BrandName>
  <CategoryName>sample string 9</CategoryName>
  <Code>sample string 3</Code>
  <ColorTag>sample string 8</ColorTag>
  <Description>sample string 4</Description>
  <ItemList>1</ItemList>
  <Length>1</Length>
  <ListDataId>1</ListDataId>
  <Name>sample string 2</Name>
  <NoActive>true</NoActive>
  <NoShownMobile>true</NoShownMobile>
  <OldPrice>1</OldPrice>
  <Price>1</Price>
  <Qvant>sample string 6</Qvant>
  <Start>1</Start>
  <Tag>sample string 7</Tag>
  <UrlImage>sample string 5</UrlImage>
</ItemListDataActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ItemListDataActionResponse
NameDescriptionTypeAdditional information
ListData

Идентификатор созданной записи товара

integer

None.

TotalRows

Количество записей всего

integer

None.

TotalRowsSelect

Количество записей в запросе

integer

None.

Data

Массив данных

Collection of ItemListDataActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ListData": 1,
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Data": [
    {
      "Id": 1,
      "ListDataId": 1,
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Description": "sample string 3",
      "Price": 1.0,
      "OldPrice": 1.0,
      "UrlImage": "sample string 4",
      "Qvant": "sample string 5",
      "Tag": "sample string 6",
      "ColorTag": "sample string 7",
      "CategoryName": "sample string 8",
      "BrandName": "sample string 9",
      "NoActive": true,
      "NoShownMobile": true
    },
    {
      "Id": 1,
      "ListDataId": 1,
      "Name": "sample string 1",
      "Code": "sample string 2",
      "Description": "sample string 3",
      "Price": 1.0,
      "OldPrice": 1.0,
      "UrlImage": "sample string 4",
      "Qvant": "sample string 5",
      "Tag": "sample string 6",
      "ColorTag": "sample string 7",
      "CategoryName": "sample string 8",
      "BrandName": "sample string 9",
      "NoActive": true,
      "NoShownMobile": true
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ItemListDataActionResponse 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>
  <Data>
    <ItemListDataActionResponse.ItemListDataActionDataRow>
      <BrandName>sample string 9</BrandName>
      <CategoryName>sample string 8</CategoryName>
      <Code>sample string 2</Code>
      <ColorTag>sample string 7</ColorTag>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <ListDataId>1</ListDataId>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <OldPrice>1</OldPrice>
      <Price>1</Price>
      <Qvant>sample string 5</Qvant>
      <Tag>sample string 6</Tag>
      <UrlImage>sample string 4</UrlImage>
    </ItemListDataActionResponse.ItemListDataActionDataRow>
    <ItemListDataActionResponse.ItemListDataActionDataRow>
      <BrandName>sample string 9</BrandName>
      <CategoryName>sample string 8</CategoryName>
      <Code>sample string 2</Code>
      <ColorTag>sample string 7</ColorTag>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <ListDataId>1</ListDataId>
      <Name>sample string 1</Name>
      <NoActive>true</NoActive>
      <NoShownMobile>true</NoShownMobile>
      <OldPrice>1</OldPrice>
      <Price>1</Price>
      <Qvant>sample string 5</Qvant>
      <Tag>sample string 6</Tag>
      <UrlImage>sample string 4</UrlImage>
    </ItemListDataActionResponse.ItemListDataActionDataRow>
  </Data>
  <ListData>1</ListData>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</ItemListDataActionResponse>