跳转至

查询企业活动关联资产列表

功能说明

包含企业企业活动关联资产列表

接口地址

HTTP请求方式

  • Method: POST
  • Content-Type: application/x-www-form-urlencoded

参数说明

  • 公有参数

    发送请求是必须传入公共参数,详见公共参数

  • 私有参数

参数名称 是否必须 参数类型 长度限制 描述
activity_id int 活动id

请求示例

https://openapi.guanaitong.tech/enterprise/activity/assets?
activity_id=1929&timestamp=1646704516&access_token=1c866584c3638a577460094a0765f9a0&sign=38511f231ac5c431a5edf44e198c8ada4ff54379

返回参数说明

参数名称 描述
code 返回码。详见错误返回码
msg 如果错误,返回错误信息。
data 如果没有错误,返回业务数据
data.account_openid 资产编号,活动发放时使用
data.asset_type 资产类型,类型:[coupon,point]
data.asset_name 资产名称
data.time_created 资产创建时间

正确返回示例

{
    "code": 0,
    "msg": "OK",
    "data": [
        {
            "asset_name": "兑换券-生日100档",
            "asset_type": "coupon",
            "time_created": "2022-03-02",
            "account_open_id": "14328"
        },
        {
            "asset_name": "兑换券-入职100档",
            "asset_type": "coupon",
            "time_created": "2022-03-04",
            "account_open_id": "14333"
        }
    ]
}

错误返回示例

{
    "code": 1000210004,
    "data": null,
    "msg": "tokeninfo check failed!"
}
回到页面顶部