# 查询红包领取情况
请求方式:POST
请求地址:https://$basehost/gateway/eaopen/GetRedPacketInfoReq
body参数:
{
"red_packet_id": "红包id"
}
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 是 | 红包id |
返回值:
{
"data": {
"red_packet_info": {
"receiver_type": 1,
"template_id" :2,
"amount" : 3222,
"total_num" : 4,
"received_num" : 5,
"receiver_name" : "领取者名称",
"creator_avatar" : "创建者头像",
"creator_name" : "创建者名称",
"distribute_type" : 1,
"receive_state" : 1,
"red_packet_note" : "红包留言,祝福语",
"receiver_avatar" : "领取者头像",
"amount_paid" : 12325
}
},
"errcode": 0,
"errmsg": "",
"hint": ""
}
返回说明
| 字段 | 类型 | 说明 |
|---|---|---|
| errcode | int | 状态码,0为正常,非0代表错误 |
| errmsg | string | 错误信息 |
| data | json | json返回值 |
| red_packet_info | object | 红包信息 |
| receiver_type | int | 2:私聊红包, 3:群发红包 |
| template_id | string | 红包模板id |
| amount | int | 红包金额,单位:分 int |
| total_num | int | 红包个数 |
| received_num | int | 已领取红包个数 |
| receiver_name | string | 领取者名称 |
| received_at | int | 领取时间 |
| creator_avatar | string | 创建者头像 |
| creator_name | string | 创建者名称 |
| distribute_type | int | 红包分发方式 1-随机 2-平均 |
| receive_state | int | 领取状态, 1:待领取, 2:已领取, 3:领取失败, 4:已过期 |
| red_packet_note | string | 红包留言,祝福语 |
| receiver_avatar | string | 客户头像 |
| amount_paid | int | 已支付的红包金额,单位(分) |
| hint | string | 请求日志ID |
完整请求示例:
curl -X POST https://$basehost/gateway/qopen/UpdatePointsAccount \
-H 'Content-Type: application/json; charset:UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"red_packet_id": "红包id"
}
}'