GET 质保卡概览
参数位置:此接口无需 query 或 body 参数。 GET 查询质保卡概览统计(在保/即将到期/宽限期/已过保/待激活/已终止数量等)。无参数。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
sales.service-warranty-card.overview | sales:read | GET /v1/service-orders/warranty-card/overview(comap-sales) |
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "sales.service-warranty-card.overview"
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
totalActive | integer(int64) | — | 在保设备总数(在保 + 即将到期 + 宽限期) |
pendingActivation | integer(int64) | — | 待激活:按激活日期起算且客户尚未激活 |
expiringIn30 | integer(int64) | — | 30 天内到期(累计口径) |
expiringIn60 | integer(int64) | — | 60 天内到期(累计口径) |
expiringIn90 | integer(int64) | — | 90 天内到期(累计口径) |
inGrace | integer(int64) | — | 宽限期 |
expired | integer(int64) | — | 已过保 |
terminated | integer(int64) | — | 已终止 |
byStatus | object | — | 按派生状态分组的卡数(六档互斥,之和为总卡数) |
supplierGapCount | integer(int64) | — | 上游断保风险:供应商质保早于本卡到保日且本卡仍在保 |
bySource | object | — | 按来源分布 |
byGranularity | object | — | 按颗粒度分布 |
byResponsible | object | — | 按责任主体分布 |
topExpiring65 | ServiceWarrantyCardVO[] | — | 即将到期 TOP8,按剩余天数升序 |
topHighFreq3 | HighFreqProduct[] | — | 高发故障 TOP5,按累计服务次数降序 |
inWarranty | integer(int64) | — | 在保设备(含即将到期、宽限期) |
expiringReminded | integer(int64) | — | 即将到期中已发提醒的份数 |
pendingStart | integer(int64) | — | 待起保 |
pendingBySign | integer(int64) | — | 待起保中等签收的 |
pendingByAccept | integer(int64) | — | 待起保中等安装验收的 |
generatedThisMonth3 | CountBreakdown | — | 本月终止:byReason 键为 销售退货 / 售后换机 / 人工 |
terminatedThisMonth3 | CountBreakdown | — | 本月终止:byReason 键为 销售退货 / 售后换机 / 人工 |
expiringList69 | ExpiringItem[] | — | 即将到期待办(前 4) |
pendingStartList65 | ServiceWarrantyCardVO[] | — | 待起保待办(前 3) |
byPolicyTop53 | PolicyCount[] | — | 按政策 TOP5 |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 sales:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-sales 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。