dragon tiger api: Handle Misdeals and Void Rounds Safely
A dragon tiger api integration needs an explicit answer to an awkward live-table question: what happens when the dealer starts a hand, players have committed funds, and the studio declares a misdeal? The safe response is not to infer an outcome from the video or refund every transaction carrying the same round number. Operators need authoritative cancellation signals, wager-level accounting, and a controlled path for any settlement already posted.
This guide focuses on invalid deals and void rounds: how to distinguish them from normal results, return the correct funds, and explain the outcome without creating duplicate credits.
Why a misdeal is not a tie
Dragon Tiger generally compares one card dealt to Dragon with one dealt to Tiger. Equal ranks can produce a valid tie. A misdeal, by contrast, is an operational exception governed by the studio's rules and procedures.
That distinction matters financially. Depending on the published game rules, a tie may apply special treatment to Dragon and Tiger wagers while settling a separate Tie wager. A void round follows a different policy. Do not implement “same cards,” “missing result,” and “cancelled hand” as interchangeable conditions.
Potential interruptions include an unreadable card, a dealing error, or a technical failure. None independently proves that a round is void. The studio may resume play, confirm the original result, or formally cancel the hand.
Your integration should act on the authenticated, documented settlement authority—not a browser animation, player complaint, video observation, or local timeout.
Define the dragon tiger api void contract before launch
Ask the aggregator to document how the selected studio communicates invalid rounds. An HTTP success response alone does not explain whether an event cancels a wager, reverses a payout, or merely acknowledges an incident.
Establish scope and authority
Get explicit answers to these questions:
- Is cancellation issued for an entire round or individual wagers?
- Which identifiers uniquely locate the studio, table, round, and wallet transaction?
- Does the cancellation reference the original debit or settlement?
- Can a void arrive after a result has already been settled?
- Are corrections ordered through revisions, references, or another mechanism?
- How are duplicate deliveries, missing transactions, and disputed statuses resolved?
These are acceptance criteria, not assumptions about GamingAPI or any provider's field names. If the contract lacks a reliable way to distinguish a delayed result from a superseding cancellation, agree on an exception workflow before enabling real-money play.
Separate observations from financial instructions
A table-status event such as “interrupted” may be useful for the lobby without authorizing any wallet movement. Keep operational observations separate from instructions that change balances.
Likewise, a round-level void notice may require wager-level cancellation messages before funds can be returned. Follow the contracted model rather than manufacturing wallet commands from a table notification.
Keep gameplay status separate from wallet status
One round can contain several wagers, each with a different transaction history. A player might place Dragon and Tie bets separately; another attempted bet might have been rejected. A round cancellation must not refund an amount that was never debited.
Maintain two views:
- Round status: what the studio currently says about the deal, including any authoritative correction.
- Wager accounting: which debits, returns, and reversals actually committed for each wager.
Useful internal wager states might include debit committed, result settled, void pending, and void reconciled. These are illustrative labels, not a proposed provider protocol.
A void is reconciled only when the required ledger entries have committed or the integration has confirmed that no financial change is necessary. Receiving the cancellation is not the same as completing it.
Preserve the original settlement record. A later cancellation should add linked corrective entries, not overwrite history and leave support unable to explain a changed balance.
Calculate the correction from committed entries
The central accounting rule is simple: compare the wager's current ledger effect with its required final effect under the applicable void policy.
For a straightforward cash wager whose stake must be fully returned, the target net effect is zero. Promotional funds, fees, and jurisdiction-specific adjustments need their own documented treatment; they should not inherit cash-wager logic accidentally.
Example: cancellation before settlement
A player has two accepted cash wagers in one hand:
- Dragon: 20 units debited.
- Tie: 5 units debited.
- No return has been credited.
If both wagers are authoritatively void and the policy requires full stake return, the required credits total 25 units. A duplicate cancellation must not add another 25.
Example: cancellation after a payout
Suppose the Dragon wager has a debit of 20 units and a committed gross return of 40 units, including the stake. Its current net effect is positive 20 units.
To bring that wager to zero, the net correction is negative 20—not an additional 20-unit refund. Depending on the documented transaction model, this may be represented as reversing the 40-unit return and refunding the 20-unit stake, or through an authorized adjustment mechanism.
Never invent a debit operation that the wallet contract does not support. If the player has already spent or withdrawn the credited funds, route the case through the agreed insufficient-funds and dispute procedure. Do not silently create an unauthorized negative balance or take money from unrelated wagers.
Make retries and late messages financially harmless
Live integrations must tolerate repeated delivery and uncertain network outcomes. Store a durable processing result against the contract's idempotency key, using the required namespace so unrelated studio transactions cannot collide.
Where your wallet owns the ledger, commit the financial change and its deduplication record atomically. When an external wallet is involved, require idempotent operations and status lookup so a lost response does not trigger a second credit.
Three ordering cases deserve explicit handling:
- Void before debit confirmation: resolve whether the original debit committed before deciding on a refund.
- Old result after authoritative void: preserve it for investigation, but do not let it silently restore a cancelled settlement.
- Correction after initial reconciliation: establish whether it supersedes earlier instructions under the provider contract before changing funds again.
Do not use arrival time alone to decide which message wins. If precedence cannot be established, flag the affected wager for reconciliation and query the authoritative source. Preserve valid incoming records while avoiding speculative money movements.
Test the exception path, not just normal wins
Request representative misdeal scenarios from the aggregator or studio. Where the sandbox cannot generate them, use contract-approved fixtures and clearly label the remaining live-validation gap.
Your acceptance suite should cover:
- An interrupted hand that resumes normally, with no premature refund.
- A valid tie, processed under the configured game rules rather than void logic.
- A full void with several accepted wagers and one rejected attempt.
- Cancellation after a payout, including insufficient available funds.
- Repeated cancellation delivery and a lost wallet response.
- A delayed result arriving after cancellation.
- Conflicting instructions that require authoritative status lookup.
For each test, inspect the final ledger, round status, player history, and exception queue. A successful callback response is insufficient evidence if the player's balance is wrong.
Give support an explanation they can verify
Player history should distinguish “result pending,” “round voided,” and “refund completed.” Show completion only after the relevant wallet operation succeeds.
Support should be able to see the affected wagers, original debits, earlier returns, corrective entries, studio reason, and unresolved actions in one trace. Keep sensitive callback data out of player-facing messages.
For commercial planning, GamingAPI offers 16,000+ games from 150+ studios through one API, with a seamless wallet, multi-currency support, and USDT deposits. Its stated pricing is a $350 one-time setup fee plus 10% of positive GGR; see pricing. Confirm the specific Dragon Tiger studio, territorial availability, and correction workflow before launch. Use contact to request that integration review rather than assuming every studio handles voids identically.
FAQ
Should a video interruption automatically refund bets?
No. A stream interruption does not establish the round's official status. Wait for the documented settlement or cancellation authority, and display a pending state when appropriate.
Can we refund a void round using its total stake?
Only if the contract supports that operation and wager-level reconciliation proves the amount. Rejected bets, prior refunds, and existing payouts can make a simple round total incorrect.
What if a cancellation arrives after the player withdraws?
Apply the agreed correction and insufficient-funds procedure. Escalate unresolved amounts with a complete audit trail; do not improvise unauthorized debits or mark the financial correction complete when it failed.