GET 查询别名列表
参数位置:query:productId、customerId、keyword。 GET 查询。query 参数:productId、customerId、keyword;商品客户别名。
| 接口编码 | 所需范围 | 后端接口 |
|---|---|---|
srm.product.alias.list | srm:read | GET /v1/product/alias/list(comap-srm) |
员工权限:本接口按权限码 after-sales:my-workspace:list,after-sales:orders:list,after-sales:warranty:list,base:barcode-center:products:list,base:bom:list,base:material-mappings:list,base:material-search:list,base:pricebook:list,base:product-bundles:list,base:products:customer-alias:list,base:products:list:list,contract:purchase:list,drawing:archives:list,inventory:alerts:stock:list,inventory:arrival-notice:list,inventory:arrival:list,inventory:inbound:detail-tab:list,inventory:inbound:list:list,inventory:inbound:opening:list,inventory:inbound:other:list,inventory:inbound:production:list,inventory:inbound:purchase:list,inventory:inbound:return:list,inventory:inspection-rules:plans:list,inventory:lock:list,inventory:outbound:detail-tab:list,inventory:outbound:list:list,inventory:outbound:other:list,inventory:outbound:production:list,inventory:outbound:retreat:list,inventory:outbound:sales-direct:list,inventory:outbound:shipments:list,inventory:transfer:list,production:assembly:list,production:demands:list,production:disassembly:list,production:inspection-plans:list,production:onboarding:list,production:rework:list,production:routings:list,production:wage:list,production:work-orders:list,project:cost:list,project:list:list,project:research:list:list,purchase:orders:detail-tab:list,purchase:orders:list:list,purchase:pending-pool:list,purchase:requests:list,purchase:rfq:list:list,sales:contracts:list,sales:customer-price-lists:list,sales:goodwill:list,sales:orders:detail-tab:list,sales:orders:list:list,sales:outbound:list,sales:pricing:agreement:list,sales:pricing:list,sales:pricing:special:list,sales:quotations:list,sales:returns:list,subcontract:orders:list,subcontract:suppliers:list 对照绑定员工的主站功能权限。
请求参数(query)
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
productId | integer(int64) | — | — |
customerId | integer(int64) | — | — |
keyword | string | — | — |
「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。
请求示例
curl -X POST https://open.risemap.cn/v1/api/invoke \
-H "Authorization: Bearer <访问令牌>" \
-H "Content-Type: application/json" \
-d '{
"apiCode": "srm.product.alias.list",
"query": {}
}'
响应 data 字段
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer(int64) | — | 别名ID |
mappingNo | string | — | 映射编号 |
productId | integer(int64) | — | 商品ID |
skuId | integer(int64) | — | 规格ID;存量数据未指定规格时为空 |
skuSpec | string | — | 系统规格快照 |
skuEnabled | boolean | — | 规格是否仍可用;规格被停用或删除时为 false,未指定规格时为空 |
customerId | integer(int64) | — | 客户ID |
customerName | string | — | 客户名称 |
aliasName | string | — | 别名名称 |
aliasCode | string | — | 别名编码 |
aliasModel | string | — | 别名型号 |
aliasSpec | string | — | 客户规格 |
scopeId | integer(int64) | — | 适用范围ID;为空即通用 |
scopeName | string | — | 适用范围名称(按 ID 取最新名称);通用时为空 |
scopeSort | integer(int32) | — | 适用范围显示顺序;通用时为空 |
remark | string | — | 备注 |
productName | string | — | 商品名称 |
productNo | string | — | 商品编码 |
unitName | string | — | 商品单位(仅别名列表接口回填) |
creatorName | string | — | 创建人名称 |
createTime | string | — | 创建时间 |
错误处理
响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:
| 错误码 | 说明 | 可重试 |
|---|---|---|
| 92101 | 访问凭证无效 | 否 |
| 92201 | 接口未登记或已停用 | 否 |
| 92202 | 超出凭证授权范围——本接口需 srm:read | 否 |
| 92204 | 绑定员工无此接口的功能权限 | 否 |
| 92203 | 上游服务调用失败 | 是 |
| 92301 | 请求过于频繁 | 是 |
除此之外,comap-srm 自身的业务校验失败会原样透传其业务码与提示
(如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内,
以响应里的 message 为准。完整的平台层错误码见错误码说明。
← 返回商品客户别名