Callbacks (သင့် server)

Game server က သင့် balance_url နှင့် callback_url သို့ POST လုပ်သည်။ သင်က MD5 sign verify လုပ်ပြီး wallet update ပြီးမှ response ပြန်ပေးရမည်။

Request / response နမူနာ → Your API Docs → Callback

Actions

actionသင့် endpointWhen
balancebalance_urlLaunch / balance sync
betcallback_urlPlayer lost / wager debit
wincallback_urlPlayer won (stake + profit credit)

Incoming fields

FieldDescription
system_keyProvider code
actionbalance | bet | win
user_codePlayer ID
root_idSite / agent ID
transaction_idUnique — idempotency key
round_idGame round
wagered / payout / net / amountMoney fields
balanceBalance hint after action
signMD5 signature

သင့် response

{
  "status": 0,
  "message": "OK",
  "balance": 99500,
  "transaction_id": "tx_..."
}

status သည် 0 (သို့ "0") ဖြစ်ရမည်။ balance ကို wallet sync အတွက် သုံးသည်။