估价公式参数(存)
保存估价公式参数,保存后立即影响新的估价结果。
| 请求方式 | GET/POST |
| 接口路径 | /api/recycle/predicate/assessPriceFormula/save |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
KV_KEY | String | 否 | - |
minAvgPrice | double | 否 | 均价下限(> 此值才进入公式) |
minHalfYearSell | int | 否 | 半年销量下限(> 此值才进入公式) |
sellWeightMax | double | 否 | 销量权重:scaleByProportion 的 returnMax |
sellWeightMin | double | 否 | 销量权重:scaleByProportion 的 returnMin |
sellWeightBase | double | 否 | 销量权重:scaleByProportion 的 baseValue(对比近三月销量) |
priceWeightMax | double | 否 | 价格权重:scaleByProportion 的 returnMax |
priceWeightMin | double | 否 | 价格权重:scaleByProportion 的 returnMin |
priceWeightBase | double | 否 | 价格权重:scaleByProportion 的 baseValue(对比均价) |
finalMultiplier | double | 否 | 最终乘数:recyclePrice = sellWeight × priceWeight × finalMultiplier × avgPrice |
curl 调用
curl -s 'https://www.8shu8.com/api/recycle/predicate/assessPriceFormula/save' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"KV_KEY": "string",
"minAvgPrice": 0.0,
"minHalfYearSell": 1,
"sellWeightMax": 0.0,
"sellWeightMin": 0.0,
"sellWeightBase": 0.0,
"priceWeightMax": 0.0,
"priceWeightMin": 0.0,
"priceWeightBase": 0.0,
"finalMultiplier": 0.0
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": "..."
}