钱包交易记录

  • 接口地址: /api/fresns/user/walletLogs
  • 请求方式: POST
  • 请求格式: JSON

header 可选参数:

参数名公开模式(是否必传)私有模式(是否必传)
uidYESYES
midNONO
tokenYESYES

body 参数:

参数名类型是否必传说明
typeNumberNO交易类型(留空输出全部)
根据 object_type 字段输出,不固定死数字
statusNumberNO交易状态(留空输出全部)
is_enable 字段 0.交易失败 1.交易成功
pageSizeNumberNO每页显示条数(默认 30 条)
pageNumberNO页码(默认 1)

返回结果:

成功

{
    "code": 0,
    "message": "ok",
    "data": {
        "pagination": {
            "total": "一共有多少条数据",
            "current": "当前页码",
            "pageSize": "每页有多少条数据",
            "lastPage": "最后一页页码"
        },
        "list": [
            {
                "type": "user_wallet_logs > object_type",
                "amount": "user_wallet_logs > amount",
                "transactionAmount": "user_wallet_logs > transaction_amount",
                "systemFee": "user_wallet_logs > system_fee",
                "openingBalance": "user_wallet_logs > opening_balance",
                "closingBalance": "user_wallet_logs > closing_balance",
                "name": "user_wallet_logs > object_name >> plugin_usages(type=1 或 2) > name 多语言,如果插件关联已经删除,则原样输出 object_name 字段值",
                "remark": "user_wallet_logs > remark",
                "status": "user_wallet_logs > is_enable",
                "date": "user_wallet_logs > created_at"
            },
            {
                "type": "user_wallet_logs > object_type",
                "amount": "user_wallet_logs > amount",
                "transactionAmount": "user_wallet_logs > transaction_amount",
                "systemFee": "user_wallet_logs > system_fee",
                "openingBalance": "user_wallet_logs > opening_balance",
                "closingBalance": "user_wallet_logs > closing_balance",
                "name": "user_wallet_logs > object_name >> plugin_usages(type=1 或 2) > name 多语言,如果插件关联已经删除,则原样输出 object_name 字段值",
                "remark": "user_wallet_logs > remark",
                "status": "user_wallet_logs > is_enable",
                "date": "user_wallet_logs > created_at"
            }
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

失败

{
    "code": "code_messages > code",
    "message": "code_messages > message"
}
1
2
3
4