Payment API
The payment API consists of a set of callbacks that needs to be implemented. These are endpoints our platform will do a HTTP POST Request towards to perform one of the three actions:
- Create bets
- Renfund bets
- Payout winnings (settle bets) The main schema for each callback is consistent in all games, however some games will have additional parameters for reporting purposes. When callbacks have been created and are ready to be tested, you should share them with your key account manager and he will activate them in the platform. (edited)
Responses
Success
If your endpoint return 200OK and no object with an error key, the callback will be completed and logged as successful in the Scout Gaming Platform.
Error
When you need to cancel a request for any reason you should return a non-2XX error, for instance HTTP400 Bad Request. In addition you should return an object with an error key which can be logged and displayed to the user when needed. For instance:
// HTTP Response 402 from callback
{
"error": "insufficient_funds"
}