为一批会员添加分组,接口返回添加是否成功,如至少有一个会员的分组添加成功,接口就返回成功,否则返回失败,如果当前会员已经拥有当前分组,则直接跳过
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
group_ids | Number [] | 必须 | 12345 |
|
分组id |
buyer_nicks | String [] | 必须 | ["hello","world"] |
|
买家昵称列表 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
is_success | Boolean | true | 添加操作是否成功 |
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); CrmMembersGroupBatchaddRequest req = new CrmMembersGroupBatchaddRequest(); req.setGroupIds( "12345" ); req.setBuyerNicks( "" hello "," world "" ); CrmMembersGroupBatchaddResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 | < crm_members_group_batchadd_response > < is_success >true</ is_success > </ crm_members_group_batchadd_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|---|---|
isv.buyer-not-exist:buyer_ids | buyer_ids都不是当前卖家的会员 | 检查buyer_ids的值是否正确 |
isv.group-not-exist:group_ids | group_ids的值不正确 | 检查group_ids的值是否正确 |
isp.crmtop-service-unavailable | 当前服务不可用 | 请稍侯后再试 |
isv.invalid-permission | 当前登录的权限不够 | 检查帐号权限 |
isp.service-unavailable | 当前服务不可用 | 请联系ISP接口提供者 |