Game History By Date

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

Request Ex:

{
        "agent_code": "YOUR_AGENT_CODE",
        "agent_token": "YOUR_AGENT_TOKEN",
        "game_type": "slot",
        "user_code": "test",  // [Optional] If user_code is omitted, the game history of the entire agent is obtained.
        "start": "2022-09-29 00:00:00",
        "end": "2022-09-30 23:59:00",
        "page": 0,
        "length": 1000,
        "search": "" // providerCode, gameCode, gameName, txnId
}

Response Ex:

 // Success
{
        "status": 1,
        "total_count": 112, // You can get up to 1000 histories.
        "page": 0,
        "length": 10,
        "slot": [
            {
                "history_id": 245,
                "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