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

Get sales statistics for specified time periods

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionID

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

string

Required

periodType

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

string

Required

period

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

integer

Required

currencyType

Тип валюты (WMZ-R-E-U)

string

Required

Body Parameters

None.

Response Information

Resource Description

SalesStatisticsResponse
NameDescriptionTypeAdditional information
retval

Return code (0 - ok, otherwise - error)

integer

None.

desc

Text description of the return code (error description)

string

None.

statistics

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>