TeleportService

<back to all web services

Reports_DocumentSalesStatistic

Requires Authentication
The following routes are available for this service:
POST, GET/Reports_DocumentSalesStatistic
Reports_DocumentSalesStatistic Parameters:
NameParameterData TypeRequiredDescription
StartDatebodyDateTimeNo
EndDatebodyDateTimeNo
PeriodGroupBybodyPeriodGroupByNo
PeriodGroupBy Enum:
month
week
day
DocumentSalesStatisticResponce Parameters:
NameParameterData TypeRequiredDescription
reportformList<DocumentSalesStatisticDto>No
ResponseStatusformResponseStatusNo
DocumentSalesStatisticDto Parameters:
NameParameterData TypeRequiredDescription
KeyformKeyNo
TotalSumformdecimalNo
TotalQuantityformdecimalNo
Key Parameters:
NameParameterData TypeRequiredDescription
DateformDateTimeNo
ContactformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Reports_DocumentSalesStatistic HTTP/1.1 
Host: wbs.e-teleport.ru 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","PeriodGroupBy":"month"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"report":[{"Key":{"Date":"0001-01-01T00:00:00.0000000","Contact":"String"},"TotalSum":0,"TotalQuantity":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}