ApexERPHost

<back to all web services

LotteryValidate

Requires Authentication
The following routes are available for this service:
POST/POS/Lottery/Validate
POST/POS/Lottery/Validate/{LotteryCode}/{UniqueReqId}
LotteryValidate Parameters:
NameParameterData TypeRequiredDescription
LotteryCodepathstringNo
UniqueReqIdpathlongNo
BranchIdbodyint?No
LotteryValidateResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformLoterityValidateNo
LoterityValidate 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
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 .csv suffix or ?format=csv

HTTP + CSV

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

POST /POS/Lottery/Validate HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"LotteryCode":"String","UniqueReqId":0,"BranchId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
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":"\/Date(-62135596800000-0000)\/","detailed_reason":"String","draw_config_version":"String","result":"String","payout":0,"total_prize":0,"draw_prizes":[{"draw_date":"\/Date(-62135596800000-0000)\/","draw_id":"String","draw_prize":0,"draw_serie":"String"}],"taxes":[{"TaxName":"String","TaxAmount":0}],"total_tax":0,"game_id":"String","serial":"String","description":"String","HumanMessage":"String"}}