Edge cases and operations
Short answers to the questions that come up in production.
Money#
A win for a closed or unknown player
Closed player: credit it, code 0. Unknown player: return HTTP 500 and alert your team. Code 2 on a win is final and the money is lost.
Decimals and rounding
Amounts are decimal strings. SOFTGAMING and ALGNET amounts always have 2 decimals; the others arrive as the provider wrote them. Store minor units, not floating point. Return balance with at most 2 decimals.
Parallel callbacks
Callbacks of one player, and copies of one callback, can arrive at the same time and out of order, even a rollback before its bet. Lock the player row.
GGR limit
If your account has a GGR limit and reaches it, AGIXX refuses new bets to the provider and you receive no callback for them. Balance, win and rollback keep arriving.
Reconciliation
There is no transactions endpoint for clients. Your own stored transactions are the source for your side; ask integration@agixx.net for AGIXX transaction and callback logs of a period.
Sessions#
How long a session lives
AGIXX does not close a session to callbacks. A win or rollback can arrive long after the player left the game: always process it.
gameUrl
One gameUrl per launch, used at once. See Using gameUrl.
Secret rotation
Open games switch to the new secret at once. See rotation.