批量查询用户开通状态

使用场景:根据项目id查询开通状态和代扣金额信息

调用凭证: 应用签名

测试环境请求地址: http://test-oapi.gongyi.woa.com/api/open_mth/BatchQryStatus

现网环境请求地址: http://oapi.gongyi.woa.com/api/open_mth/BatchQryStatus

http head:

Gy-H-App-User-Type 写死wechat

Gy-H-App-User-Id 填应用小程序的openid

Gy-H-Provider-Appid 填应用小程序的appid

Gy-H-Api-Appid 填写 appid,系统内分配

Gy-H-Api-Timestamp 填写当前时间戳,误差5秒之内

Gy-H-Api-Nonce-Str 填写随机数string类型

Gy-H-Api-Sign 填写签名

签名算法:

将Gy-H-Api前缀的参数(排除Gy-H-Api-Sign)的 key,value 进行排序

拼接成 key1=value1&key2=value2.... &的模式

拼接秘钥key1=value1&key2=value2.... &key=秘钥

将上述字符串md5后转为大写

请求方法: POST ( HTTPS

请求参数:

参数 类型 必填 说明
activityid string 活动id,用来配置可以查询的项目
actid string 最多只能传5个项目,逗号分隔,最少传1个项目

返回参数:

参数 类型 说明
code int 返回码:0表示成功,其他值表示错误,请参考错误码说明
msg string 错误信息
data object 返回数据

data内容:

参数 类型 说明
list object list 项目列表
list[].code int 错误码
list[].msg string 错误描述
list[].actid string 项目ID
list[].act_status string 1项目可以筹款,2不可筹款
list[].status int 开通状态, 1已开通,0未开通
list[].money int 单笔代扣金额(单位分)
list[].sum_money int 总共代扣金额(单位分)
list[].day int 代扣日,0到28号
list[].open_time string 开通时间

请求示例:

{
  "actid":"12,415"
}

返回示例:

{
  "code": 0,
  "msg": "success",
  "op_time": 1665556230,
  "data": {
    "list": [
      {
        "code":0,
        "msg":"success",
        "actid": "12",
        "act_status":1,
        "status": 1,
        "money": 100,
        "sum_money": 5000,
        "day": 13,
        "open_time": "2022-10-13 12:12:12"
      },
      {
        "code":60003,
        "msg":"项目不存在",
        "actid": "41511",
        "act_status":0,
        "status": 0,
        "money": 0,
        "sum_money": 0,
        "day": 0,
        "open_time": ""
      }
    ]
  }
}

错误码

0 //处理成功

60001 //参数错误

60002 //获取项目信息失败

60003 //项目不存在

其他 系统链路异常,或者参数不合法拒掉

© 1998 - 2022 Tencent Inc. all right reserved,powered by tencent.更新时间: 2025-03-06 17:00:45

results matching ""

    No results matching ""

    results matching ""

      No results matching ""