Appearance
商品详情
请求路径
- 请求方式:
GET
- 请求头:
Content-Type:application/x-www-form-urlencoded
- 接口地址:
/Third/Goods/goodsInfo
- 频率限制:
10秒100次
请求参数
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
goods_id | 是 | string | 商品id |
请求示例
{
"goods_id": "170858"
}
响应参数
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
code | 是 | number | 状态码:200-成功,400-失败 |
msg | 是 | string | 提示信息 |
data | 是 | object | 消息内容 |
data
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
is_sku | 是 | number | 是否是sku商品:1-是,2-否 |
attrGroup | 是 | array | 属性信息 |
skuGroup | 是 | array | 属性组合信息 |
baseInfo | 是 | object | 商品基础信息 |
bind_activity | 是 | object | 绑定拼团、砍价活动信息 |
baseInfo
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
id | 是 | string | 商品id |
uid | 是 | string | 账户id |
app_id | 是 | string | 直播间id |
goods_no | 是 | string | 三方商品编号 |
name | 是 | string | 商品名称 |
purcase_way | 是 | string | 购买方式:text-文字链接,pic-图片链接,local-本地购买,applet-小程序购买 |
price | 是 | string | 商品售价 |
pic | 是 | string | 商品主图(json) |
description | 是 | string | 商品描述 |
purcase_way_link | 是 | string | 购买方式链接 |
lottery_time | 是 | string | 抽奖次数 |
type | 是 | string | 商品类型:goods-实体商品,virtual-虚拟商品 |
status | 是 | string | 商品状态:0-已删除,1-已上架,2-已下架 |
is_lottery | 是 | string | 购买后是否赠送抽奖次数:0-不赠送,1-赠送 |
stock | 是 | string | 普通库存 |
is_display_stock | 是 | string | 是否展示剩余库存:1-显示,2-隐藏 |
discount_price | 是 | string | 折扣价 |
unit | 是 | string | 计量单位 |
recommend | 是 | string | 推荐:0-不推荐,1-推荐 |
recommend_time | 是 | string | 推荐时间 |
pics | 是 | string | 商品主图(json) |
seckill | 是 | string | 秒杀开关:1-关闭,2-开启 |
seckill_conf | 是 | string | 秒杀配置 |
num_limit_kill | 是 | string | 秒杀库存 |
desc | 是 | string | 商品描述 |
postage | 是 | string | 邮费 |
is_limit_buy | 是 | string | 限购状态:1-开启,2-关闭 |
num_limit_buy | 是 | string | 限购数量 |
begintime_limit_buy | 是 | string | 限购开始时间 |
num_start_buy | 是 | string | 起售数量 |
applet_buy_conf | 是 | string | 小程序购买信息 |
update_time | 是 | string | 记录更新时间 |
sort_sn | 是 | string | 排序 |
stock_enlarge_ratio | 是 | string | 库存放大比例 |
video_url | 是 | string | 商品视频简介 |
video_img_url | 是 | string | 商品视频封面 |
is_to_store_discount | 是 | string | 是否到店付商品:1-是,2-否 |
to_store_discount_content | 是 | string | 到店折扣内容 |
underlined_price | 是 | string | 划线价 |
selling_point | 是 | string | 商品卖点 |
is_can_refund | 是 | string | 是否可以申请退款:1-是,2-否 |
buyer_message_sw | 是 | string | 买家留言开关:1-开,2-关 |
buyer_message | 是 | string | 买家留言文案 |
create_time | 是 | string | 记录添加时间 |
groupon_id | 是 | string | 拼团活动id |
bargain_activity_id | 是 | string | 砍价活动id |
is_coupon_type | 是 | string | 是否付费优惠券商品:1-是,2-否 |
coupon_id | 是 | string | 优惠券id |
goods_category_id | 是 | string | 商品分组id |
sale_type | 是 | string | 开售类型:1-立即开售,2-定时开售 |
express_mode | 是 | string | 物流信息(仅限本地购买):1-快递发货,2-线下核销,3-无需发货和核销 |
goods_mall_need | 是 | string | 门店是否必选:1-是,2-否 |
excel_import_id | 是 | string | 批量导入文件id |
is_system_style | 是 | string | 展示样式:1-系统样式,2-自定义样式 |
is_display_share | 是 | string | 是否显示分享人:1-显示,2-不显示 |
poster_background | 是 | string | 海报背景 |
is_subject | 是 | string | 是否付费课程:1-是,2-否 |
free_watch_switch | 是 | string | 试看开关:1-开,2-关 |
free_watch_time | 是 | string | 试看时长(min) |
drag_enable | 是 | string | 是否允许拖动:1-是,2-否 |
speed_enable | 是 | string | 是否允许倍速:1-是,2-否 |
share_position | 是 | string | 分享人位置 |
qr_position | 是 | string | 二维码位置 |
date_limit_type | 是 | string | 商品使用有效期:1-不限制,2-限制 |
date_limit | 是 | string | 使用有效期限制 |
expired_auto_refund | 是 | string | 过期自动退款:1-开,2-关 |
days_limit | 是 | string | 付款后几天内有效 |
relate_goods_id | 是 | string | 群控关联根商品id |
relate_uid | 是 | string | 群控关联根uid |
review_status | 是 | string | 审核状态:1-成功,2-审核中,3-审核失败 |
is_need_online | 是 | string | 是否需要上架:1-是,2-否 |
picArr | 是 | array | 商品主图信息 |
attr_picture_sw | 是 | number | sku第一组图片信息 |
coupon_info | 是 | array | 付费优惠券信息 |
date_limit_start | 是 | string | 虚拟商品有效期开始时间 |
date_limit_end | 是 | string | 虚拟商品有效期结束时间 |
bind_activity
参数结构
参数 | 必选 | 类型 | 描述 |
---|---|---|---|
bind_status | 是 | boolean | 绑定状态:1-已绑定,2-未绑定 |
bind_type | 是 | number | 绑定类型:1-拼团活动,2-砍价活动 |
activity_name | 是 | string | 活动名称 |
响应示例
json
{
"code": 200,
"msg": "success",
"data": {
"is_sku": 2,
"attrGroup": [],
"skuGroup": [],
"baseInfo": {
"id": "170858",
"uid": "28946",
"app_id": "0",
"goods_no": null,
"name": "测试实体商品",
"purcase_way": "local",
"price": "0.01",
"pic": "",
"description": "",
"purcase_way_link": "",
"lottery_time": "0",
"type": "goods",
"status": "1",
"is_lottery": "0",
"stock": "121",
"is_display_stock": "1",
"discount_price": null,
"unit": "pcs",
"recommend": "0",
"recommend_time": "0",
"pics": "[{\"path\":\"https://aliyuncs.com/Uploads/ConsoleWechat/2***6/materialPic/2*******4.jpg\"}]",
"seckill": "1",
"seckill_conf": "",
"num_limit_kill": "0",
"desc": "<p><br></p>",
"postage": "0.00",
"is_limit_buy": "2",
"num_limit_buy": "1",
"begintime_limit_buy": "0",
"num_start_buy": "1",
"applet_buy_conf": "",
"update_time": "2024-03-18 10:33:14",
"sort_sn": "1",
"stock_enlarge_ratio": "0",
"video_url": "",
"video_img_url": "",
"is_to_store_discount": "2",
"to_store_discount_content": "",
"underlined_price": "100.00",
"selling_point": "极具性价比,近十日热评",
"is_can_refund": "1",
"buyer_message_sw": "1",
"buyer_message": "",
"create_time": "2024-03-14 13:49:24",
"groupon_id": "854",
"bargain_activity_id": null,
"is_coupon_type": "2",
"coupon_id": "0",
"goods_category_id": "73",
"sale_type": "1",
"express_mode": "1",
"goods_mall_need": "2",
"excel_import_id": "0",
"is_system_style": "1",
"is_display_share": "1",
"poster_background": "",
"is_subject": "2",
"free_watch_switch": "1",
"free_watch_time": "1",
"drag_enable": "1",
"speed_enable": "1",
"share_position": null,
"qr_position": null,
"date_limit_type": "1",
"date_limit": "",
"expired_auto_refund": "2",
"days_limit": null,
"relate_goods_id": null,
"relate_uid": null,
"review_status": "1",
"is_need_online": "1",
"review_date": null,
"picArr": [
"https://aliyuncs.com/Uploads/ConsoleWechat/2***6/materialPic/2********4.jpg"
],
"attr_picture_sw": 2,
"coupon_info": [],
"date_limit_start": "",
"date_limit_end": ""
},
"bind_activity": {
"bind_status": true,
"bind_type": 1,
"activity_name": "315拼团--未一键成团"
}
}
}