1. 资金变动类型
接口地址: /merchantapi/wallet/platform/businessTypes
响应示例:
json
{
"code": 1,
"msg": "获取成功",
"data": {
"unfreeze": "解冻金额",
"freeze": "冻结金额",
"cash_notpass": "提现未通过",
"apply_cash": "申请提现",
"admin_inc": "管理员加平台资金",
"admin_dec": "管理员扣平台资金",
"admin_user_money_inc": "管理员加余额",
"admin_user_money_dec": "管理员减余额",
"fee": "手续费",
"goods_sold": "卖出商品",
"goods_refund": "商品退款",
"admin_deposit_money_inc": "管理员加运营钱包",
"admin_deposit_money_dec": "管理员减运营钱包",
"merchant_recharge": "运营钱包充值",
"merchant_recharge_refund": "商户充值退款",
"spread_rebate_freeze": "推广返佣",
"agent_commission": "代理商品售出佣金",
"buy_refresh_point": "购买刷新点",
"complaint_refund": "投诉退款",
"complaint_refund_spread": "投诉退佣金",
"buy_hall_code": "购买大厅码",
"buy_goods": "购买商品",
"user_recharge": "用户充值",
"user_recharge_refund": "用户充值退款"
}
}说明: 返回所有资金变动类型的字典
2. 资金日志列表
接口地址: /merchantapi/wallet/platform/log
请求方式: POST
请求参数:
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| business_type | int | 否 | 业务类型 |
| date_range | array | 否 | 日期范围 |
| signed | int | 否 | 正负:1=收入,-1=支出 |
| page | int | 否 | 页码 |
| limit | int | 否 | 每页数量 |
响应示例:
json
{
"code": 1,
"msg": "获取成功",
"data": {
"list": [
{
"id": 76,
"business_type": "cash_notpass", // 业务类型
"user_id": 1000, // 用户ID
"from_user_id": 0, // 来源用户ID
"trade_no": "", // 交易号,自动转账时生成
"money": "100.000", // 变动金额,-负数表示减
"balance": "2179.000", // 变动后余额
"reason": "审核打款未通过,返还金额100.000元,原因:请输入驳回原因请输入驳回原因", // 日志详情
"create_at": "2025-11-24 14:01:15", // 创建时间
"type": "money", // 钱包类型 money=商户余额(可用于提现),freeze_money=商户冻结资金,deposit_money=运营钱包
"user_type": 1, // 用户类型 1 商户 2 用户
"type_text": "平台钱包(余额)" // 钱包类型文本
}
],
"total": 100
}
}3. 提现记录
接口地址: /merchantapi/wallet/cash/withdrawLog
请求方式: POST
请求参数:
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page | int | 否 | 页码 |
| limit | int | 否 | 每页数量 |
响应示例:
json
{
"code": 1,
"msg": "获取成功",
"data": {
"list": [
{
"id": 3,
"user_id": 1000,
"type": 4, // 收款方式 1=支付宝 2=微信 3=银行卡 4=USDT
"money": "100.000", // 提现金额
"fee": "10.000", // 手续费
"actual_money": "90.000", // 实际到账金额
"status": 2, // 状态:0=待审核,1=已通过,2=审核未通过
"create_at": "2025-11-19 03:09:39", // 申请时间
"complete_at": 0, // 完成时间
"collect_img": "", // 收款二维码
"cash_type": 2, // 提现方式 1=自动提现 2=手动提现 3=定时提现
"bank_name": "", // 银行名称
"bank_branch": "", // 开户地址
"bank_card": "3", // 收款账号
"realname": "", // 真实姓名
"idcard_number": "", // 身份证号
"trade_no": "", // 交易号,自动转账时生成
"channel_account_id": 0, // 代付账号
"channel_id": 0, // 提现渠道ID
"user_type": 1, // 用户类型 1 商户 2 用户
"reason": null // 拒绝原因 null=通过时因为不需要填写默认为null
}
],
"total": 10
}
}