主题
删除外部联系人 3.5.5.Beta1+
接口说明
请求URL:http[s]://{网关地址}/minos-platform/outuser/delete
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 用户名(账户) | userAccount | *M | String | 用户名(账户) 与otherId是映射关系,userAccount、otherId、phone不能同时为空或者三个都填写优先匹配规则是userAccount>otherId>phone |
| 校外编号 | otherId | *M | String | 校外编号,该用户在三方自身系统的登录标识(客户内唯一),与userAccount是映射关系, userAccount、otherId不能同时为空或者三者都填写优先匹配规则是userAccount>otherId>phone |
| 手机号3.6.1.SP6+ | phone | *M | String | 手机号,userAccount、otherId和phone不能同时为空或者三个都填写优先匹配规则是userAccount>otherId>phone 。 |
请求示例
json
{
"userAccount":"external00000022",
"otherId":"pang",
"phone":"186xxxxx"
}1
2
3
4
5
2
3
4
5
响应说明
响应体
| 字段名 | 参数名 | 是否必填 | 类型 | 描述 |
|---|---|---|---|---|
| 返回码 | errcode | 是 | String | 0 成功,其他为不成功 |
| 返回码描述 | errmsg | 否 | String | 返回码描述 |
| 返回对象 | data | 否 | Object | 返回的对象信息 |
响应示例
json
{
"errcode": "0",
"errmsg": "success",
"traceId": "OpenV2Api_1085157857127006208",
"data": null
}1
2
3
4
5
6
2
3
4
5
6
错误码
| 错误码 | 描述 |
|---|---|
| 111001 | 必填参数不能为空 |
| 111002 | 请求参数格式错误 |
Demo
java
// 创建客户端
Client client = new DefaultClient(BASE_URL, APP_ID, APP_SECRET);
// 创建请求对象
OutUserDeleteRequest request = new OutUserDeleteRequest();
// request.setOtherId("outusertest001");
request.setPhone("15987654321");
BaseResponse response = client.execute(request);
//调用成功,则处理业务逻辑
if (response.isSuccess()) {
//.....
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12

