1.
First the client place bet, i send you request
https://oguzhan.dev.xpressgaming.net/remote/v1/universalsoft/ POST=accion=vent
a_tck_API&token=xxxxxxxxxxxxxxxxxxxxxxxxx&id_tran=YYYYYYY &monto=50.00"
2. You response if the client have balance
{"resp":"ok","balance":95.8800,"saldo_ant
":100.8800,"idtx":"HHHHHHHHH","serial":anything,"id_us":0}"
2.1 if resp is ok I send you final_tck_api
if is ok the client have balance I save the tck and confirm final_tck_api
POST YOU ENPOINT
“accion=final_tck_API&token=c1cf0e7cb919e3d5284709cd8eefe585ed854cf21
a0a28d8815998e9767fe6eb&id_tran=
YYYYYYY&monto=50.00&serial=61938082&hora=1628897451&id_us=101161
6&idtx=HHHHHHHHH&tck=[{"apuesta":"w","carrera":"2","pista":"Del
Mar","monto":10.00,"dividendo":0.00,"id_pista":5,"id_j":3501403,"caballos":"1.-
Ally Cay","cab":"1"},{"apuesta":"w","carrera":"2","pista":"Del
Mar","monto":10.00,"dividendo":0.00,"id_pista":5,"id_j":3501404,"caballos":"2.-
Lady Lingo","cab":"2"},{"apuesta":"w","carrera":"2","pista":"Del
Mar","monto":10.00,"dividendo":0.00,"id_pista":5,"id_j":3501405,"caballos":"3.-Sit
Down Lucy ","cab":"3"},{"apuesta":"w","carrera":"2","pista":"Del
Mar","monto":10.00,"dividendo":0.00,"id_pista":5,"id_j":3501406,"caballos":"4.-
Socially Distant","cab":"4"},{"apuesta":"w","carrera":"2","pista":"Del
Mar","monto":10.00,"dividendo":0.00,"id_pista":5,"id_j":3501407,"caballos":"5.-
Dashing Shire","cab":"5"}]"
YYYYYYY Serial temp
id_us=1011616 id client of UniversalHorse
61938082 Definitive serial
tck Detail of Tickect
id_pista id-Racecourse
id_j id_jugada or id individual bets
HHHHHHHHH any serial that you generate or in blank
Translate
cab= number horse, dividendo=Odds “if apply”, Monto=Amount Bet,
caballos=number and horse name, Carrera=race number, apuesta=type bet
(w/p/s/ex/tr/su/pk2,pk3)
if is fo then the client don’t have balance
{"resp":"fo","balance":0,"saldo":0,"idtx":" HHHHHHHHH ","serial":””,"id_us":0}"
When the race is closed and the results are processed
1.- I send one request
GET https: // [yourserver_ip] / [you_end_point]? accion = status_tck & id = XXXXXXXXXXXXX
accion = status_tck
Id= Number operation XXXXXXXXXXXXX
2.- you make request to universal end point
Send param woth POST
accion= status_tck_API
id_operacion= XXXXXXXXXXXXX
2.1 I response with list json of bets winners or returns
{“resp”:”ok”
data:[{
“id”:number,
“id_us”:numeric (UniversalHorse client ID),
“monto”:amount win or returned,
“estatus”:”G” Win, “D” refound,
“fecha”:unix epoch date,
“serial”:serial number,
“id_jugada”:id place bets}]}
3.- Later that you procces the list confirm
Send request POST to End Point UniversalHorse
accion = confirma_status_API
id_operacion= XXXXXXXXXXXXX