Callback Configuration
Overview
Section titled “Overview”Beexar needs to know where to send wallet requests during gameplay. You configure 4 callback URLs in the Beexar backoffice for each operator.
Required Callbacks
Section titled “Required Callbacks”| Callback | Purpose | Endpoint | See |
|---|---|---|---|
| Balance URL | Fetch player balance | POST /balance | /balance |
| BetWin URL | Debit/credit player account (atomic) | POST /betwin | /betwin |
| Rollback URL | Reverse transactions | POST /rollback | /rollback |
| Finish URL | Round completion signal | POST /finish | /finish |
Example Configuration
Section titled “Example Configuration”| Setting | URL |
|---|---|
| Balance URL | https://api.casino.com/beexar/balance |
| BetWin URL | https://api.casino.com/beexar/betwin |
| Rollback URL | https://api.casino.com/beexar/rollback |
| Finish URL | https://api.casino.com/beexar/finish |
URL Requirements
Section titled “URL Requirements”| Requirement | Details |
|---|---|
| Protocol | HTTPS required |
| Method | All callbacks use POST |
| Content-Type | application/json |
| Availability | URLs must be publicly accessible from Beexar servers |
| Response time | Should respond within 10 seconds |
| Authentication | X-REQUEST-SIGN header with HMAC-SHA256 signature |
URL Patterns
Section titled “URL Patterns”You can use different URL patterns depending on your architecture:
Separate Endpoints
Section titled “Separate Endpoints”balance_url: https://api.casino.com/wallet/balancebetwin_url: https://api.casino.com/wallet/betwinrollback_url: https://api.casino.com/wallet/rollbackfinish_url: https://api.casino.com/wallet/finishSingle Base Path
Section titled “Single Base Path”balance_url: https://api.casino.com/beexar/v1/balancebetwin_url: https://api.casino.com/beexar/v1/betwinrollback_url: https://api.casino.com/beexar/v1/rollbackfinish_url: https://api.casino.com/beexar/v1/finishConfiguring in the Backoffice
Section titled “Configuring in the Backoffice”Callback URLs are configured per-operator in the Beexar backoffice:
- Log in to the Beexar backoffice
- Navigate to Operators and select your operator
- Go to the Callback URLs tab
- Enter all 4 callback URLs
- Save the configuration
See the Backoffice: API Keys & Callbacks guide for step-by-step instructions with screenshots.
Changes take effect immediately for new game sessions. Existing sessions continue using the URLs that were configured at session creation time.
Beexar Retry Behavior
Section titled “Beexar Retry Behavior”When Beexar calls your callback URLs and encounters an error:
| Scenario | Beexar Action |
|---|---|
| Connection refused | Retry up to 3 times, then return error to player |
| Timeout | Retry up to 3 times, then return error to player |
| HTTP 500 | Retry up to 3 times, then return error to player |
HTTP 400 (api_code 100) | No retry, show “insufficient funds” to player |
| HTTP 400 (other) | No retry, log error |
| Invalid JSON response | No retry, return error to player |
Health Monitoring
Section titled “Health Monitoring”We recommend implementing monitoring for your callback endpoints:
- Uptime: 99.9% availability target
- Latency: P99 < 1 second, P50 < 200ms
- Error rate: < 0.1% non-business errors (exclude code 100)
- Alerting: Set up alerts for response time spikes and error rate increases