SyncCredit API Common Payload Structure
All types use the samedt/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:- Check if hedge orders exist in the same round
- If hedges exist, recalculate valid_amount for both sides
- 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:
Steps 1-2: Bet Deduction (Type 7)
Steps 1-2: Bet Deduction (Type 7)
Steps 3-4: Payout (Type 8) + Hedge Sync (Type 26)
Steps 3-4: Payout (Type 8) + Hedge Sync (Type 26)
The following is a single API request with multiple Objects in the
info array, process them in order.Steps 5-6: Round Recalculation (Type 10) + Hedge Sync (Type 26)
Steps 5-6: Round Recalculation (Type 10) + Hedge Sync (Type 26)
The following is a single API request with multiple Objects in the
info array, process them in order.Steps 7-8: Cancel Round (Type 11) + Hedge Sync (Type 26)
Steps 7-8: Cancel Round (Type 11) + Hedge Sync (Type 26)
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:
Step 1: Bet Deduction (Type 7)
Step 1: Bet Deduction (Type 7)
Step 2: Payout (Type 8)
Step 2: Payout (Type 8)
Step 3: Cancel Order (Type 13)
Step 3: Cancel Order (Type 13)
Case 3: Bet → Bet Failure Refund
Covered Types: 23 Bet Failure Refund
Payload:
Step 1: Bet Deduction (Type 7)
Step 1: Bet Deduction (Type 7)
Step 2: Bet Failure Refund (Type 23)
Step 2: Bet Failure Refund (Type 23)