Skip to content

1. 查询用户近期消费

接口地址: /merchantapi/order/risk/userOrderList

请求方式: POST

请求参数:

参数名类型必填说明
user_idint买家用户 ID
pageint页码
limitint每页数量

响应示例:

json
{
  "code": 1,
  "msg": "获取成功",
  "data": {
    "list": [
      {
        "id": 6,
        "user_id": 1000, // 用户ID
        "buyer_user_id": 1050, // 买家用户ID
        "goods_id": 1, // 商品ID
        "trade_no": "Q251119886c5d", // 订单号
        "goods_name": "1000的商品1", // 商品名称
        "quantity": 1, // 商品数量
        "goods_price": "15.000", // 商品价格
        "goods_cost_price": "3.000", // 商品成本价
        "total_price": "15.750", // 总售卖价格 即买家支付金额
        "total_cost_price": "3.000", // 总成本价
        "fee": "0.750", // 手续费
        "total_product_price": "15.000", // 总商品价格
        "finally_money": "15.0000", // 最终卖出收益
        "sendout": 1, // 是否发货
        "status": 1, // 订单状态: 0=未支付 1=已支付 2=已取消 3=已退款
        "is_freeze": 0, // 是否冻结
        "create_at": "2025-11-19 01:47:19", // 创建时间
        "success_at": "2025-11-19 01:47:19", // 成功时间
        "create_ip": "42.232.200.207", // 创建IP
        "is_proxy": 0, // 是否代理: 0=否 1=是
        "parent_user_id": 0, // 父级用户ID
        "source_user_id": 0, // 源用户ID
        "parent_goods_id": 0, // 父级商品ID
        "source_goods_id": 0, // 源商品ID
        "source": 0, // 来源: 1对接码订单 2=货源大厅订单
        "buyer_username": "test1050" // 买家用户名
      }
    ],
    "total": 10,
    "total_paid": "950.00" // 买家总付费金额 (仅查询指定用户时返回)
  }
}