Skip to main content

Transfer

Webhook URL to transfer data that you ever set in the backoffice.

Request

POST https://transferWebhookURL

ParameterTypeDescription
transferWebhookURL*StringWebhook URL to transfer data that you ever set in the backoffice.

Payload

ParameterTypeDescription
betId*StringBet ID
username*StringPlayer's username
currency*StringCurrency
amount*StringReal bet amount
timestamp*StringBetting timestamp
ip*StringUser IP
type*placeBet, betSettlement, betUpdate, betCancelled, betRollbackTransfer type
betType*normal, step, comboBet type
payout*NumberWhen "betSettlement", If player is win. The value is (+) , it means the agent has to pay the player. If player is lose. The value is 0.
It is posible to be (-) in some case in "betRollback". it means the player has to pay the agent back.
status*running, waiting, rejected, done, cancelledBet status
walletType*seamless, transferUsing the webhook is seamless type. Otherwise, it is a transfer type.
remark*StringRemark
matches*Match[]Match of sport betting

Response

ParameterTypeDescription
usernameStringPlayer's username
currencyStringCurrency
amountStringPlayer's balance
codeNumberError code
msgStringError message

Error code

CodeDescription
0Success
1000User account doesn’t exist
1001Invalid currency
1002Invalid amount
1003Locked account
1004Insufficient balance
1005General error
1006Decryption error
1007Session expired error
1008BetId duplicate
1009BetId not found
1010flow Error
9999System error

Example

Request

POST https://example-webhook/transfer

Payload
{
"betId": "2571410#1643185418325YV82081",
"username": "test-player",
"currency": "THB",
"amount": 20,
"timestamp": "2022-11-13T19:32:56.588Z",
"ip": "::1",
"type": "placeBet", // 'placeBet', 'betSettlement', 'betUpdate', 'betCancelled', 'betRollback'
"betType": "normal",
"payout": 38,
"status": "waiting", // 'running', 'waiting', 'rejected', 'done', 'cancelled',
"walletType": "seamless",
"remark": "",
"matches": [
{
"sportType": "FOOTBALL",
"table": "today",
"leagueID": 71461,
"matchId": 32986743,
"riskLevel": 0,
"betType": "ah", // ah , ou , oe , 1x2 , parlay , combo
"option": "home", // home , away , draw
"score": "0:0",
"value": "-0.5",
"price": "0.92",
"ahd": "h",
"gameDate": "2022-11-13T19:30:00.000Z",
"status": "waiting", // 'running', 'waiting', 'rejected', 'done', 'cancelled', 'win' , 'haft_win' , 'draw ' , 'lose' , 'haft_lose'
"team": {
"en": { "h": "Juventus", "a": "Lazio" },
"th": { "h": "ยูเวนตุส", "a": "ลาซิโอ" },
"cn": { "h": "尤文图斯", "a": "拉齐奥" },
"tw": { "h": "Juventus", "a": "Lazio" }
},
"leage": {
"en": "Ukraine Premier League",
"th": "ยูเครน พรีเมียร์ ลีก",
"cn": "乌克兰足球超级联赛",
"tw": "Ukraine Premier League"
},
"info": {
"liveTime": "2H 9",
"minusTime": "54",
"home": "0",
"away": "0",
"homeRadCard": "0",
"awayRadCard": "0",
"isHalfTime": false
}
}
]
}
Response
{
"code": 0,
"msg": "success",
"username": "test-player",
"currency": "THB",
"amount": 1000
}