获取商品详情v2
GET
/v2/Goods/Detail
请求参数
Query 参数
id
string
必需
示例值:
1209
Header 参数
Content-Type
string
必需
示例值:
application/json
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/v2/Goods/Detail?id=1209' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
msg
string
必需
code
number
必需
data
object
必需
id
number
必需
third_id
number
必需
shop_id
number
店铺id
cloud_shop_id
number
必需
source
number
必需
category_id
string
京东等平台分类id
dis_category_end_id
string
必需
third_category_name
string
分类名称
third_brand_name
string
分类品牌名称
unit
string
单位(默认"个")
origin
string
产地
title
string
名称
market_price
number
市场价(单位:分)
guide_price
number
指导价(单位:分)
agreement_price
number
协议价(单位:分)
activity_price
number
营销价(单位:分)
sale_price
number
销售价(单位:分)
cost_price
number
成本价(单位:分)
activity_rate
number
营销利润率
cover
string
主图
stock
number
库存
total_stock
number
总库存
status
number
0下架1上架
sale
number
销量
created_time
number
创建时间
updated_time
number
更新时间
is_free_shipping
number
0不包邮1包邮
description
string
描述
covers
array[string]
轮播图
attributes
array [object {2}]
属性
specs
object
规格
old_goods_title
string
必需
shop_name
string
商家名称
goods_type
number
必需
tax
object
必需
is_choose
integer
必需
is_tax
integer
可选
示例
{
"msg": "string",
"code": 0,
"data": {
"id": 0,
"third_id": 0,
"shop_id": 0,
"cloud_shop_id": 0,
"source": 0,
"category_id": "string",
"dis_category_end_id": "string",
"third_category_name": "string",
"third_brand_name": "string",
"unit": "string",
"origin": "string",
"title": "string",
"market_price": 0,
"guide_price": 0,
"agreement_price": 0,
"activity_price": 0,
"sale_price": 0,
"cost_price": 0,
"activity_rate": 0,
"cover": "string",
"stock": 0,
"total_stock": 0,
"status": 0,
"sale": 0,
"created_time": 0,
"updated_time": 0,
"is_free_shipping": 0,
"description": "string",
"covers": [
"string"
],
"attributes": [
{
"name": "string",
"value": "string"
}
],
"specs": {
"names": [
{
"id": 0,
"goods_id": 0,
"name": "string",
"sort": 0
}
],
"values": [
{
"id": 0,
"goods_id": 0,
"spec_name_id": 0,
"name": "string",
"sort": 0
}
],
"options": [
{
"id": 0,
"goods_id": 0,
"spec_value_ids": "string",
"spec_value_names": "string",
"market_price": 0,
"activity_price": 0,
"guide_price": 0,
"agreement_price": 0,
"sale_price": 0,
"cost_price": 0,
"stock": 0,
"weight": 0,
"image": "string",
"status": 0,
"old_goods_id": 0
}
]
},
"old_goods_title": "string",
"shop_name": "string",
"goods_type": 0,
"tax": {
"id": "string",
"number": "string",
"name": "string",
"explain": "string",
"key_word": "string",
"kingdee_code": "string",
"kingdee_tax": "string",
"kingdee_is_gather": 0
},
"is_choose": 0,
"is_tax": 0
}
}