获取商品详情
POST
/product/details
商品接口
请求参数
Body 参数application/json
string
可选
示例
"string"
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/product/details' \
--header 'Content-Type: application/json' \
--data-raw '"string"'
返回响应
🟢200OK
application/json
Body
code
integer <int32>
可选
data
object (商品 ModelProduct)
业务对象
brand
string
品牌
categoryIdList
array[string]
可选
categoryIdString
array[string]
可选
createTime
integer <int64>
上传时间
description
string
商品描述
detailsImageList
array[object (图片 Image) {6}]
详情图
discountRate
number
商品折扣率
expressRuleId
string
运费模版编号
fileList
array[object (图片 Image) {6}]
主图
id
string
商品编号
name
string
商品名称
noDeliveryAreaNameString
string
不邮寄地区
nonPostalAreaNameString
string
不包邮地区
price
number
可选
productCategoryList
array[object (商品分类 ProductCategory) {4}]
商品分类列表
productNumber
string
商品内部编号
productPropertyList
array[object (商品属性 ProductProperty) {4}]
可选
productSpecsList
array[object (商品规格 ProductSpecs) {13}]
商品规格列表
profitMargin
number
商品利润率
saleTime
integer <int64>
开售时间
saleTimeString
string
可选
salesVolume
integer <int32>
商品销量
settlementPrice
number
可选
shelvesTime
array[string]
可选
status
integer <int32>
可选
tags
string
标签,用空格分隔
thirdLink
string
第三方链接
userId
string
可选
msg
string
错误信息
示例
{
"code": 0,
"data": {
"brand": "string",
"categoryIdList": [
"string"
],
"categoryIdString": [
"string"
],
"createTime": 0,
"description": "string",
"detailsImageList": [
{
"createTime": 0,
"id": "string",
"name": "string",
"size": 0,
"type": "string",
"url": "string"
}
],
"discountRate": 0,
"expressRuleId": "string",
"fileList": [
{
"createTime": 0,
"id": "string",
"name": "string",
"size": 0,
"type": "string",
"url": "string"
}
],
"id": "string",
"name": "string",
"noDeliveryAreaNameString": "string",
"nonPostalAreaNameString": "string",
"price": 0,
"productCategoryList": [
{
"iconPath": "string",
"id": 0,
"name": "string",
"parentId": 0
}
],
"productNumber": "string",
"productPropertyList": [
{
"id": "string",
"name": "string",
"productId": "string",
"values": "string"
}
],
"productSpecsList": [
{
"createTime": 0,
"description": "string",
"id": "string",
"imageId": "string",
"name": "string",
"price": 0,
"productId": "string",
"properties": "string",
"salesVolume": 0,
"settlementPrice": 0,
"sku": "string",
"status": 0,
"stock": 0
}
],
"profitMargin": 0,
"saleTime": 0,
"saleTimeString": "string",
"salesVolume": 0,
"settlementPrice": 0,
"shelvesTime": [
"string"
],
"status": 0,
"tags": "string",
"thirdLink": "string",
"userId": "string"
},
"msg": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2023-02-22 09:19:03