GET api/salesagentstatistics/{sessionID}/{periodType}/{period}/{currencyType}

Получает статистику по продажам агентских товаров за определенные промежутки времени

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

ID сессии (получается при логине)

string

Required

periodType

Тип периода (days, weeks, months)

string

Required

period

Кол-во возвращаемых периодов

integer

Required

currencyType

Тип валюты (WMR)

string

Required

Body Parameters

None.

Response Information

Resource Description

SalesStatisticsResponse
NameDescriptionTypeAdditional information
retval

Код возврата (0 - ок, иначе - ошибка)

integer

None.

desc

Текстовая расшифровка кода возврата (описание ошибки)

string

None.

statistics

Статистика

Collection of SalesStatistic

None.

Response Formats

application/json, text/json

Sample:
{
  "retval": 1,
  "desc": "sample string 2",
  "statistics": [
    {
      "Period": "sample string 1",
      "Amount": 2.1,
      "Count": 3
    },
    {
      "Period": "sample string 1",
      "Amount": 2.1,
      "Count": 3
    }
  ]
}

application/xml, text/xml

Sample:
<salesstatistics.response>
  <retval>1</retval>
  <desc>sample string 2</desc>
  <statistics>
    <period>sample string 1</period>
    <amount>2.1</amount>
    <count>3</count>
  </statistics>
  <statistics>
    <period>sample string 1</period>
    <amount>2.1</amount>
    <count>3</count>
  </statistics>
</salesstatistics.response>