POST api/system/MessageOperatorPosAction

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

Request Information

URI Parameters

None.

Body Parameters

MessageOperatorPosActionRequest
NameDescriptionTypeAdditional information
ActionType

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

string

None.

MessageOperator

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

integer

None.

Pos

Идентификатор точки продаж, от которой нужно отправлять коммуникацию

integer

None.

MessageOperatorPosId

Идентификатор записи для изменения или получения данных

integer

None.

MessageProvider

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

integer

None.

ApiUrl

Адрес апи провайдера

string

None.

ApiKey

Апи-ключ

string

None.

NoActive

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

boolean

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "MessageOperator": 1,
  "Pos": 1,
  "MessageOperatorPosId": 1,
  "MessageProvider": 1,
  "ApiUrl": "sample string 2",
  "ApiKey": "sample string 3",
  "NoActive": true,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 4"
}

application/xml, text/xml

Sample:
<MessageOperatorPosActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.SystemRequest">
  <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 4</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <ApiKey>sample string 3</ApiKey>
  <ApiUrl>sample string 2</ApiUrl>
  <MessageOperator>1</MessageOperator>
  <MessageOperatorPosId>1</MessageOperatorPosId>
  <MessageProvider>1</MessageProvider>
  <NoActive>true</NoActive>
  <Pos>1</Pos>
</MessageOperatorPosActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageOperatorPosActionResponse
NameDescriptionTypeAdditional information
MessageOperatorPos

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

integer

None.

Data

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

Collection of MessageOperatorPosActionDataRow

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "MessageOperatorPos": 1,
  "Data": [
    {
      "MessageOperatorPosId": 1,
      "MessageOperator": 1,
      "Pos": 1,
      "PosName": "sample string 1",
      "ApiKey": "sample string 2",
      "ApiUrl": "sample string 3",
      "MessageProvider": 1,
      "MessageProviderName": "sample string 4",
      "NoActive": true
    },
    {
      "MessageOperatorPosId": 1,
      "MessageOperator": 1,
      "Pos": 1,
      "PosName": "sample string 1",
      "ApiKey": "sample string 2",
      "ApiUrl": "sample string 3",
      "MessageProvider": 1,
      "MessageProviderName": "sample string 4",
      "NoActive": true
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<MessageOperatorPosActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.SystemResponse">
  <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>
    <MessageOperatorPosActionResponse.MessageOperatorPosActionDataRow>
      <ApiKey>sample string 2</ApiKey>
      <ApiUrl>sample string 3</ApiUrl>
      <MessageOperator>1</MessageOperator>
      <MessageOperatorPosId>1</MessageOperatorPosId>
      <MessageProvider>1</MessageProvider>
      <MessageProviderName>sample string 4</MessageProviderName>
      <NoActive>true</NoActive>
      <Pos>1</Pos>
      <PosName>sample string 1</PosName>
    </MessageOperatorPosActionResponse.MessageOperatorPosActionDataRow>
    <MessageOperatorPosActionResponse.MessageOperatorPosActionDataRow>
      <ApiKey>sample string 2</ApiKey>
      <ApiUrl>sample string 3</ApiUrl>
      <MessageOperator>1</MessageOperator>
      <MessageOperatorPosId>1</MessageOperatorPosId>
      <MessageProvider>1</MessageProvider>
      <MessageProviderName>sample string 4</MessageProviderName>
      <NoActive>true</NoActive>
      <Pos>1</Pos>
      <PosName>sample string 1</PosName>
    </MessageOperatorPosActionResponse.MessageOperatorPosActionDataRow>
  </Data>
  <MessageOperatorPos>1</MessageOperatorPos>
</MessageOperatorPosActionResponse>