Transfer
Webhook URL to transfer data that you ever set in the backoffice.
Request
POST https://transferWebhookURL
Parameter | Type | Description |
---|---|---|
transferWebhookURL | String | Webhook URL to transfer data that you ever set in the backoffice. |
Payload
Parameter | Type | Description |
---|---|---|
betId | String | Bet ID |
username | String | Player's username |
currency | String | Currency |
amount | String | Real bet amount |
timestamp | String | Betting timestamp |
ip | String | User IP |
type | placeBet, betSettlement, betUpdate, betCancelled, betRollback | Transfer type |
betType | normal, step, combo | Bet type |
payout | Number | When "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, cancelled | Bet status |
walletType | seamless, transfer | Using the webhook is seamless type. Otherwise, it is a transfer type. |
remark | String | Remark |
matches | Match[] | Match of sport betting |
Response
Parameter | Type | Description |
---|---|---|
username | String | Player's username |
currency | String | Currency |
amount | String | Player's balance |
code | Number | Error code |
msg | String | Error message |
Error code
Code | Description |
---|---|
0 | Success |
1000 | User account doesn’t exist |
1001 | Invalid currency |
1002 | Invalid amount |
1003 | Locked account |
1004 | Insufficient balance |
1005 | General error |
1006 | Decryption error |
1007 | Session expired error |
1008 | BetId duplicate |
1009 | BetId not found |
1010 | flow Error |
9999 | System error |
Example
Request
POST https://example-webhook/transferPayload
{
"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
}