POST api/values/GainOperatorPeriod

Возращает средний чек и выручку Оператора\Партнёра\ТТ по месяцам

Request Information

URI Parameters

None.

Body Parameters

GainOperatorPeriodRequest
NameDescriptionTypeAdditional information
Operator

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

integer

None.

Partner

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

integer

None.

Pos

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

integer

None.

From

дата начала

date

None.

To

дата конца

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Operator": 1,
  "Partner": 2,
  "Pos": 3,
  "From": "2022-08-14T15:38:43.0550569+03:00",
  "To": "2022-08-14T15:38:43.0550569+03:00"
}

application/xml, text/xml

Sample:
<GainOperatorPeriodRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <From>2022-08-14T15:38:43.0550569+03:00</From>
  <Operator>1</Operator>
  <Partner>2</Partner>
  <Pos>3</Pos>
  <To>2022-08-14T15:38:43.0550569+03:00</To>
</GainOperatorPeriodRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GainOperatorPeriodResponse
NameDescriptionTypeAdditional information
GainOperatorPeriod

Collection of GainPeriod

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GainOperatorPeriod": [
    {
      "Month": 1,
      "AvgCheque": 2.0,
      "Gain": 3.0
    },
    {
      "Month": 1,
      "AvgCheque": 2.0,
      "Gain": 3.0
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<GainOperatorPeriodResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ErrorCode>1</ErrorCode>
  <GainOperatorPeriod>
    <GainPeriod>
      <AvgCheque>2</AvgCheque>
      <Gain>3</Gain>
      <Month>1</Month>
    </GainPeriod>
    <GainPeriod>
      <AvgCheque>2</AvgCheque>
      <Gain>3</Gain>
      <Month>1</Month>
    </GainPeriod>
  </GainOperatorPeriod>
  <Message>sample string 2</Message>
</GainOperatorPeriodResponse>