🪝 Handling Webhooks
Best Practices
Bettor Events
- 👤 ✅ bettor.created
- Be sure to store the
bettorId
alongside theinternalId
in your database.
- Be sure to store the
BettorAccount Events
- 📱✅ bettorAccount.verified
- If you are creating custom Bettor Account Management functionality, use this endpoint to keep the account status up to date.
- 📱⚠️bettorAccount.unverified
- Use this endpoint to notify users when there is an issue with their account.
- 📱 ❌ bettorAccount.inaccessible
- Use this endpoint to update any internal representation of a users' status and permissions.
RefreshResponse Events
-
- Be sure to handle the various
status
codes on the 🔄 Refresh Response objects.
It's recommended to process the betSlips in the refreshResponse after responding with a 200 to confirm receipt of the webhook. The webhook connection will timeout if the response takes too long.
- Be sure to handle the various
Updated about 1 year ago