You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
1.5 KiB

meta {
name: 客户分配
type: http
seq: 5
tags: [
generated
]
}
post {
url: {{baseUrl}}/api/customer/transfer/750844477165273088/assign
body: none
auth: inherit
}
params:query {
customerIds: 750844484425613312
assignUserId: 744842318024015872
}
docs {
# 客户分配
`POST /api/customer/transfer/{id}/assign`(本行兼作对账钥匙,勿手改)
接收总监→具体销售;逐条独立事务部分成功,失败明细列原因(67012:已分配/越权/为发起人本人/为当前负责人);全部分配完成自动置已完成(D23)。
## 请求参数
| 参数 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| customerIds | string | 是 | 客户 id 集合(重复键) |
| assignUserId | string | 是 | 目标销售用户 id |
## 请求示例
请求头:Authorization: Bearer {{token}}
POST /api/customer/transfer/750844477165273088/assign?customerIds=750844484425613312&assignUserId=744842318024015872
## 响应 data 结构
| 字段 | 类型 | 示例值(E2E 实测) |
| --- | --- | --- |
| total | number | 1 |
| successCount | number | 1 |
| failCount | number | 0 |
| failures | array | [] |
## 错误码
- 67012 分配非法
## 响应示例
// 示例数据(E2E 实测真值),字段结构以上表为准
```json
{
"code": 0,
"success": true,
"message": "success",
"data": {
"total": 1,
"successCount": 1,
"failCount": 0,
"failures": []
}
}
```
}