POST api/marketing/MarketListAction

Создание и изменение маркетингового списка карт

Request Information

URI Parameters

None.

Body Parameters

MarketListActionRequest
NameDescriptionTypeAdditional information
PosCode

Код торговой точки пользователя

string

None.

ActionType

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

string

None.

Name

Наименование маркетингового списка

string

None.

MarketListType

Идентификатор типа маркетингового списка

byte

None.

Description

Описание маркетингового списка

string

None.

MarketListId

Идентификатор изменяемого маркетиногового списка

integer

None.

MarketList

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

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PosCode": "sample string 1",
  "ActionType": "sample string 2",
  "Name": "sample string 3",
  "MarketListType": 64,
  "Description": "sample string 4",
  "MarketListId": 1,
  "MarketList": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 5"
}

application/xml, text/xml

Sample:
<MarketListActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.MarketingRequest">
  <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 5</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 2</ActionType>
  <Description>sample string 4</Description>
  <MarketList>1</MarketList>
  <MarketListId>1</MarketListId>
  <MarketListType>64</MarketListType>
  <Name>sample string 3</Name>
  <PosCode>sample string 1</PosCode>
</MarketListActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MarketListActionResponse
NameDescriptionTypeAdditional information
Data

Данные

Collection of MarketListActionData

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Id": 1,
      "Name": "sample string 1",
      "ProcTime": "2024-06-20T04:47:43.4373583+03:00",
      "MarketListType": 64,
      "MarketListTypeName": "sample string 2",
      "Description": "sample string 3",
      "SampleRule": 1,
      "SampleRuleName": "sample string 4",
      "CountCard": 1
    },
    {
      "Id": 1,
      "Name": "sample string 1",
      "ProcTime": "2024-06-20T04:47:43.4373583+03:00",
      "MarketListType": 64,
      "MarketListTypeName": "sample string 2",
      "Description": "sample string 3",
      "SampleRule": 1,
      "SampleRuleName": "sample string 4",
      "CountCard": 1
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<MarketListActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.MarketingResponse">
  <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>
    <MarketListActionResponse.MarketListActionData>
      <CountCard>1</CountCard>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <MarketListType>64</MarketListType>
      <MarketListTypeName>sample string 2</MarketListTypeName>
      <Name>sample string 1</Name>
      <ProcTime>2024-06-20T04:47:43.4373583+03:00</ProcTime>
      <SampleRule>1</SampleRule>
      <SampleRuleName>sample string 4</SampleRuleName>
    </MarketListActionResponse.MarketListActionData>
    <MarketListActionResponse.MarketListActionData>
      <CountCard>1</CountCard>
      <Description>sample string 3</Description>
      <Id>1</Id>
      <MarketListType>64</MarketListType>
      <MarketListTypeName>sample string 2</MarketListTypeName>
      <Name>sample string 1</Name>
      <ProcTime>2024-06-20T04:47:43.4373583+03:00</ProcTime>
      <SampleRule>1</SampleRule>
      <SampleRuleName>sample string 4</SampleRuleName>
    </MarketListActionResponse.MarketListActionData>
  </Data>
</MarketListActionResponse>