- Success Processing =
"R0" - Failed Processing =
"R1" - Unauthorized Request =
"R2" - Validation Failed =
"R3" - Not Enough Balance =
"R4"
Seamless integration is a webhook-based model where your platform balance remains the single source of truth. The API provider sends real-time event notifications to your webhook endpoint for every game action (login, bet, win, loss, logout), and your system responds with updated balance information. No fund transfers are needed between platforms.
API provider sends six types of events to your webhook endpoint during gameplay:
| Event | Purpose | When It’s Called |
|---|---|---|
| Login Event | Authenticate player & get balance | Player starts session |
| Bet Event | Deduct bet amount | Player places a bet |
| Bet Cancel Event | Refund cancelled bet | Bet needs to be reversed |
| Result Event | Credit winnings | Round completes |
| Result Change Event | Adjust result | Result correction needed |
| Logout Event | End session | Player exits game |
| Webhook History | View webhook call history | For debugging and audit |
| Failed Notification | Failed webhook notifications | For troubleshooting failed webhook calls |
Always respond with appropriate response codes to indicate the status of the request.
"R0""R1""R2""R3""R4"Follow this order when implementing seamless integration:
Before starting implementation, ensure you have: