Skip to content

获取直播红包列表

拥有此API的权限集
直播管理-查询

请求方式及url

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://api.xiaoe-tech.com/xe.live.redpacket.list/1.0.0
  • 频率限制: 10秒3000次

接口调试

请求参数
响应结果
暂无响应数据

请求参数

参数名必选类型说明
access_tokenstring专属token
resource_idstring资源id
resource_typeint资源类型
current_user_idstring当前用户
pageint页码
limitint条数

请求示例

{
    "access_token": "xxx",
    "resource_id": "l_61a59bd0e4b03f3fb99d7575",
    "resource_type": 4
}

返回参数

参数名类型说明
codeint返回码
msgstring返回信息
dataarray返回值

data返回值

参数名类型说明
idstring红包id
app_idstring店铺id
resource_idstring资源id
resource_typeint资源类型
order_idstring关联订单Id
r_typeint红包类型
stateint红包状态;1-进行中,2-已结束,3-已过期
receive_typeint领取类型;1-拼手气红包,2-等额红包
receive_numberint领取数量
moneystring红包原金额(分)
average_priceintreceive_type=2时 记录单个金额
after_deduction_moneyint红包扣除手续费后金额(分)
numint红包数量
describe_msgstring红包描述
created_atstring创建时间
user_idstring红包发起人id
wx_nicknamestring微信昵称
wx_avatarstring微信头像

返回示例

{
    "code": 0,
    "msg": "success",
    "data": [
        {
            "id": "Bvab2ejoRg1L",
            "app_id": "appxxx",
            "order_id": "o_1611320948_600ace7494c05_90966404",
            "user_id": "u_5ed5f356cb844_JG2OgJ8TAa",
            "resource_id": "i_60583e4160b292c8e76e89c8",
            "resource_type": 1,
            "r_type": 1,
            "state": 1,
            "receive_type": 1,
            "money": 100,
            "after_deduction_money": 100,
            "num": 5,
            "describe_msg": null,
            "created_at": "2021-04-21 14:47:13",
            "wx_nickname": "枯木逢春夏秋冬",
            "wx_avatar": "http://wechatavator-1252524126.file.myqcloud.com/appDyeLbE8r3199/image/compress/u_5ed5f356cb844_JG2OgJ8TAa.png"
        }
    ]
}