POST api/questionnaire/QuestionnairePagingInfo

Получение информации об опросах оператора, с пагинацией и входными фильтрами

Request Information

URI Parameters

None.

Body Parameters

QuestionnairePagingInfoRequest
NameDescriptionTypeAdditional information
Questionnaire

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

integer

None.

SourceType

Источник запроса (1 = crm)

byte

None.

Active

Входной фильтр: только активные опросы

boolean

None.

NoActive

Входной фильтр: только неактивные опросы

boolean

None.

QuestionnaireType

Входной фильтр: тип опроса

byte

None.

Dynamic

Входной фильтр: динамический опрос

boolean

None.

Start

Пагинация: начальная позиция для отображения

integer

None.

Length

Пагинация: кол-во строк для отображения

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Questionnaire": 1,
  "SourceType": 64,
  "Active": true,
  "NoActive": true,
  "QuestionnaireType": 64,
  "Dynamic": true,
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 1"
}

application/xml, text/xml

Sample:
<QuestionnairePagingInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.QuestionnaireRequest">
  <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 1</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <Active>true</Active>
  <Dynamic>true</Dynamic>
  <Length>1</Length>
  <NoActive>true</NoActive>
  <Questionnaire>1</Questionnaire>
  <QuestionnaireType>64</QuestionnaireType>
  <SourceType>64</SourceType>
  <Start>1</Start>
</QuestionnairePagingInfoRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

QuestionnairePagingInfoResponse
NameDescriptionTypeAdditional information
TotalRows

Общее кол-во строк, которое может вернуться в выборке

integer

None.

TotalRowsSelect

Общее кол-во строк, которое вернулось в запросе

integer

None.

Data

Данные по правилам

Collection of QuestionnairePagingInfoData

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRows": 1,
  "TotalRowsSelect": 1,
  "Data": [
    {
      "Id": 1,
      "Questionnaire": 1,
      "QuestionnaireName": "sample string 1",
      "Active": true,
      "Dynamic": true,
      "QuestionnaireType": 64,
      "QuestionnaireTypeName": "sample string 2",
      "SiteCode": "sample string 3"
    },
    {
      "Id": 1,
      "Questionnaire": 1,
      "QuestionnaireName": "sample string 1",
      "Active": true,
      "Dynamic": true,
      "QuestionnaireType": 64,
      "QuestionnaireTypeName": "sample string 2",
      "SiteCode": "sample string 3"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<QuestionnairePagingInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.QuestionnaireResponse">
  <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>
    <QuestionnairePagingInfoResponse.QuestionnairePagingInfoData>
      <Active>true</Active>
      <Dynamic>true</Dynamic>
      <Id>1</Id>
      <Questionnaire>1</Questionnaire>
      <QuestionnaireName>sample string 1</QuestionnaireName>
      <QuestionnaireType>64</QuestionnaireType>
      <QuestionnaireTypeName>sample string 2</QuestionnaireTypeName>
      <SiteCode>sample string 3</SiteCode>
    </QuestionnairePagingInfoResponse.QuestionnairePagingInfoData>
    <QuestionnairePagingInfoResponse.QuestionnairePagingInfoData>
      <Active>true</Active>
      <Dynamic>true</Dynamic>
      <Id>1</Id>
      <Questionnaire>1</Questionnaire>
      <QuestionnaireName>sample string 1</QuestionnaireName>
      <QuestionnaireType>64</QuestionnaireType>
      <QuestionnaireTypeName>sample string 2</QuestionnaireTypeName>
      <SiteCode>sample string 3</SiteCode>
    </QuestionnairePagingInfoResponse.QuestionnairePagingInfoData>
  </Data>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</QuestionnairePagingInfoResponse>