1. 设置客户归属
POST /v1/api/custom/owner
Request Headers
Name | Required | Type | Description |
---|---|---|---|
x-api-tenantId | yes | string | 租户编号 |
x-api-token | yes | string | 认证token |
Request Body Parameters
Name | Required | Type | Description |
---|---|---|---|
customId | yes | string | 客户id |
commendId | no | string | 新归属的用户ID |
oweId | no | string | 新推荐人的客户id |
Response
Name | Type | Description |
---|---|---|
result | boolean | 成功标识,返回true,表示请求成功,false表示请求失败 |
mcode | string | 错误码,成功时返回m00000,失败时返回对应的错误码,见文档默认错误码说明 |
message | List | 错误提示信息,部分错误码时有值 |
Example
请求示例
POST /v1/api/custom/owner
RequestBody
{
"customId":"fc25ecba-e77e-41b9-94c2-d24e1d9cb89e",
"oweId":"87",
"commendId":"80eb3bbb-8d1d-434d-a495-6ec830ca09ec"
}
返回示例:成功
{
"mcode": "m0000000",
"result": true
}
返回示例:失败
{
"mcode":"m0000001",
"errorMessage":"",
"result":false
}
2. Error 错误处理
错误码表(Error Code)
mcode | Message |
---|---|
BW_INVALID_PARAM | 参数错误 |
BW_INVALID_SERVERID | 无效serverId |
-1 | 服务异常,请稍后再试 |