POST api/questionnaire/QuestionnaireCommitResult

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

Request Information

URI Parameters

None.

Body Parameters

QuestionnaireCommitResultRequest
NameDescriptionTypeAdditional information
PosCode

Код торговой точки

string

None.

Client

Идентификатор клиента в БД Mloyalty

integer

None.

Questionnaire

Идентификатор сайта-виджета опросов для которого получаем вопросы

integer

None.

BegDate

Начальная дата периода прохождения опроса

date

None.

EndDate

Конечная дата периода прохождения опроса

date

None.

Start

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

integer

None.

Length

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

integer

None.

Operator

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

integer

None.

Token

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

integer

None.

SiteCode

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

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PosCode": "sample string 1",
  "Client": 1,
  "Questionnaire": 1,
  "BegDate": "2024-06-20T05:29:30.3411489+03:00",
  "EndDate": "2024-06-20T05:29:30.3411489+03:00",
  "Start": 1,
  "Length": 1,
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 2"
}

application/xml, text/xml

Sample:
<QuestionnaireCommitResultRequest 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 2</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <BegDate>2024-06-20T05:29:30.3411489+03:00</BegDate>
  <Client>1</Client>
  <EndDate>2024-06-20T05:29:30.3411489+03:00</EndDate>
  <Length>1</Length>
  <PosCode>sample string 1</PosCode>
  <Questionnaire>1</Questionnaire>
  <Start>1</Start>
</QuestionnaireCommitResultRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

QuestionnaireCommitResultResponse
NameDescriptionTypeAdditional information
Commits

Данные по клиентам, которые проходили опрос

Collection of QuestionnaireCommitResultCommit

None.

TotalRowsSelect

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

integer

None.

TotalRows

Общее количество записей, которое может быть отображена в результате данного запроса

integer

None.

ErrorCode

Код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Commits": [
    {
      "Id": 1,
      "QuestionnaireCommitId": 1,
      "ProcTime": "2024-06-20T05:29:30.4505176+03:00",
      "Client": 1,
      "Card": 1,
      "Phone": 1,
      "Fio": "sample string 1",
      "Age": 64,
      "Email": "sample string 2",
      "Gender": "sample string 3",
      "CardType": "sample string 4",
      "PosName": "sample string 5",
      "ChequeNumber": "sample string 6",
      "GoodsName": "sample string 7",
      "CommitQuestionsData": [
        {
          "Id": 1,
          "QuestionCommit": 1,
          "QuestionId": 1,
          "QuestionGroup": "sample string 1",
          "LevelStep": 1,
          "TextQuestion": "sample string 2",
          "CommentQuestion": "sample string 3",
          "CommitQuestionsAnswersData": [
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            },
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            }
          ]
        },
        {
          "Id": 1,
          "QuestionCommit": 1,
          "QuestionId": 1,
          "QuestionGroup": "sample string 1",
          "LevelStep": 1,
          "TextQuestion": "sample string 2",
          "CommentQuestion": "sample string 3",
          "CommitQuestionsAnswersData": [
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            },
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            }
          ]
        }
      ]
    },
    {
      "Id": 1,
      "QuestionnaireCommitId": 1,
      "ProcTime": "2024-06-20T05:29:30.4505176+03:00",
      "Client": 1,
      "Card": 1,
      "Phone": 1,
      "Fio": "sample string 1",
      "Age": 64,
      "Email": "sample string 2",
      "Gender": "sample string 3",
      "CardType": "sample string 4",
      "PosName": "sample string 5",
      "ChequeNumber": "sample string 6",
      "GoodsName": "sample string 7",
      "CommitQuestionsData": [
        {
          "Id": 1,
          "QuestionCommit": 1,
          "QuestionId": 1,
          "QuestionGroup": "sample string 1",
          "LevelStep": 1,
          "TextQuestion": "sample string 2",
          "CommentQuestion": "sample string 3",
          "CommitQuestionsAnswersData": [
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            },
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            }
          ]
        },
        {
          "Id": 1,
          "QuestionCommit": 1,
          "QuestionId": 1,
          "QuestionGroup": "sample string 1",
          "LevelStep": 1,
          "TextQuestion": "sample string 2",
          "CommentQuestion": "sample string 3",
          "CommitQuestionsAnswersData": [
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            },
            {
              "Id": 1,
              "Text": "sample string 1",
              "Free": true
            }
          ]
        }
      ]
    }
  ],
  "TotalRowsSelect": 1,
  "TotalRows": 1,
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<QuestionnaireCommitResultResponse 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>
  <Commits>
    <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit>
      <Age>64</Age>
      <Card>1</Card>
      <CardType>sample string 4</CardType>
      <ChequeNumber>sample string 6</ChequeNumber>
      <Client>1</Client>
      <CommitQuestionsData>
        <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
          <CommentQuestion>sample string 3</CommentQuestion>
          <CommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
          </CommitQuestionsAnswersData>
          <Id>1</Id>
          <LevelStep>1</LevelStep>
          <QuestionCommit>1</QuestionCommit>
          <QuestionGroup>sample string 1</QuestionGroup>
          <QuestionId>1</QuestionId>
          <TextQuestion>sample string 2</TextQuestion>
        </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
        <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
          <CommentQuestion>sample string 3</CommentQuestion>
          <CommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
          </CommitQuestionsAnswersData>
          <Id>1</Id>
          <LevelStep>1</LevelStep>
          <QuestionCommit>1</QuestionCommit>
          <QuestionGroup>sample string 1</QuestionGroup>
          <QuestionId>1</QuestionId>
          <TextQuestion>sample string 2</TextQuestion>
        </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
      </CommitQuestionsData>
      <Email>sample string 2</Email>
      <Fio>sample string 1</Fio>
      <Gender>sample string 3</Gender>
      <GoodsName>sample string 7</GoodsName>
      <Id>1</Id>
      <Phone>1</Phone>
      <PosName>sample string 5</PosName>
      <ProcTime>2024-06-20T05:29:30.4505176+03:00</ProcTime>
      <QuestionnaireCommitId>1</QuestionnaireCommitId>
    </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit>
    <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit>
      <Age>64</Age>
      <Card>1</Card>
      <CardType>sample string 4</CardType>
      <ChequeNumber>sample string 6</ChequeNumber>
      <Client>1</Client>
      <CommitQuestionsData>
        <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
          <CommentQuestion>sample string 3</CommentQuestion>
          <CommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
          </CommitQuestionsAnswersData>
          <Id>1</Id>
          <LevelStep>1</LevelStep>
          <QuestionCommit>1</QuestionCommit>
          <QuestionGroup>sample string 1</QuestionGroup>
          <QuestionId>1</QuestionId>
          <TextQuestion>sample string 2</TextQuestion>
        </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
        <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
          <CommentQuestion>sample string 3</CommentQuestion>
          <CommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
            <QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
              <Free>true</Free>
              <Id>1</Id>
              <Text>sample string 1</Text>
            </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData.QuestionnaireCommitResultCommitQuestionsAnswersData>
          </CommitQuestionsAnswersData>
          <Id>1</Id>
          <LevelStep>1</LevelStep>
          <QuestionCommit>1</QuestionCommit>
          <QuestionGroup>sample string 1</QuestionGroup>
          <QuestionId>1</QuestionId>
          <TextQuestion>sample string 2</TextQuestion>
        </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit.QuestionnaireCommitResultCommitQuestionsData>
      </CommitQuestionsData>
      <Email>sample string 2</Email>
      <Fio>sample string 1</Fio>
      <Gender>sample string 3</Gender>
      <GoodsName>sample string 7</GoodsName>
      <Id>1</Id>
      <Phone>1</Phone>
      <PosName>sample string 5</PosName>
      <ProcTime>2024-06-20T05:29:30.4505176+03:00</ProcTime>
      <QuestionnaireCommitId>1</QuestionnaireCommitId>
    </QuestionnaireCommitResultResponse.QuestionnaireCommitResultCommit>
  </Commits>
  <TotalRows>1</TotalRows>
  <TotalRowsSelect>1</TotalRowsSelect>
</QuestionnaireCommitResultResponse>