关联活码到指定门店活码分组
企业可通过此接口为指定分组的门店关联活码
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/qrcode/storeQrcode/associated_store_qrcode
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"store_qrcode_group_id": 0,
"associated_infos": [
{
"store_id": 0,
"qrcode_id": 0,
"qrcode_type": "staff"
}
],
"user_id": "user_id_78cf81ef1d6a"
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
store_qrcode_group_id | long | 是 | 门店活码分组id |
associated_infos | list | 是 | 门店集合,数量上限200 |
associated_infos.store_id | long | 是 | 门店id |
associated_infos.qrcode_id | long | 是 | 关联活码id |
associated_infos.qrcode_type | int | 是 | 联活码类型 , staff-员工活码, groupChat-群活码, oldGroup-识客群码 |
user_id | string | 是 | 员工id |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total_qty": 0,
"success_qty": 0,
"fail_qty": 0,
"fail_list": [
{
"store_id": 0,
"fail_reason": "fail_reason_eb3aeae6e001"
}
]
},
"sub_code": "00000"
}
返回说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 出错返回码,为0表示成功,非0表示调用失败 |
msg | string | 返回码描述 |
data | object | 业务对象 |
total_qty | bool | 总条数 |
success_qty | bool | 成功数量 |
fail_qty | int | 失败数量 |
fail_list | list | 失败列表 |
fail_list.store_id | long | 更新结果 |
fail_list.fail_reason | string | 更新结果 |
sub_code | string | 业务异常返回码 |