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.

How to use this guide

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 layerQuestion it answersWhat it cannot prove alone
Provider gaming-activity reportWhat the provider says it processedThat the operator committed the exact wallet effect
Operator immutable ledgerWhich debits and credits actually postedThat a provider has the same accepted round history
Callback and response trailWhat was requested, authenticated and acknowledgedThat a lost response implies a missing posting
Game-round status or replayWhat the game reports about outcome and presentationThat a financial adjustment was authorized
Reconciliation exception recordWhat disagrees and who is investigatingA right to issue an automatic refund
Scope

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 fieldMatching roleCommon trap
Operator, brand and providerSeparate account and contract scopesComparing identical IDs across unrelated tenants
Player wallet accountBind a posting to the correct holderInferring player from a global round only
Provider transaction IDRecognize the external monetary instructionUsing a new HTTP request ID for each retry
Internal ledger posting IDProve the actual wallet effectTreating provider and wallet IDs as interchangeable
Event type and original referenceDifferentiate bet, win, refund and reversalAdding a correction as another win
Amount, currency and precisionCompare exactly equivalent monetary valuesRounding before checking or mixing currencies
Round and timestampCorrelate and order investigationsMatching 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.

01Define boundary

Choose operator, provider, currency, event-time interval, time zone and a late-arrival overlap policy.

02Fetch provider evidence

Retrieve every supported page or time slice, preserving response metadata and the query parameters.

03Checkpoint operator ledger

Read the corresponding committed postings from a consistent financial view.

04Verify completeness

Check page totals, repeated pages, missing slices, rate-limit failures and extraction fingerprints.

05Normalize and match

Map records to canonical identities and compare exact monetary movements.

06Save exceptions

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 eventLedger movementBalanceReconciliation treatment
Opening wallet0100.00Baseline, not a game transaction
Bet B-01-10.0090.00One provider bet matched to one debit
Win W-01+25.00115.00One payout matched to one credit
Rollback R-01 of win-25.0090.00Separate authorized reversal linked to W-01
Corrected win W-02+20.00110.00New authorized settlement, not duplicate W-01
Derived net round result+10.00 net110.00Report 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 classExampleFirst safe response
Provider-only transactionReport shows a bet absent from operator snapshotRecheck original ID, delayed commit and report boundary
Wallet-only transactionOperator debit has no matching provider eventCheck accepted callback, report completeness and provider status
Amount or currency mismatchSame ID carries different normalized financial meaningStop automatic correction and inspect signed source evidence
Duplicate postingOne provider bet maps to two wallet debitsProtect further retries and reconcile the distinct ledger movements
Missing reversal or refundProvider canceled a bet but operator retained the debitResolve cancellation ID and original posting before crediting
Out-of-order or late eventWin arrives after the report's nominal cutoffTrack both event and posting time, then rerun the window
Status-only disagreementRound labeled closed while correction is pendingDistinguish game state from settled monetary events
Incomplete reportPagination or a time slice failedRepair 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.

01Open bounded case

Record complaint, relevant time window and account scope with access controls.

02Trace operator facts

Locate immutable ledger postings and authenticated callback attempts by stable ID.

03Obtain provider facts

Query allowed game-round, bet-status or transaction-report interfaces and preserve their response evidence.

04Explain difference

Distinguish accepted bet, delayed result, actual missing payout, unauthorized duplicate or corrected settlement.

05Resolve and communicate

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 reportEvidence to establishUnsafe shortcut
Stake taken but game crashedWallet debit plus provider acceptance or cancellation statusRefund every crashed iframe
Win shown but balance unchangedProvider settled win ID plus wallet credit and timingCredit the screen amount without checking ledger
Refund promised but not receivedOriginal bet, authorized reversal ID and actual refund postingRun cancellation again under a new ID
Same stake appears twiceProvider instruction identity and both internal ledger movementsDelete one posting without auditable correction
Win later changedOriginal win, cancellation and adjusted settlement identitiesOverwrite 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.

A resolved case has two proofs

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 scenarioExpected evidence
One bet and one win matchTwo unique postings linked to provider IDs; correct closing balance
Provider-only bet in reportTraceable exception, no invented duplicate wallet debit
Wallet-only debitOriginal authenticated callback investigated; no blind delete
Same provider transaction delivered twiceOne financial posting, clear retry trail
Provider cancel follows settled winOriginal, reversal and replacement identities matched
Partial refund after cash-outCorrect remaining amount and existing payout preserved
Report page or time slice missingInput marked incomplete; no automatic compensation
Round contains multiple betsAll bet IDs matched, no extra round-summary posting
Late win crosses daily cutoffEvent time and commit time recorded; recheck resolves period gap
Player disputes a missing winProvider result, wallet posting and final case decision auditable
Two currencies have equal-looking amountsNever 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.

Release gate

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.

  1. VeliGames — Report API and Gaming Activity
  2. VeliGames — Seamless Wallet API
  3. Tom Horn Gaming — GetCustomerGames
  4. Tom Horn Gaming — GetGameRoundDetails
  5. Aviatrix — Backend Game API and Game Round
  6. Aviatrix — Backend Wallet API
  7. Naga Games — Get Bet Status from Operator
  8. AWS Builders' Library — Making retries safe with idempotent APIs
  9. MySQL 8.4 — InnoDB Transaction Isolation Levels
  10. OWASP — Webhook Security Cheat Sheet
  11. OWASP — Logging Cheat Sheet
  12. IETF RFC 9110 — HTTP Semantics