- 基础接口
- apple登陆POST
- 主题类型GET
- 获取个人中心菜单GET
- 图片上传POST
- 获取登录授权logoGET
- 获取网站基础配置GET
- 获取配置是否强制绑定手机号GET
- 门店自提开启状态GET
- 公众号支付回调GET
- 小程序支付回调GET
- 支付回调GET
- 图片验证码GET
- 获取发短信的codeGET
- 验证码发送POST
- 手机号注册POST
- 手机号验证码登录POST
- 账号密码登陆POST
- 手机号修改密码POST
- 绑定手机号POST
- 记录用户分享POST
- 分享配置GET
- 获取图片base64POST
- 海报二维码GET
- 优惠券列表_copy(已废弃)GET
- 添加登录用户的访问记录POST
- 用户关键字分享GET
- 复制口令接口GET
- 获取多语言类型列表GET
- 获取当前语言jsonGET
- 首页
- 文章
- 商品
- 优惠券
- 签到
- 秒杀
- 拼团
- 预售
- 砍价
- 购物车
- 积分商城
- 订单
- 微信
- 用户
- 客服
- 个人中心->付费会员
- 个人中心->发票管理
- 个人中心->积分中心
- 个人中心->我的等级
- 个人中心->统计管理
- 个人中心->我的推广
- 个人中心->地址信息
- 个人中心->我的收藏
- 个人中心->消息中心
- 个人中心->我的余额
- PC端
商品详情
GET
/product/detail/{}
请求参数
Path 参数
id
string
商品id
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/product/detail/{}'
返回响应
🟢200成功
application/json
Body
status
number
可选
msg
string
可选
data
object
可选
uid
number
用户id
productAttr
array [object {6}]
商品规格
productValue
object
规格值
storeInfo
object
商品信息
priceName
number
推广佣金
reply
null
评论
replyChance
number
好评率
replyCount
number
评论数
mer_id
number
0
good_list
array [object {11}]
推荐商品
mapKey
string
可选
store_self_mention
number
可选
activity
array [object {2}]
活动
coupons
array [object {28}]
优惠券
routine_contact_type
string
可选
示例
{
"status": 0,
"msg": "string",
"data": {
"uid": 0,
"productAttr": [
{
"id": 0,
"product_id": 0,
"attr_name": "string",
"attr_values": [
"string"
],
"type": 0,
"attr_value": [
{
"attr": "string",
"check": true
}
]
}
],
"productValue": {},
"storeInfo": {
"id": 0,
"mer_id": 0,
"image": "string",
"recommend_image": "string",
"slider_image": [
"string"
],
"store_name": "string",
"store_info": "string",
"keyword": "string",
"bar_code": "string",
"cate_id": "string",
"price": "string",
"vip_price": 0,
"ot_price": "string",
"postage": "string",
"unit_name": "string",
"sort": 0,
"sales": 0,
"stock": 0,
"is_show": 0,
"is_hot": 0,
"is_benefit": 0,
"is_best": 0,
"is_new": 0,
"add_time": 0,
"is_postage": 0,
"is_del": 0,
"mer_use": 0,
"give_integral": "string",
"cost": "string",
"is_seckill": 0,
"is_bargain": null,
"is_good": 0,
"is_sub": 0,
"is_vip": 0,
"ficti": 0,
"browse": 0,
"code_path": "string",
"soure_link": "string",
"video_link": "string",
"temp_id": 0,
"spec_type": 0,
"activity": "string",
"spu": "string",
"label_id": "string",
"command_word": "string",
"description": "string",
"image_base": "string",
"fsales": 0,
"code_base": "string",
"userCollect": true,
"userLike": true
},
"priceName": 0,
"reply": null,
"replyChance": 0,
"replyCount": 0,
"mer_id": 0,
"good_list": [
{
"id": 0,
"store_name": "string",
"cate_id": "string",
"image": "string",
"sales": "string",
"price": "string",
"stock": 0,
"activity": {
"type": "string",
"id": 0
},
"unit_name": "string",
"description": "string",
"checkCoupon": true
}
],
"mapKey": "string",
"store_self_mention": 0,
"activity": [
{
"type": "string",
"id": 0
}
],
"coupons": [
{
"id": 0,
"cid": null,
"coupon_title": "string",
"start_time": "string",
"end_time": "string",
"total_count": 0,
"remain_count": 0,
"is_permanent": 0,
"status": 0,
"is_give_subscribe": 0,
"is_full_give": 0,
"full_reduction": "string",
"is_del": 0,
"add_time": 0,
"title": "string",
"integral": 0,
"coupon_price": 0,
"use_min_price": 0,
"coupon_time": 0,
"product_id": "string",
"category_id": 0,
"type": 0,
"receive_type": 0,
"start_use_time": 0,
"end_use_time": 0,
"sort": 0,
"used": null,
"is_use": true
}
],
"routine_contact_type": "string"
}
}
修改于 2022-05-05 08:15:39