POST 分页查询价格表版本明细
POST 查询。body 为 JSON 对象:必填 versionId(版本ID);可选 pricingStatus(定价状态:ALL 全部 / PRICED 已定价 / UNPRICED 未定价,零价算已定价)、keyword(关键词)、current、size。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
sales.customer-price-list.version.item.page | sales:read | POST /v1/customer-price-list/version/items/page(comap-sales) |
请求体字段(body)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
versionId | integer(int64) | — | 价格版本ID |
pricingStatus | string | — | 定价状态:ALL/PRICED/UNPRICED,为空按 ALL;零价属于已定价 |
keyword | string | — | 关键字(客户物料编码/内部物料名称/内部编码/规格) |
current | integer(int32) | — | 当前页码,默认 1 |
size | integer(int32) | — | 每页条数,默认 20 |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "sales.customer-price-list.version.item.page",
"body": {
"current": 1,
"size": 10
}
}'
响应 data 字段(分页结构:records[] + total)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
size | integer(int64) | — | — |
records17 | CustomerPriceListItemVO[] | — | — |
total | integer(int64) | — | — |
current | integer(int64) | — | — |
pages | integer(int64) | — | — |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 sales:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-sales 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。