ApexERPHost

<back to all web services

LotteryCheck

Requires Authentication
The following routes are available for this service:
POST/POS/Lottery/Check/{LotteryCode}
POST/POS/Lottery/Check
LotteryCheck Parameters:
NameParameterData TypeRequiredDescription
LotteryCodepathstringNo
BranchIdbodyint?No
LotteryCheckResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformLoterityCheckNo
LoterityCheck Parameters:
NameParameterData TypeRequiredDescription
config_versionformstringNo
current_timeformDateTime?No
detailed_reasonformstringNo
draw_config_versionformstringNo
resultformstringNo
payoutformdecimalNo
total_prizeformdecimalNo
draw_prizesformList<DrawPrizes>No
taxesformList<LotteryTax>No
total_taxformdecimalNo
game_idformstringNo
game_nameformstringNo
serialformstringNo
descriptionformstringNo
HumanMessageformstringNo
DrawPrizes Parameters:
NameParameterData TypeRequiredDescription
draw_dateformDateTimeNo
draw_idformstringNo
draw_prizeformdecimalNo
draw_serieformstringNo
LotteryTax Parameters:
NameParameterData TypeRequiredDescription
TaxNameformstringNo
TaxAmountformdecimalNo

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 /POS/Lottery/Check/{LotteryCode} HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	LotteryCode: String,
	BranchId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Result: 
	{
		config_version: String,
		current_time: 0001-01-01,
		detailed_reason: String,
		draw_config_version: String,
		result: String,
		payout: 0,
		total_prize: 0,
		draw_prizes: 
		[
			{
				draw_date: 0001-01-01,
				draw_id: String,
				draw_prize: 0,
				draw_serie: String
			}
		],
		taxes: 
		[
			{
				TaxName: String,
				TaxAmount: 0
			}
		],
		total_tax: 0,
		game_id: String,
		game_name: String,
		serial: String,
		description: String,
		HumanMessage: String
	}
}