POST api/values/PosStatistics

Статистика по торговой точке за период

Request Information

URI Parameters

None.

Body Parameters

PosStatisticsRequest
NameDescriptionTypeAdditional information
Pos

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

integer

None.

Start_date

начало периода

date

None.

End_date

окончание периода

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Pos": 1,
  "Start_date": "2022-08-16T22:20:51.8525989+03:00",
  "End_date": "2022-08-16T22:20:51.8525989+03:00"
}

application/xml, text/xml

Sample:
<PosStatisticsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <End_date>2022-08-16T22:20:51.8525989+03:00</End_date>
  <Pos>1</Pos>
  <Start_date>2022-08-16T22:20:51.8525989+03:00</Start_date>
</PosStatisticsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PosStatisticsResponse
NameDescriptionTypeAdditional information
Clients

новых клиентов?

integer

None.

Clients_all

всего клиентов?

integer

None.

Purchases

всего покупок

integer

None.

PurchaseSum

сумма покупок

decimal number

None.

Refunds

всего возратов

integer

None.

RefundSum

сумма возратов

decimal number

None.

SpentSum

всего потрачено клиентам

decimal number

None.

Charged

всего начислено бонусов

decimal number

None.

Redeemed

всего списано бонусов

decimal number

None.

ChargeRefund

начислено возвратов?

decimal number

None.

RedeemRefund

списано возвратов?

decimal number

None.

Balance

баланс бонусных баллов

decimal number

None.

Paysum

сумма к оплате

decimal number

None.

ErrorCode

код ошибки

integer

None.

Message

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

string

None.

PurchasesClient

Покупок клиентом

integer

None.

PurchaseSumClient

Сумма покупок клиента

decimal number

None.

RefundsClient

Возратов у клиента

integer

None.

RefundSumClient

Сумма возвратов у клиента

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Clients": 1,
  "Clients_all": 2,
  "Purchases": 3,
  "PurchaseSum": 4.0,
  "Refunds": 5,
  "RefundSum": 6.0,
  "SpentSum": 7.0,
  "Charged": 8.0,
  "Redeemed": 9.0,
  "ChargeRefund": 10.0,
  "RedeemRefund": 11.0,
  "Balance": 12.0,
  "Paysum": 13.0,
  "ErrorCode": 14,
  "Message": "sample string 15",
  "PurchasesClient": 16,
  "PurchaseSumClient": 17.0,
  "RefundsClient": 18,
  "RefundSumClient": 19.0
}

application/xml, text/xml

Sample:
<PosStatisticsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Models">
  <Balance>12</Balance>
  <ChargeRefund>10</ChargeRefund>
  <Charged>8</Charged>
  <Clients>1</Clients>
  <Clients_all>2</Clients_all>
  <ErrorCode>14</ErrorCode>
  <Message>sample string 15</Message>
  <Paysum>13</Paysum>
  <PurchaseSum>4</PurchaseSum>
  <PurchaseSumClient>17</PurchaseSumClient>
  <Purchases>3</Purchases>
  <PurchasesClient>16</PurchasesClient>
  <RedeemRefund>11</RedeemRefund>
  <Redeemed>9</Redeemed>
  <RefundSum>6</RefundSum>
  <RefundSumClient>19</RefundSumClient>
  <Refunds>5</Refunds>
  <RefundsClient>18</RefundsClient>
  <SpentSum>7</SpentSum>
</PosStatisticsResponse>