Skip to content

Getting Started

Welcome to API documentation. Before diving into implementation, you’ll need to choose the integration type that best fits your server’s needs.

  • Transfer API - Traditional account-based integration
  • Seamless API - Real-time webhook-based integration

API Provider offers two integration approaches, each designed for different use cases:

How it works:

  • API Provider maintains the player’s balance in their system. You control when balances are deposited or withdrawn by calling deposit/withdrawal APIs.
  • Handles all balance management and in-game transactions automatically.

Key Characteristics:

  • It holds and manages the balance
  • You control when to deposit or withdraw balance via API calls
  • Simpler implementation
  • Clear transaction control

Your Responsibilities:

  • Decide when to deposit funds
  • Decide when to withdraw funds
  • Handle transaction failures
  • Track your own records if needed

DOWINN’s Responsibilities:

  • Store and manage player balance
  • Process all bets, wins, and losses automatically
  • Update balance for deposits and withdrawals when you call APIs
  • Provide balance information when you request it

How it works: Single unified balance with real-time synchronization. Your server receives webhook notifications for every bet, win, and game event, keeping balances instantly synchronized. Key Characteristics:

  • Real-time balance updates
  • Instant withdrawal capability
  • Your server is source of the balance
  • Automatic transaction flow

Client’s Responsibilities:

  • Receive and process webhooks for every game event
  • Update client’s server balance in real-time
  • Respond to API Provider with updated balance
  • Handle high API volume

API Provider’s Responsibilities:

  • Send webhook for every bet, win, loss
  • Wait for your balance confirmation
  • Proceed with game based on your response
FeatureTransferSeamless
ControlYou decide when to deposit/withdrawAutomatic (every bet/win)
ImplementationCall API Provider EndpointsWebhook system
API CallsLow (~2-4 per session)High (every bet/win)
Balance UpdatesWhen you deposit/withdrawReal-time
InfrastructureBasic web serverWebhook endpoint required
Latency ToleranceHigh (seconds acceptable)Low (sub-second required)
  • Budget-controlled gaming
  • Server requiring manual fund control
  • Lower API volume requirements
  • Simpler infrastructure
  • Real-time betting
  • Instant withdrawal requirements
  • High-frequency gaming
  • Servers with existing webhook infrastructure
  • Real-time balance synchronization needs
  1. Set Up Authentication

  2. Create Webhook Endpoint

    • Build endpoint to receive API Provider callbacks
    • Implement signature verification
    • Handle idempotency
  3. Implement Event Handlers

    • Handle bet events (deduct from your server’s balance)
    • Handle win events (credit to your server’s balance)
    • Handle refund/cancel events
    • Implement proper error responses
  4. Test & Monitor

    • Test all event types thoroughly
    • Implement logging and monitoring
    • Set up alerting for failures
  1. Set Up Authentication

  2. Initialize Player Account

  3. Handle Fund Transfers

    • Implement Account Deposit - called when you want to add funds to player’s API Provider balance
    • Implement Account Withdraw - called when you want to remove funds from player’s API Provider balance
  4. Monitor & Verify