Payment Details By Date

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

Request Ex:

{
        "agent_code": "YOUR_AGENT_CODE",
        "agent_token": "YOUR_AGENT_TOKEN",
        "user_code": "test",  // [Optional] If user_code is omitted, the entire agent's transaction history is obtained.
        "start": "2022-09-29 00:00:00",
        "end": "2022-09-30 23:59:00",
        "page": 0,
        "length": 1000,
}

Response Ex:

// Success
{
        "status": 1,
        "total_count": 4, // You can get up to 1000 histories.
        "page": 0,
        "length": 1000,
        "slot": [
            {
                "history_id": 310,
                "agent_code": "meiyun",
                "user_code": "test",
                "charge_type": 1, // 1: deposit, 0: withdraw
                "charge_amount": 1000000,
                "agent_before_balance": 102019658,
                "agent_after_balance": 101019658,
                "user_before_balance": 0,
                "user_after_balance": 1000000,
                "created_at": "2022-09-29T12:50:42.000Z"
            },
            ...
        ]
}

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

Last updated