Rsl.Lotteries

<back to all web services

GetProjectsSalesStats

Get a the statistics of sales for a perticular project

The following routes are available for this service:
GET/caches/project/{projectId}/Report/Sales
GetProjectsSalesStats Parameters:
NameParameterData TypeRequiredDescription
projectIdpathstringNo
ProjectSalesStats Parameters:
NameParameterData TypeRequiredDescription
LotteryNameformstringNo
LotteryStatusformstringNo
TotalTicketsformint?No
TotalTicketsSoldformint?No
TotalLineAmountformdouble?No
PercentageSoldformdoubleNo
IsErrorformbool?No
ErrorMsgformstringNo
CreatedOnUTCformDateTimeOffset?No
ModifiedOnUTCformDateTimeOffset?No
TimestampUtcformDateTimeOffset?No

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.

GET /caches/project/{projectId}/Report/Sales HTTP/1.1 
Host: azs-stg-lotteries-web.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	lotteryName: String,
	lotteryStatus: String,
	totalTickets: 0,
	totalTicketsSold: 0,
	totalLineAmount: 0,
	percentageSold: 0,
	isError: False,
	errorMsg: String,
	createdOnUTC: 0001-01-01T00:00:00.0000000+00:00,
	modifiedOnUTC: 0001-01-01T00:00:00.0000000+00:00,
	timestampUtc: 0001-01-01T00:00:00.0000000+00:00
}