GET 线索详情
GET 查询。query 参数:id(线索ID,必填)。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
sales.lead.detail | sales:read | GET /v1/lead/detail(comap-sales) |
请求参数(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | 是 | 线索 ID |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "sales.lead.detail",
"query": {
"id": "1961000000000000001"
}
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | — | 线索ID |
leadNo | string | — | 线索编号 |
subjectType | string | — | 主体类型:ENTERPRISE/INDIVIDUAL |
leadName | string | — | 统一线索名称 |
companyName | string | — | 公司名称 |
contactName | string | — | 联系人姓名 |
contactTitle | string | — | 联系人职位 |
phone | string | — | 联系电话 |
email | string | — | 邮箱 |
sourceId | integer(int64) | — | 线索来源ID |
sourceName | string | — | 线索来源名称 |
sourceColor | string | — | 线索来源颜色 |
statusId | integer(int64) | — | 线索状态ID |
statusName | string | — | 线索状态名称 |
statusColor | string | — | 线索状态颜色 |
industryId | integer(int64) | — | 行业ID |
industryName | string | — | 行业名称 |
assigneeId | integer(int64) | — | 负责人ID |
assigneeName | string | — | 负责人名称 |
assigneeAvatar | string | — | 负责人头像 |
poolId | integer(int64) | — | 当前线索池 ID |
poolName | string | — | 当前线索池名称 |
sourcePoolId | integer(int64) | — | 最近来源池 ID |
sourcePoolName | string | — | 最近来源池名称 |
poolEnteredBy | integer(int64) | — | 最近入池操作人 ID |
poolEnteredByName | string | — | 最近入池操作人名称 |
poolEnteredAt | string(date-time) | — | 最近入池时间 |
ownershipVersion | integer(int32) | — | 归属乐观锁版本 |
score | integer(int32) | — | 线索评分 |
estimatedAmount | number | — | 预估金额 |
region | string | — | 地区 |
isPublicSea | integer(int32) | — | 是否公海线索 |
lastContactTime | string(date-time) | — | 最后联系时间 |
lastFollowAt | string(date-time) | — | 最近跟进时间 |
intentionLevelId | integer(int64) | — | 当前意向等级配置ID |
intentionLevelName | string | — | 当前意向等级名称 |
intentionLevelColor | string | — | 当前意向等级颜色 |
tags | string[] | — | 标签列表 |
createdAt | string(date-time) | — | 创建时间 |
customFieldValues | object | — | 自定义字段值(fieldName -> value,label=sales_lead) |
description | string | — | 描述 |
claimedAt | string(date-time) | — | 领取时间 |
claimedBy | integer(int64) | — | 领取人ID |
claimedByName | string | — | 领取人名称 |
convertedOpportunityId | integer(int64) | — | 转化后的商机ID |
createBy | integer(int64) | — | 创建人ID |
createByName | string | — | 创建人名称 |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 sales:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-sales 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回线索