ezugi api: Enforce Self-Exclusion Across Live Sessions
An ezugi api integration needs more than a successful game launch and accurate wallet callbacks. A player may activate self-exclusion while a live casino session remains open in another browser. If your platform only checks eligibility at login, that session could continue attempting wagers. The practical challenge is to stop new gambling activity without blocking valid credits, refunds, or reconciliation for bets already accepted.
This article outlines an operator-side control design and acceptance tests. It does not assume that Ezugi or an aggregator exposes particular endpoints, event fields, or session-revocation capabilities. Confirm those details against your contracted integration specification before implementation.
Why closing the lobby is not enough
Removing a game tile or logging a player out of your website changes the operator interface. It does not necessarily invalidate an embedded game session, close a second device, or prevent a previously issued credential from being used.
A live casino integration can involve several independently timed components:
- The account service records the self-exclusion request.
- The operator frontend removes gambling access.
- A provider session remains active until expiration or revocation.
- The wallet receives delayed or concurrent transaction requests.
- Reporting processes continue receiving round outcomes.
Treat self-exclusion as an authoritative account restriction, not a frontend preference. Enforce it wherever new gambling authorization can occur, while preserving the financial history of existing transactions.
Your legal and compliance teams should define the applicable exclusion scope, effective timing, and permitted account functions. Technical teams then need to make those requirements testable.
Design ezugi api controls around transaction purpose
A blanket rule that rejects every callback for an excluded account is unsafe. It can strand winnings, prevent refunds, and create permanent differences between operator and provider records.
Instead, classify requests by what they do economically. The exact mapping depends on the integration contract; request names alone are not sufficient.
New gambling authorization
Reject requests that authorize new exposure once the restriction is effective. This includes fresh bets and, where supported, additional stakes within an existing round.
Do not automatically allow an additional stake just because its round began before exclusion. A decision to increase exposure is different from receiving the result of an already accepted wager.
Existing financial obligations
Continue processing valid settlements, refunds, and reversals associated with previously accepted transactions. Authenticate them, enforce idempotency, and verify their relationship to the ledger as usual.
A credit should not reactivate gambling access. Whether funds can be withdrawn or require additional review is a separate account-management and compliance question.
Ambiguous or combined operations
Some integrations may represent multiple economic actions in one message. Establish how a combined settlement-and-bet operation behaves when the settlement is permitted but the new stake is prohibited.
Do not invent partial-success semantics. If the documented protocol cannot safely express the required outcome, resolve that limitation before launch.
Make restriction checks atomic with wager acceptance
Consider this sequence:
- A wallet worker reads the account as eligible.
- The player activates self-exclusion.
- The restriction service saves the change.
- The wallet worker commits a new stake using its earlier eligibility result.
A fast eligibility check does not prevent this race. The check and the authorization decision need a shared consistency boundary.
One implementation option is to serialize restriction changes and wager authorization through the same account-level database lock. Another is a versioned conditional write that commits only if the account remains eligible at the expected version. These are design patterns, not presumed provider features.
The important property is that restriction changes and new wager acceptance have a deterministic order. A cache invalidation message alone cannot establish that order.
Define the acceptance boundary explicitly
Document when a wager becomes accepted under your integration agreement. Is it the successful wallet authorization response, or another contractually defined event? The answer determines how races and delayed messages must be handled.
Do not use an unverified client timestamp to backdate acceptance. Equally, do not silently void a valid, previously accepted wager because its settlement arrives after exclusion.
If your wallet is not the authoritative acceptance point, obtain the provider-side enforcement and reconciliation rules needed to close the gap.
Revoke sessions without relying on revocation alone
After recording the restriction, invalidate operator-side launch credentials and prevent new real-money launches. Identify all sessions associated with the restricted account, not just the browser that submitted the request.
Where the integration supports provider-side termination, issue the documented revocation request and track its result. Where it does not, document the limitation and establish a compliant alternative before enabling the service.
Use session revocation as an additional safeguard, not as a substitute for wager authorization controls. Network failures, delayed processing, and already transmitted requests can outlast a session termination attempt.
Maintain enough information to connect:
- The operator account and applicable exclusion scope.
- Provider-facing player identifiers.
- Active session identifiers and their creation times.
- The restriction record and policy version.
- Revocation attempts, acknowledgments, and failures.
Protect this information with appropriate access controls. Operational logs should not expose reusable launch credentials or unnecessary personal data.
Handle retries and delayed messages correctly
Idempotency becomes especially important when account status changes between an original request and its retry.
Suppose a wager was successfully accepted, its response was lost, and the identical request is retried after exclusion. The retry must not create another debit. For a verified duplicate, return the protocol-defined result consistent with the original transaction; do not reinterpret it as a fresh wager solely because the account is now restricted.
Conversely, a previously unseen request is not an accepted wager merely because it carries an older round identifier. Evaluate it against the documented acceptance rules and current authoritative restriction state.
Match duplicates using the contractually defined identifier scope, and check that immutable transaction details agree. An identifier reused with a different amount or account is a conflict, not a harmless retry.
Unknown settlement references need an explicit reconciliation path. Do not discard them simply because the player is excluded, and do not credit them without the validation your settlement model requires.
Build a focused acceptance test pack
Test with controlled accounts and sandbox funds before production. Ask your integration partner to help reproduce timing-sensitive cases that your own harness cannot simulate.
Access and concurrency tests
- Activate exclusion with two live sessions open; confirm neither can authorize a fresh stake.
- Race a restriction update against a wager request; verify deterministic ordering and inspect the ledger.
- Attempt a launch using an unused credential issued before exclusion.
- Simulate revocation timeout; confirm wallet enforcement remains effective.
- Make the authoritative restriction check unavailable; confirm new wagers fail closed with documented retry behavior.
Financial continuity tests
- Settle a wager accepted before exclusion; confirm the valid credit posts once.
- Retry an accepted debit after exclusion; confirm no additional debit occurs.
- Submit a fresh additional stake in an existing round; confirm the restriction applies.
- Deliver a legitimate refund after session termination; confirm it remains processable.
- Reuse a transaction identifier with altered details; confirm conflict handling and an auditable outcome.
Record the expected response, ledger effect, and evidence for every case. A screenshot showing a closed game window is not sufficient proof.
Agree ownership before production
With GamingAPI, operators can aggregate access through one API with a seamless wallet. That simplifies connectivity, but it does not remove the need to agree who owns restriction enforcement at each boundary.
Use the integration review to confirm session controls, transaction semantics, exclusion scope, and incident escalation. If you are assessing Ezugi access through GamingAPI, contact the team to verify current availability and the relevant technical requirements rather than assuming every studio has identical controls.
Define alerts for fresh wager acceptances after the restriction boundary, failed revocations, and unresolved financial references. An alert about a blocked attempt is useful; evidence of an accepted prohibited wager requires immediate investigation.
FAQ
Should self-exclusion block all wallet callbacks?
No. Block new gambling authorization while preserving valid settlements, refunds, and reversals for accepted transactions. Validate every callback under the documented protocol.
Is provider session termination sufficient?
Not alone. Termination can be delayed or fail, and requests may already be in transit. Enforce restrictions at the authoritative wager-acceptance boundary as well.
Can a player finish an existing round after exclusion?
Separate settlement from further participation. An accepted wager may still need settlement, while any action creating additional exposure requires restriction enforcement. Apply the relevant legal requirements and agreed integration rules.