KNOWLEDGE WALLET & TRANSACTIONS
Ledger Reconciliation and Transaction Disputes
A provider may report a settled win while the operator wallet shows no credit. Learn how to match financial transaction IDs, verify report completeness, compare balances, classify discrepancies and resolve player disputes without creating unsupported refunds.
This is a reference integration model, not a specification for CASINO-AGG or any particular provider. Actual request formats, party responsibilities and settlement rules depend on the agreed API contract.
Reconciliation proves whether provider and wallet records agree
A player says a win never arrived. The game screen shows a payout, the provider's transaction report includes a win, but the operator's wallet balance has not changed. Which record is authoritative? Each system is authoritative for a different fact: the provider can report game settlement, while the operator ledger proves the money actually posted to the player's account. Financial reconciliation compares those facts by stable identity, amount, currency and state, then investigates differences before correcting money.
A casino wallet commonly handles bets, wins, refunds, reversals and adjustments as separate monetary events. The provider may also report sessions, rounds, bonus events or derived net results. Reconciliation must not add a round's net result to the same bet and win postings a second time. Neither an HTTP success code nor an animation of a completed spin is sufficient proof of a committed ledger entry.
| Evidence layer | Question it answers | What it cannot prove alone |
|---|---|---|
| Provider gaming-activity report | What the provider says it processed | That the operator committed the exact wallet effect |
| Operator immutable ledger | Which debits and credits actually posted | That a provider has the same accepted round history |
| Callback and response trail | What was requested, authenticated and acknowledged | That a lost response implies a missing posting |
| Game-round status or replay | What the game reports about outcome and presentation | That a financial adjustment was authorized |
| Reconciliation exception record | What disagrees and who is investigating | A right to issue an automatic refund |
The examples use publicly documented provider interfaces and generic control designs. They do not imply that CASINO-AGG has a particular reconciliation API, handles player balances directly, or has commercial relationships with any cited provider. Real mappings and correction rights come from approved contracts.
Match financial events by business identity, not by row order
The minimum comparison unit is one financial instruction. It needs the operator and provider namespace, player account, event type, provider transaction reference, internal wallet posting reference, amount, currency, and relevant bet or round correlation. Some reports split a bet and a payout into independent transaction IDs. Naga Games' public bet-status interface, for example, distinguishes the bet ID, the place-bet transaction and the payout transaction. A game round is a group of events, not a universal ledger unique key.
| Canonical comparison field | Matching role | Common trap |
|---|---|---|
| Operator, brand and provider | Separate account and contract scopes | Comparing identical IDs across unrelated tenants |
| Player wallet account | Bind a posting to the correct holder | Inferring player from a global round only |
| Provider transaction ID | Recognize the external monetary instruction | Using a new HTTP request ID for each retry |
| Internal ledger posting ID | Prove the actual wallet effect | Treating provider and wallet IDs as interchangeable |
| Event type and original reference | Differentiate bet, win, refund and reversal | Adding a correction as another win |
| Amount, currency and precision | Compare exactly equivalent monetary values | Rounding before checking or mixing currencies |
| Round and timestamp | Correlate and order investigations | Matching only by timestamp or round |
Create an explicit mapping for each provider's report schema. Aviatrix describes a game-round response containing a list of bets, each with an independent bet ID, stake and payout. Tom Horn Gaming exposes its own report and round-detail methods. These are legitimate differences, so one universal parser that expects one bet and one win per round will miss events. Normalize the values, retain original source fields and version the mapping when a contract changes.
Collect complete report windows before comparing totals
A reconciliation job is only as reliable as its input coverage. Choose a clear cutoff and time zone, collect the provider's authoritative activity for that interval and take a consistent snapshot or checkpoint of the operator ledger. Do not assume every provider endpoint supports the same date filters, range size or pagination. VeliGames' gaming-activity report documents paginated bet, win and cancel transactions. Tom Horn Gaming's GetCustomerGames documents a limited time interval per request. The extraction plan must follow each interface.
Choose operator, provider, currency, event-time interval, time zone and a late-arrival overlap policy.
Retrieve every supported page or time slice, preserving response metadata and the query parameters.
Read the corresponding committed postings from a consistent financial view.
Check page totals, repeated pages, missing slices, rate-limit failures and extraction fingerprints.
Map records to canonical identities and compare exact monetary movements.
Retain mismatch evidence, ownership and subsequent recheck history without adjusting money automatically.
Late-arriving callbacks can have a business time in yesterday's round and a ledger commit time today. Keep both timestamps and define whether the report is event-time or posting-time based. Recheck an overlapping window or use durable watermarks so events at the boundary are not lost. Deduplicate by financial identity across overlapping pulls, but never discard legitimate separate transactions merely because their timestamps or amounts match.
If pages are missing or the provider export is incomplete, classify the comparison as incomplete input, not a proven financial mismatch. Preserve an immutable checksum or other integrity evidence of normalized extracts and restrict access to raw player identifiers. Incomplete data should trigger extraction recovery before anyone tries a manual ledger adjustment.
Reconstruct balance changes without double-counting the round
For each account and currency, a basic check is opening balance plus posted credits minus posted debits equals closing balance, subject to the wallet's explicit holds and balance classes. A game win is a gross credit when the contract defines it that way, not automatically the net profit from the round. An authorized rollback is another posting with the opposite effect. Derived reports and summaries should be used to check totals, not booked again as monetary movements.
| Illustrative event | Ledger movement | Balance | Reconciliation treatment |
|---|---|---|---|
| Opening wallet | 0 | 100.00 | Baseline, not a game transaction |
| Bet B-01 | -10.00 | 90.00 | One provider bet matched to one debit |
| Win W-01 | +25.00 | 115.00 | One payout matched to one credit |
| Rollback R-01 of win | -25.00 | 90.00 | Separate authorized reversal linked to W-01 |
| Corrected win W-02 | +20.00 | 110.00 | New authorized settlement, not duplicate W-01 |
| Derived net round result | +10.00 net | 110.00 | Report calculation only; do not post again |
All amounts are invented for teaching purposes. They assume a single currency and no bonus partition, cash-out fee, reserve or pending settlement. A real wallet may keep cash, bonus, restricted and reserved funds separately; reconcile each contractual balance class. Do not convert amounts into a reporting currency and compare the rounded conversion with original transaction units. Precision and FX differences belong to a separate multi-currency rulebook, not an undocumented adjustment to make totals match.
Reconciliation should check both the per-transaction matching and independent aggregates. Identical aggregates can conceal two offsetting errors; conversely a known late event can temporarily change aggregate totals while individual postings are correct. Both views are necessary to diagnose a discrepancy rather than merely detect it.
Classify discrepancies before making financial changes
A difference is a lead for investigation, not an instruction to refund a player. One side may have an extra posting, one may have a delayed result, or the two extracts may simply describe different intervals. Classify the failure mode and attach evidence before deciding whether an operational repair, provider correction or new ledger compensation is needed. Do not treat a successful provider callback response as proof that the operator's ledger actually committed if an earlier crash left the state uncertain.
| Mismatch class | Example | First safe response |
|---|---|---|
| Provider-only transaction | Report shows a bet absent from operator snapshot | Recheck original ID, delayed commit and report boundary |
| Wallet-only transaction | Operator debit has no matching provider event | Check accepted callback, report completeness and provider status |
| Amount or currency mismatch | Same ID carries different normalized financial meaning | Stop automatic correction and inspect signed source evidence |
| Duplicate posting | One provider bet maps to two wallet debits | Protect further retries and reconcile the distinct ledger movements |
| Missing reversal or refund | Provider canceled a bet but operator retained the debit | Resolve cancellation ID and original posting before crediting |
| Out-of-order or late event | Win arrives after the report's nominal cutoff | Track both event and posting time, then rerun the window |
| Status-only disagreement | Round labeled closed while correction is pending | Distinguish game state from settled monetary events |
| Incomplete report | Pagination or a time slice failed | Repair extraction before declaring a money discrepancy |
The escalation path should specify who owns each type, how to request provider evidence and what threshold triggers operational review. Open cases can be provisionally explained but must not disappear from the ledger comparison without a reproducible resolution. An exception marked 'expected delay' needs an expiry and automatic recheck; otherwise genuine missing payouts can remain hidden indefinitely.
Separate event time, settlement time and report time
A provider can send a win hours after the player closed the game. A correction can arrive after yesterday's report was exported. A report service can express dates in a customer's configured time zone, as Tom Horn's documentation explains, while an operator ledger may store UTC commit timestamps. Comparing records by the human date displayed on a dashboard can produce false gaps around midnight or daylight-saving transitions.
- Store the provider's original event timestamp and the operator ledger commit timestamp as different fields.
- Normalize report boundaries explicitly, retaining the source time zone and daylight-saving behavior.
- Give each extraction a cutoff and completeness watermark instead of assuming today's data is final.
- Revisit earlier periods for authorized late wins, cancellations and resettlements within the agreed contract window.
- Deduplicate repeated retrieval by stable transaction ID, not by identical amounts or timestamps.
Round status also differs from financial finality. Some providers permit authorized resettlement after a closed round, while a casino roundClosed indicator may not mean a permanently immutable ledger outcome. VeliGames documents these caveats in its wallet protocol. Record any adjustment as a separate linked posting and explain which reporting period contains the reversal and replacement, so an old balance can be reconstructed without rewriting history.
If a provider changes the historical report after a correction, compare versions or snapshots rather than simply overwriting the previously ingested evidence. A stable, reviewable event trail helps distinguish a genuine late correction from a report-generation defect.
Build a dispute case from verifiable transaction evidence
A player reports: 'My stake disappeared and the game failed.' A useful support investigation starts with a case reference, the relevant operator account, time interval, game and any transaction or round ID. Find the signed bet request and the authoritative wallet posting. Then ask the provider for its corresponding bet or round state and settlement evidence. Aviatrix publishes a /game/round lookup, Tom Horn documents GetGameRoundDetails, and Naga Games documents a signed bet-status query in the other direction. Availability and fields depend on the individual contract.
Record complaint, relevant time window and account scope with access controls.
Locate immutable ledger postings and authenticated callback attempts by stable ID.
Query allowed game-round, bet-status or transaction-report interfaces and preserve their response evidence.
Distinguish accepted bet, delayed result, actual missing payout, unauthorized duplicate or corrected settlement.
Apply only an approved correction and give support a clear account of what happened and when.
Do not reveal another player's information from a shared round, expose signatures or use a screenshot as the only source of truth. Keep signed payload hashes or verifiable request references, response timestamps, provider case IDs, posting identities, monetary amounts and human decisions in an access-controlled evidence trail. Where the record is ambiguous, show an honest pending status and escalate rather than invent a successful payout.
Different disputes require different resolution paths
For a missing bet, first establish whether the wallet actually posted the debit and whether the provider accepted the corresponding wager. If the debit posted but the provider never accepted the bet, an authorized cancellation may be required. If the bet was accepted and merely lacked a browser response, refunding it could create a second economic benefit. For a missing win, establish the provider's settled payout amount and whether a matching credit exists in the wallet before considering a correction.
| Dispute report | Evidence to establish | Unsafe shortcut |
|---|---|---|
| Stake taken but game crashed | Wallet debit plus provider acceptance or cancellation status | Refund every crashed iframe |
| Win shown but balance unchanged | Provider settled win ID plus wallet credit and timing | Credit the screen amount without checking ledger |
| Refund promised but not received | Original bet, authorized reversal ID and actual refund posting | Run cancellation again under a new ID |
| Same stake appears twice | Provider instruction identity and both internal ledger movements | Delete one posting without auditable correction |
| Win later changed | Original win, cancellation and adjusted settlement identities | Overwrite past payout and lose correction trail |
Not every mismatch authorizes an immediate cash adjustment. Some cases require a provider-issued correction, some require a local posting recovery, and some can be resolved by retrieving a missed report page. The decision should be tied to a documented financial rule and an accountable approver. Every money-changing action needs a unique correction identity that remains idempotent under retries.
Correct the ledger with linked events and review controls
When a mismatch is proven, preserve the original posting. A refund is a new credit linked to a debited stake; a reversed win is a debit linked to the earlier payout; a replacement settlement is another authorized event. Do not edit the historic amount so that reports appear to agree. Record the case ID, decision reason, provider authorization, approver, original and compensating IDs, amount, currency and final reconciliation state. Compensation itself must be protected against duplicate delivery.
Keep investigation and approval responsibilities distinct where the operator's risk model requires it. Audit logs should record changes to case status and reasons without exposing wallet secrets, full signatures or unrelated player data. OWASP logging guidance covers the need to avoid sensitive data leakage and log manipulation. An operator should define the legal and contractual retention period rather than copying one universal number from an unrelated provider.
- Require a stable, authenticated original transaction identity and financial reason for every compensation.
- Make the correcting ledger posting and its idempotency identity durable in the same consistent workflow.
- Prohibit silent edits to prior debits, credits and archived report extracts.
- Re-run reconciliation after the correction and keep the before/after evidence attached to the case.
- Use roles, review gates and access controls suitable for the size and risk of the money movement.
Give every exception a status, owner and next check
Reconciliation needs an operating rhythm: a defined extraction schedule, stable cutoff, failure alerts, an exception queue and documented responsibility. It should continue after the initial integration launch because retry storms, delayed callbacks, provider changes and ordinary human mistakes can occur later. A suggested internal state path is NEW, VERIFYING_INPUT, INVESTIGATING, AWAITING_PROVIDER, CORRECTION_APPROVED, RESOLVED or ESCALATED. These are illustrative review states, not provider API statuses.
Measure the number and monetary value of unmatched transactions by provider, tenant and currency; age of the oldest unresolved case; missing or duplicate postings; failed report pages; reconciliation runtime; and fraction of cases requiring approved compensation. Show both count and amount because a single large mismatch matters differently from many small transport retries. Avoid mixing currencies in one unexplained 'total discrepancy' figure.
Operational automation may generate alerts and evidence bundles but should not silently issue refunds based on a failed comparison. Use retry budgets and controlled rechecks for temporary inconsistencies. If the provider report endpoint is unavailable, hold financial conclusions and surface that coverage gap. Protect provider credentials and do not send raw signed requests into public issue trackers or chat channels.
The operator can show a correct final ledger balance, and the provider evidence agrees with the documented final state. If one side is still unknown, call the case pending or escalated rather than resolved.
Acceptance tests must prove the process through failures
A normal successful spin is only the starting point. Test the report ingestion, ledger mapping, mismatch classification, case escalation and recovery from a lost reply. Inject incomplete pages, changed time zones, out-of-order corrections and duplicate callbacks. For each scenario, verify both account postings and the exact evidence retained for support. The test matrix below describes observable outcomes, not a requirement to use any particular database or vendor.
| Acceptance scenario | Expected evidence |
|---|---|
| One bet and one win match | Two unique postings linked to provider IDs; correct closing balance |
| Provider-only bet in report | Traceable exception, no invented duplicate wallet debit |
| Wallet-only debit | Original authenticated callback investigated; no blind delete |
| Same provider transaction delivered twice | One financial posting, clear retry trail |
| Provider cancel follows settled win | Original, reversal and replacement identities matched |
| Partial refund after cash-out | Correct remaining amount and existing payout preserved |
| Report page or time slice missing | Input marked incomplete; no automatic compensation |
| Round contains multiple bets | All bet IDs matched, no extra round-summary posting |
| Late win crosses daily cutoff | Event time and commit time recorded; recheck resolves period gap |
| Player disputes a missing win | Provider result, wallet posting and final case decision auditable |
| Two currencies have equal-looking amounts | Never matched or summed without explicit currency context |
Before production, sign off on source completeness, transaction identity mappings, exact amount checks, case ownership, authorized correction workflow and re-reconciliation after edits. A strong control does not promise zero mismatches; it detects them accurately, preserves evidence and prevents unresolved differences from turning into accidental new monetary events.
Do not call the wallet financially reconciled until both provider and operator evidence are comparable, report coverage is complete and every open discrepancy has a documented status, next action and responsible owner.
KNOWLEDGE
Sources & further reading
This guide draws on primary technical references and official guidance. Regulatory applicability depends on jurisdiction and implementation.
- VeliGames — Report API and Gaming Activity
- VeliGames — Seamless Wallet API
- Tom Horn Gaming — GetCustomerGames
- Tom Horn Gaming — GetGameRoundDetails
- Aviatrix — Backend Game API and Game Round
- Aviatrix — Backend Wallet API
- Naga Games — Get Bet Status from Operator
- AWS Builders' Library — Making retries safe with idempotent APIs
- MySQL 8.4 — InnoDB Transaction Isolation Levels
- OWASP — Webhook Security Cheat Sheet
- OWASP — Logging Cheat Sheet
- IETF RFC 9110 — HTTP Semantics