curl --request POST \
--url https://api.example.com/dt/callback/sync_credit \
--header 'Content-Type: application/json' \
--data '
{
"platform_id": "H88",
"token": "E47A56947DF6DA25B6F95C3BFE5748E7",
"uuid": "lobby1-82818443591811",
"account": "bentest",
"info": [
{
"transaction_id": "005-200926080808-0000005RB",
"order_id": "A003220118145511020000005",
"type": 23,
"canceled_id": "005-200926080808-0000005",
"credit": 2000,
"target_wallet": 0,
"proposal_id": "954531",
"ip": "127.0.0.1",
"order_detail": {
"room_account": "aad144",
"table_id": "A003",
"gmcode": "A003220118",
"in_proposal": 1,
"game_type": "BAC",
"play_type": 1,
"amount": 2000,
"valid_amount": 0,
"win": 0,
"flag": 1,
"round_detail": "8 3 23 ; 45 26 17 | 4 | 1 | 8 | 0",
"create_time": 1668580007,
"reckon_time": 1668580007,
"last_update_time": 1668580007
},
"rolling_unit": 1000,
"ratio": 1
}
]
}
'{
"code": 0,
"message": "success",
"uuid": "lobby1-82818443591811",
"timestamp": 1668580007001,
"data": {
"account": "c001",
"credit": 115,
"reserved": 100,
"balance": 215,
"platform_id": "H88",
"rolling_unit": 100,
"success_id": [
"005-200926080808-0000005",
"005-200926080808-0000006"
],
"fail_id": [
"005-200926080808-0000007"
]
}
}注單狀態相關異動所需同步的玩家餘額變動(由 vendor 實作)
此 api 將不停重試直到成功,實作方需做好判斷,避免重複加款
實作方需做好同帳號多條 api 併發請求的處理
若已處理過,回傳成功,於 response message 內說明已處理過該派彩
curl --request POST \
--url https://api.example.com/dt/callback/sync_credit \
--header 'Content-Type: application/json' \
--data '
{
"platform_id": "H88",
"token": "E47A56947DF6DA25B6F95C3BFE5748E7",
"uuid": "lobby1-82818443591811",
"account": "bentest",
"info": [
{
"transaction_id": "005-200926080808-0000005RB",
"order_id": "A003220118145511020000005",
"type": 23,
"canceled_id": "005-200926080808-0000005",
"credit": 2000,
"target_wallet": 0,
"proposal_id": "954531",
"ip": "127.0.0.1",
"order_detail": {
"room_account": "aad144",
"table_id": "A003",
"gmcode": "A003220118",
"in_proposal": 1,
"game_type": "BAC",
"play_type": 1,
"amount": 2000,
"valid_amount": 0,
"win": 0,
"flag": 1,
"round_detail": "8 3 23 ; 45 26 17 | 4 | 1 | 8 | 0",
"create_time": 1668580007,
"reckon_time": 1668580007,
"last_update_time": 1668580007
},
"rolling_unit": 1000,
"ratio": 1
}
]
}
'{
"code": 0,
"message": "success",
"uuid": "lobby1-82818443591811",
"timestamp": 1668580007001,
"data": {
"account": "c001",
"credit": 115,
"reserved": 100,
"balance": 215,
"platform_id": "H88",
"rolling_unit": 100,
"success_id": [
"005-200926080808-0000005",
"005-200926080808-0000006"
],
"fail_id": [
"005-200926080808-0000007"
]
}
}