POST api/values/ClientOperatorPeriod

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

Request Information

URI Parameters

None.

Body Parameters

ClientOperatorPeriodRequest
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:16:10.5098389+03:00",
  "To": "2022-08-14T15:16:10.5098389+03:00"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ClientOperatorPeriodResponse
NameDescriptionTypeAdditional information
ClientOperatorPeriod

новых клиентов за период?

Collection of ClientPeriod

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ClientOperatorPeriod": [
    {
      "Month": 1,
      "ClientQty": 2
    },
    {
      "Month": 1,
      "ClientQty": 2
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ClientOperatorPeriodResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <ClientOperatorPeriod>
    <ClientPeriod>
      <ClientQty>2</ClientQty>
      <Month>1</Month>
    </ClientPeriod>
    <ClientPeriod>
      <ClientQty>2</ClientQty>
      <Month>1</Month>
    </ClientPeriod>
  </ClientOperatorPeriod>
  <ErrorCode>1</ErrorCode>
  <Message>sample string 2</Message>
</ClientOperatorPeriodResponse>