POST api/goods/NomenclatureSpeciesListAction

Добавление/изменение/получение данных по списку видов номенклатуры в товарном каталоге

Request Information

URI Parameters

None.

Body Parameters

NomenclatureSpeciesListActionRequest
NameDescriptionTypeAdditional information
Name

Наименование списка (для Create и Update)

string

None.

ActionType

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

string

None.

Active

Признак активации списка (для Update)

boolean

None.

NoActive

Признак деактивации списка (для Update)

boolean

None.

SpeciesList

Массив идентификаторов

Collection of NomenclatureSpeciesListActionSpeciesListRow

None.

SpeciesListId

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

integer

None.

Start

Пагинация: от какой записи возвращать данные, включая указанную (для Info c detail = 1)

integer

None.

Length

Пагинация: количество записей, которые нужно вернуть (для Info c detail = 1)

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ActionType": "sample string 2",
  "Active": true,
  "NoActive": true,
  "SpeciesList": [
    {
      "Id": 1,
      "SpeciesId": 1
    },
    {
      "Id": 1,
      "SpeciesId": 1
    }
  ],
  "SpeciesListId": 1,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 3"
}

application/xml, text/xml

Sample:
<NomenclatureSpeciesListActionRequest 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 3</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 2</ActionType>
  <Active>true</Active>
  <Length>1</Length>
  <Name>sample string 1</Name>
  <NoActive>true</NoActive>
  <SpeciesList>
    <NomenclatureSpeciesListActionRequest.NomenclatureSpeciesListActionSpeciesListRow>
      <Id>1</Id>
      <SpeciesId>1</SpeciesId>
    </NomenclatureSpeciesListActionRequest.NomenclatureSpeciesListActionSpeciesListRow>
    <NomenclatureSpeciesListActionRequest.NomenclatureSpeciesListActionSpeciesListRow>
      <Id>1</Id>
      <SpeciesId>1</SpeciesId>
    </NomenclatureSpeciesListActionRequest.NomenclatureSpeciesListActionSpeciesListRow>
  </SpeciesList>
  <SpeciesListId>1</SpeciesListId>
  <Start>1</Start>
</NomenclatureSpeciesListActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NomenclatureSpeciesListActionResponse
NameDescriptionTypeAdditional information
NomenclatureSpeciesList

Идентификатор созданного списка (для Create)

integer

None.

CountPosition

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

integer

None.

SpeciesListName

Наименование списка (для Info)

string

None.

ProcTime

Дата и время создания списка (для Info)

date

None.

SpeciesListNoActive

Статус активности списка с точки зрения отображения в ЛК (для Info)

boolean

None.

TotalRows

Количество записей всего (для Info c detail = 1)

integer

None.

TotalRowsSelect

Количество записей в запросе (для Info c detail = 1)

integer

None.

Data

Массив позиций

Collection of NomenclatureSpeciesListActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "NomenclatureSpeciesList": 1,
  "CountPosition": 1,
  "SpeciesListName": "sample string 1",
  "ProcTime": "2025-07-20T15:49:52.6206098+03:00",
  "SpeciesListNoActive": true,
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Data": [
    {
      "Id": 1,
      "SpeciesId": 1,
      "SpeciesName": "sample string 1"
    },
    {
      "Id": 1,
      "SpeciesId": 1,
      "SpeciesName": "sample string 1"
    }
  ],
  "ErrorCode": 2,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<NomenclatureSpeciesListActionResponse 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">2</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 3</Message>
  <CountPosition>1</CountPosition>
  <Data>
    <NomenclatureSpeciesListActionResponse.NomenclatureSpeciesListActionDataRow>
      <Id>1</Id>
      <SpeciesId>1</SpeciesId>
      <SpeciesName>sample string 1</SpeciesName>
    </NomenclatureSpeciesListActionResponse.NomenclatureSpeciesListActionDataRow>
    <NomenclatureSpeciesListActionResponse.NomenclatureSpeciesListActionDataRow>
      <Id>1</Id>
      <SpeciesId>1</SpeciesId>
      <SpeciesName>sample string 1</SpeciesName>
    </NomenclatureSpeciesListActionResponse.NomenclatureSpeciesListActionDataRow>
  </Data>
  <NomenclatureSpeciesList>1</NomenclatureSpeciesList>
  <ProcTime>2025-07-20T15:49:52.6206098+03:00</ProcTime>
  <SpeciesListName>sample string 1</SpeciesListName>
  <SpeciesListNoActive>true</SpeciesListNoActive>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</NomenclatureSpeciesListActionResponse>