Game History Callback (Operator Callback API)

POST https://your-casino-site.com/gold_api/user_balance

Request Ex:

{
        "agent_code": "YOUR_AGENT_CODE",
        "agent_secret": "YOUR_AGENT_SECRET",
        "agent_balance": 98981676,
        "user_code": "test",
        "user_balance": 1739708,
        "user_total_credit": 100000000,
        "user_total_debit": 500000000,
        "game_type": "slot",
        "slot": {
            "provider_code":"BOOONGO",
            "game_code":"sun_of_egypt",
            "round_id":1700000000001
            "type":"BASE",
            "bet":1000,
            "win":200,
            "txn_id": "MVGKE8FJE3838EFN378DF",
            "txn_type": "debit_credit", // debit, credit
            "user_before_balance": 1741708,
            "user_after_balance": 1739708,
            "agent_before_balance": 98981676,
            "agent_after_balance": 98981676,
            "created_at": "2022-09-29T12:50:42.000Z"
        }
}

    [ debit, credit, debit_credit ]

    * "debit" // Only send bet amount
        "txn_type": "debit"
        "bet": 2000   //Valid
        "win": 0      //Invalid (Don't use!)
        "txn_id": "64a83..."

    * "credit" // Only send win amount
        "txn_type": "credit"
        "bet": 0     //Invalid (Don't use!)
        "win": 1500  //Valid
        "txn_id": "64a83..."

    * "debit_credit"// Send bet and win amount
        "txn_type": "debit_credit"
        "bet": 2000  //Valid
        "win": 1500  //Valid

Response Ex:

// Success:
{
        "status": 1,
        "user_balance": 1000
}

// Failure:
{
        "status": 0,
        "user_balance": 0,
        "msg": "INSUFFICIENT_USER_FUNDS"
}    

Last updated