文档
测试

获取规格价格

GET
/goods/detail/calculate/price

接口描述

通过规格获取价格

请求参数

参数名
类型
描述
必填
specs
array
规格编号数组
必填
goods_id
int
商品编号
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
item_ids
string
规格编号:47,51
必填
price
string
当前规格价格:15.00
必填
price_one
string
其他价格:123.00
必填
specs
array
库存不足规格编号列表(如果没有空库存,则为空数组)
必填
item_ids
string
示例:47,48
必填
stock
int
规格库存
可选