简体中文
多单位计算接口
约 201 字小于 1 分钟
2026-10-23
描述
多单位计算接口
请求说明
请求方式 :POST + application/json
请求路径 :https://${填入所在云的域名}/cgi/crm/v2/data/mutipleunit/service/calcpricebyunit?thirdTraceId=${随机字符串}
请求头填写 :参考公共参数填写
请求参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| data | Map | 是 | 数据map |
| product_id | String | 是 | 产品id |
| unit_id | String | 是 | 计量单位id |
| quantity | Int | 是 | 数量 |
请求示例
{
"data": {
"product_id": "5a9907a1f125ae0a1axxxxxx",
"unit_id": "5a9907a1f125ae0a1axxxxxx",
"quantity": 1
}
}返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| traceId | string | 请求唯一ID |
| errorDescription | string | 错误描述 |
| errorMessage | string | 错误信息 |
| errorCode | Int | 查看错误码 |
返回示例
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}注意事项
- 不能使用返回值的message字段做逻辑判断,errorMessage会有变化;
