文档
测试

商品明细

GET
/api/goods/detail/{商品编号}

接口描述

商品明细

请求头

参数名
类型
描述
必填
Accept-Language
string
zh-CN,zh; 当前选择的语言
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
city
object
根据请求IP地址获取到的省份
必填
province
string
示例:山东
必填
city
string
示例:济南
必填
goods
object
商品数据
必填
id
int
商品编号:66
必填
category_id
int
分类编号:15
必填
category_depth
string
分类路径深度:0-10-14-15
必填
brand_id
int
品牌编号:11
必填
cover_img_url
string
封面地址:https://img.mofyi.com/202007/0616343069083.png
必填
detail_image
array
详情图片
必填
images
array
轮播图片
必填
high_price
string
最大价格(划线价):125.00
必填
price
string
单价:12.00
必填
is_taxes
object
是否保税(0:不包税,1:包税)
必填
sale_count
int
销售数量:0
必填
comment_count
int
评论数量:0
必填
ship_place
string
发货地:1
必填
fare_id
int
运费模板:41
必填
title
object
商品标题
必填
goods_id
int
示例:66
必填
title
string
示例:ceshi-0706
必填
origin_place
string
示例:美国
必填
description
object
示例:null
必填
remark
object
示例:null
必填
activitys
array
活动
必填
id
int
示例:8
必填
type
int
示例:2
必填
start_time
int
示例:1594180800
必填
end_time
int
示例:1594872000
必填
more
object
数据字典
必填
pieces
string
示例:12
必填
discount
string
示例:123
必填
pivot
object
数据字典
必填
goods_id
int
示例:66
必填
activity_id
int
示例:8
必填
title
object
数据字典
必填
activity_id
int
示例:8
必填
title
string
示例:cehsixia
必填
coupons
array
优惠卷
必填
id
int
示例:55
必填
amount
int
示例:100
必填
goods_type
int
示例:1
必填
type
int
示例:1
必填
threshold
int
示例:1
必填
threshold_price
int
示例:10
必填
content
string
示例:1
必填
coupon_start_time
int
示例:1594267200
必填
coupon_end_time
int
示例:1595649600
必填
receive_number
int
示例:1
必填
pivot
object
数据字典
必填
goods_id
int
示例:66
必填
coupon_id
int
示例:55
必填
title
object
数据字典
必填
coupon_id
int
示例:55
必填
title
string
示例:优惠券
必填
total_stock
int
总库存
可选
specs
array
规格
必填
id
int
属性:1
必填
name
string
属性名称:颜色
必填
spec_items
array
规格项
必填
id
int
规格编号:47
必填
attr_id
int
属性编号:1
必填
name
string
规格名称:杏色
必填
enabled
int
是否启用:0
必填
freightCharge
object
运费
必填
type
int
示例:0
必填
content
string
示例:包邮
必填
guessLike
array
猜你喜欢
必填
id
int
示例:69
必填
cover_img_url
string
示例:https://img.mofyi.com/202007/0813262129560.png
必填
high_price
string
示例:150.00
必填
price
string
示例:105.00
必填
title
object
数据字典
必填
goods_id
int
示例:69
必填
title
string
示例:测试-0708
必填
origin_place
string
示例:21
必填
description
object
示例:null
必填
remark
object
示例:null
必填