Integration for the Game Aggregator
Trueplay endpoint
Send game transactions
POST
https://{operator-name}.proxy.trueplay.io/api/v1/accept
The method to send game traffic from operator to Trueplay.
Headers
X-API-KEY*
String
Operator key issued by TruePlay to access TruePlay API
Request Body
operatorUserId*
String
Id of user on Operator side
"121242"
transactionId*
String
Id of user transaction
"fa732e77-db74-44b8-b6723-be9d37a13b40"
referenceTransactionId*
String
Id of game transactions (BET | WIN) . This is required to be sent for such types of game transactions as ( REFUND | ROLLBACK )
null
type*
String
Type of game transaction (BET | WIN | ROLLBACK | BONUS_BET | BONUS_WIN)
"BET"
gameProvider*
String
-
"PRAGMATIC"
gameCode*
String
-
"165"
gameName*
String
-
"Pharaohs Gold 20"
gameType*
String
-
"Slot"
currency*
String
currency of game transaction
"USD"
amount*
Integer
amount of game transaction
2
Game Aggregator endpoint
Send Copy Stake transactions
POST
https://{operatorbaseurl}/player-event
The method to send game transactions in functionality "Copy Stake" from Trueplay side to Game Aggregator
Headers
X-REQUEST-SIGNATURE*
String
Request signature, Base64(HmacSHA512(SecretKey, MD5(request body))) Event "data" is individual for each request
Request Body
operatorUserId*
String
Id of user on Operator side
"john12345"
requestId*
String
Id of request
"uuid"
createdAt*
String
Date of game transactions
"2022-08-18 06:42:45"
type*
String
Type of Event (COPY_BET | COPY_WIN | COPY_ROLLBACK )
COPY_BET
data*
String
-
{ "eventParam":"eventValue" }
Type of "Copy Stake" events
COPY_BET
{
"type": "COPY_BET",
"data": { "gameProvider": Pragmatic, "gameCode": 123, "gameName": Banana, "gameType": Slot, "currency": Usd, "amount": 10 } }
COPY_WIN
{
"type": "COPY_WIN",
"data": { "gameProvider": Pragmatic, "gameCode": 123, "gameName": Banana, "gameType": Slot, "currency": Usd, "amount": 10 } }
COPY_ROLLBACK
{
"type": "COPY_ROLLBACK",
"data": { "gameProvider": Pragmatic, "gameCode": 123, "gameName": Banana, "gameType": Slot, "currency": Usd, "amount": 10 } }
Last updated