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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	StartDate: 0001-01-01,
	EndDate: 0001-01-01,
	PeriodGroupBy: month
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	report: 
	[
		{
			Key: 
			{
				Date: 0001-01-01,
				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
		}
	}
}