Game History Based On ID

POST https://meiyunyunapi.com/gambling_api/get_id_log

Request Ex:

{
        "agent_code": "YOUR_AGENT_CODE",
        "agent_token": "YOUR_AGENT_TOKEN",
        "user_code": "test", // [Optional] If user_code is omitted, the game history of the entire agent is obtained.
        "game_type": "slot",
        "last_history_id": 13500
}

Response Ex:


// Success
{
        "status": 1,
        "total_count": 112, // You can get up to 1000 histories.
        "start_history_id": 13501,
        "last_history_id": 13613,
        "slot": [ 
            {
                "history_id": 13501,
                "agent_code": "meiyun",
                "user_code": "test",
                "provider_code": "PRAGMATIC",
                "game_code": "vs20doghouse",
                "type": "BASE",
                "bet": 2000,
                "win": 0,
                "txn_id": "64a83f2fc597acc9004eec52c3f84c30",
                "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"
            },
            ...
        ]
}

// Failure:
{
        "status": 0,
        "error": "INVALID_PARAMETER"
}

    
    [ 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


                                          

Last updated