Callbacks (သင့် server)
Game server က သင့် balance_url နှင့် callback_url သို့ POST လုပ်သည်။
သင်က MD5 sign verify လုပ်ပြီး wallet update ပြီးမှ response ပြန်ပေးရမည်။
Request / response နမူနာ → Your API Docs → Callback
Actions
| action | သင့် endpoint | When |
|---|---|---|
balance | balance_url | Launch / balance sync |
bet | callback_url | Player lost / wager debit |
win | callback_url | Player won (stake + profit credit) |
Incoming fields
| Field | Description |
|---|---|
system_key | Provider code |
action | balance | bet | win |
user_code | Player ID |
root_id | Site / agent ID |
transaction_id | Unique — idempotency key |
round_id | Game round |
wagered / payout / net / amount | Money fields |
balance | Balance hint after action |
sign | MD5 signature |
သင့် response
{
"status": 0,
"message": "OK",
"balance": 99500,
"transaction_id": "tx_..."
}
status သည် 0 (သို့ "0") ဖြစ်ရမည်။ balance ကို wallet sync အတွက် သုံးသည်။