跳到主要内容

GET 查询别名列表

参数位置:query:productId、customerId、keyword。 GET 查询。query 参数:productId、customerId、keyword;商品客户别名。

接口编码所需范围后端接口
srm.product.alias.listsrm:readGET /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)

字段类型必填说明
productIdinteger(int64)——
customerIdinteger(int64)——
keywordstring——

「必填」仅反映接口规格声明的部分。服务内还有未体现在规格里的校验, 标「—」不等于可以不传;租户在主站配置的字段必填不约束本接口。 详见必填字段的判定与字段清单与自定义字段。

请求示例

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 字段

字段类型必填说明
idinteger(int64)—别名ID
mappingNostring—映射编号
productIdinteger(int64)—商品ID
skuIdinteger(int64)—规格ID;存量数据未指定规格时为空
skuSpecstring—系统规格快照
skuEnabledboolean—规格是否仍可用;规格被停用或删除时为 false,未指定规格时为空
customerIdinteger(int64)—客户ID
customerNamestring—客户名称
aliasNamestring—别名名称
aliasCodestring—别名编码
aliasModelstring—别名型号
aliasSpecstring—客户规格
scopeIdinteger(int64)—适用范围ID;为空即通用
scopeNamestring—适用范围名称(按 ID 取最新名称);通用时为空
scopeSortinteger(int32)—适用范围显示顺序;通用时为空
remarkstring—备注
productNamestring—商品名称
productNostring—商品编码
unitNamestring—商品单位(仅别名列表接口回填)
creatorNamestring—创建人名称
createTimestring—创建时间

错误处理​

响应统一信封 { code, message, data },code == 200 为成功。以下是本接口可能返回的开放平台层错误:

错误码说明可重试
92101访问凭证无效否
92201接口未登记或已停用否
92202超出凭证授权范围——本接口需 srm:read否
92204绑定员工无此接口的功能权限否
92203上游服务调用失败是
92301请求过于频繁是

除此之外,comap-srm 自身的业务校验失败会原样透传其业务码与提示 (如字段校验、状态不允许、数据不存在),这类码不在开放平台的号段内, 以响应里的 message 为准。完整的平台层错误码见错误码说明。

← 返回商品客户别名