Skip to main content

SyncCredit API Common Payload Structure

All types use the same dt/callback/sync_credit API with the following payload format:

Key Differences by Type


Additional Note: Type 26 Hedge Sync Mechanism

In Test Case 1, Payout (Type 8) and Round Recalculation (Type 10) are accompanied by additional Type 26 (credit=0) records. This is due to the Hedge Calculation mechanism.

Trigger Conditions

When a player has hedge bets in the same round (e.g., betting on both Banker and Player), the system automatically generates Type 26 records during payout or recalculation:

Logic Description

When processing payouts/recalculations for orders with hedge bets, the system will:
  1. Check if hedge orders exist in the same round
  2. If hedges exist, recalculate valid_amount for both sides
  3. Insert Type 26 record to notify seamless wallet of valid_amount changes

Type 26 Hedge Sync Fields

Example

In Case 1, betting “100 on Banker” and “100 on Player” simultaneously creates a hedge:
  • Processing Banker (playtype=1) payout → generates Player’s Type 26 (credit=0)
  • Processing Player (playtype=2) payout → generates Banker’s Type 26 (credit=0)

Test Cases

Case 1: Normal Flow → Round Recalculation → Cancel Round

Covered Types: 8 Payout, 10 Round Recalculation, 11 Cancel Round Card Settings:
  • Original result (Banker wins): Player [♠ 2, ♥3] = 5 points, Banker [♦K, ♣9] = 9 points → Banker Wins
  • Recalculated result (Player wins): Player [♠ 9, ♥8] = 7 points, Banker [♦4, ♣2] = 6 points → Player Wins
Payload:
The following is a single API request with multiple Objects in the info array, process them in order.
The following is a single API request with multiple Objects in the info array, process them in order.
The following is a single API request with multiple Objects in the info array, process them in order.

Case 2: Normal Flow → Cancel Order

Covered Types: 8 Payout, 13 Cancel Order Card Settings:
  • Result (Banker wins): Player [♠ 4, ♥2] = 6 points, Banker [♦7, ♣K] = 7 points → Banker Wins
Payload:

Case 3: Bet → Bet Failure Refund

Covered Types: 23 Bet Failure Refund Payload:

Test Summary