- 评论
- souring相关
- 站点->sourcing
- 购物车 -> 购物车
- 个人中心->订单管理
- 产品->详情
- 订单 -> 订单
- 站点->支付方式
- 产品搜索->列表
- 购物车 -> 结算
- 商品详情->激光定制
- 商品定制
- 多买多奖
批量获取商品详情
POST
/st-pse/info/get-products
请求参数
Body 参数application/json
spu
string
可选
sku
string
可选
spuList
array[string]
可选
activityCode
integer
可选
url
string
可选
pageSource
string
可选
bytemUid
string
可选
siteId
integer
可选
queryAll
boolean
可选
默认值:
true
inventoryType
integer
可选
country
string
可选
changeInventory
integer
可选
filterLabel
integer
可选
categoryId
integer
类目ID
originType
string
可选
pageSize
integer
可选
默认值:
20
pageNum
integer
可选
默认值:
1
onShareSpu
string
可选
示例
{
"spu": "string",
"sku": "string",
"spuList": [
"string"
],
"activityCode": 0,
"url": "string",
"pageSource": "string",
"bytemUid": "string",
"siteId": 0,
"queryAll": true,
"inventoryType": 0,
"country": "string",
"changeInventory": 0,
"filterLabel": 0,
"categoryId": 0,
"originType": "string",
"pageSize": 20,
"pageNum": 1,
"onShareSpu": "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 'https://www.nihaocloud.cn/st-pse/info/get-products' \
--header 'Content-Type: application/json' \
--data-raw '{
"spu": "string",
"sku": "string",
"spuList": [
"string"
],
"activityCode": 0,
"url": "string",
"pageSource": "string",
"bytemUid": "string",
"siteId": 0,
"queryAll": true,
"inventoryType": 0,
"country": "string",
"changeInventory": 0,
"filterLabel": 0,
"categoryId": 0,
"originType": "string",
"pageSize": 20,
"pageNum": 1,
"onShareSpu": "string"
}'
返回响应
🟢200成功
application/json
Body
array of:
sameMiniSale
integer
可选
detailUrl
string
商详链接
url
string
可选
name
string
可选
spu
string
可选
imgList
array[string]
商品图
img
string
商品主图
imgInfoList
array[string]
详情图
video
string
商品视频
videoDuration
string
视频时长
videoImgUrl
array[string]
视频第一帧图
videoCover
string
视频封面图
salesCount
integer
可选
reviewScore
number
可选
reviewNum
integer
评论数
crumbs
array[object (CrumbVo) {4}]
可选
name
string
可选
url
string
可选
id
integer
可选
categroyId
integer
可选
bestSellerResult
object (BestSellerResult)
榜单信息
mainCategoryId
integer
主类目id
mainCategoryName
string
主类目名称
rank
integer
当前排名
rank10d
integer
10天排名
detailJson
string
可选
sizeRatioJson
string
可选
sizeRatioUnitJson
string
可选
tdk
object (TdkVo)
可选
title
string
可选
description
string
可选
keywords
string
可选
icon
string
可选
pageTitle
string
可选
discount
number
商品级别 最大折扣
minPrice
number
价格
maxPrice
number
可选
minDiscountPrice
number
折扣价
maxDiscountPrice
number
可选
steerMaxPrice
number
可选
steerMinPrice
number
可选
stagingMaxPrice
number
分期价格
stagingMinPrice
number
可选
itemList
array[object (ProductSkuItemVO) {18}]
可选
id
integer
可选
img
string
可选
miniSale
integer
最小起订量
weight
integer
重量
color
string
可选
sku
string
可选
size
string
可选
spec
string
可选
price
number
原价
discountPrice
number
折扣价
discount
number
折扣
limitDiscountPrompt
string
限购折扣提示
inventory
integer
可选
freeShipping
integer
可选
isShareSku
boolean
是否共享sku
tieredPriceInfo
array[object (ProductTieredPriceInfo) {5}]
可选
默认值:
new ArrayList<>()
batchSale
integer
一包多件商品起批量
customizedType
integer
可选
activityCode
array[integer]
可选
默认值:
new HashSet<>()
freeShippingAmount
number
免邮门槛
activityConfigList
array[object (SiteActivityConfigVo) {9}]
活动配置信息
activityCode
integer
活动编码
currentDate
string
当前时间
countDownTime
integer
活动结束时间秒
detailStyleConfig
object (StyleConfig)
详情页活动配置
listStyleConfig
object (StyleConfig)
列表页活动配置
sort
integer
活动优先级
endMatch
boolean
是否结束匹配
activityType
string
可选
折扣活动 展示折扣
discount
countDownLimit
integer
显示时间限制
priceRule
object (PriceRuleVo)
价格规则
rules
array[object (Rule) {3}]
规则
useOriginalPrice
boolean
可选
limitCount
integer
sku购买限购数量
limitOff
number
限购折扣
createdAt
string
可选
attributes
array[string]
可选
colors
array[string]
可选
site
array[string]
可选
keywords
array[string]
可选
similarProducts
array[object (SiteProductVO) {39}]
可选
spu
string
可选
img
string
可选
video
string
视频链接
videoCover
string
视频封面图
minPrice
number
可选
maxPrice
number
可选
productName
string
可选
productNameEnUrl
string
商品英文名Url
minDiscountPrice
number
折扣价
maxDiscountPrice
number
可选
steerMaxPrice
number
可选
steerMinPrice
number
可选
stagingMaxPrice
number
分期价格
stagingMinPrice
number
可选
detailUrl
string
可选
skuImages
string
sku图片集合
activityCode
array[integer]
活动编码列表
默认值:
new HashSet<>()
activityConfigList
array[object (SiteActivityConfigVo) {9}]
活动配置信息
salesCount
integer
销量
reviewScore
number
评价
reviewNum
integer
评论数
discount
number
折扣
isSubscriptFlag
boolean
是否显示活动角标
默认值:
true
inventoryType
integer
仓库类型
默认值:
0
shipOutDays
array[string]
发货时间
eventAttributionProperties
object (MapObject)
事件属性集
addList
boolean
可选
默认值:
false
isPublished
boolean
是否已刊登
默认值:
false
id
integer
可选
默认值:
0
newScore
number
新品排序分
oldScore
number
老品排序分
hasOrder
boolean
是否下单过
bestSellerResult
object (BestSellerResult)
榜单信息
supplierBrandImg
string
供应商图片透明图
isCustomize
boolean
可选
isLaserCustomize
boolean
可选
minWeight
integer
最小重量
miniSale
integer
最小起订量
extraType
integer
可选
0-普通
1-oem或爆款砍价商品
默认值:
0
categories
array[string]
可选
recStrategy
integer
可选
默认值:
1
shield
string
屏蔽日期
isNewSize
integer
尺码相关
sizeImage
string
可选
isShowListType
integer
「已废弃」
默认值:
0
skuShowType
integer
可选
默认值:
0
seos
array[object (SeoVo) {4}]
可选
默认值:
new ArrayList<>()
rel
string
可选
media
string
可选
href
string
可选
hreflang
string
可选
supplierCodeList
array[string]
可选
inventoryType
integer
当前库存类型
默认值:
0
isSubscriptFlag
boolean
是否显示活动角标
默认值:
true
inventoryLimit
integer
可选
是否库存限制
默认值:
0
inventoryShow
integer
是否展示库存
默认值:
0
inventoryPrompt
string
库存加超提示语
noindex
integer
禁止收录索引
默认值:
0
inventoryList
array[object (InventoryVo) {4}]
商品仓库列表
默认值:
new ArrayList<>()
title
string
文案
inventoryType
integer
仓库类型
bubble
string
气泡文案
notice
string
公告
fitType
object (MapString)
可选
key
string
可选
productNameEnUrl
string
商品英文名Url
offShelves
boolean
是否下架
默认值:
false
promotionAccess
boolean
可选
是否促销接入 true接入,商详加购价格,服务端计算;false不接入,保持老逻辑,还是客户端计算
默认值:
true
totalInventory
integer
总库存数
eventAttributionProperties
object (MapObject)
事件属性集
hasOrder
boolean
是否下单过
isCustomize
boolean
可选
customizedType
integer
可选
extraType
integer
可选
默认值:
0
deliveryProbability
number
到货概率
deliveryAgeing
string
到货时效
supplierBrandImg
string
供应商图片透明图
addList
boolean
是否已铺货
默认值:
false
isPublished
boolean
是否已刊登
默认值:
false
buyMoreRefundDes
object (ContentVo)
可选
title
string
可选
desc
string
可选
benefit
string
可选
logo
string
可选
sort
integer
可选
shippingDateTime
string
可选
发货日期(预售商品)
footerKeywordList
array[object (KeywordListVO) {18}]
可选
associationId
integer
可选
id
integer
可选
categoryId
integer
可选
keywordName
string
可选
keywordUrl
string
可选
keywordNameEscape
string
可选
storeId
integer
语言id
language
integer
语言id,同上
sort
integer
可选
keywordType
integer
关键词产品数量
keywordTitle
string
可选
keywordKeywords
string
可选
keywordDescription
string
可选
keywordInfo
string
可选
newKey
boolean
可选
siteIds
array[integer]
可选
languageAssociationId
integer
可选
同一个关键字不同语言相关联的id,保存英语下的id
siteProductNum
object (MapInteger)
站点下的产品数量
示例
[
{
"detailUrl": "",
"url": "",
"name": "",
"spu": "",
"imgList": [
""
],
"img": "",
"imgInfoList": [
""
],
"video": "",
"videoDuration": "",
"videoImgUrl": [
""
],
"videoCover": "",
"salesCount": 0,
"reviewScore": 0.0,
"reviewNum": 0,
"crumbs": [
{
"name": "",
"url": "",
"id": 0,
"categroyId": 0
}
],
"bestSellerResult": {
"mainCategoryId": 0,
"mainCategoryName": "",
"rank": 0,
"rank10d": 0
},
"detailJson": "",
"sizeRatioJson": "",
"sizeRatioUnitJson": "",
"tdk": {
"title": "",
"description": "",
"keywords": "",
"icon": "",
"pageTitle": ""
},
"discount": 0.0,
"minPrice": 0.0,
"maxPrice": 0.0,
"minDiscountPrice": 0.0,
"maxDiscountPrice": 0.0,
"steerMaxPrice": 0.0,
"steerMinPrice": 0.0,
"stagingMaxPrice": 0.0,
"stagingMinPrice": 0.0,
"itemList": [
{
"id": 0,
"img": "",
"miniSale": 0,
"weight": 0,
"color": "",
"sku": "",
"size": "",
"spec": "",
"price": 0.0,
"discountPrice": 0.0,
"discount": 0.0,
"inventory": 0,
"freeShipping": 0,
"tieredPriceInfo": [
{
"num": 0,
"useOriginalPrice": false,
"title": "",
"off": 0.0,
"isLimit": false
}
],
"batchSale": 0
}
],
"activityCode": [
0
],
"activityConfigList": [
{
"activityCode": 0,
"currentDate": "",
"countDownTime": 0,
"detailStyleConfig": {
"icon": "",
"pcW": 0,
"pcH": 0,
"h5W": 0,
"h5H": 0,
"appSize": "",
"iconPosition": "",
"title": "",
"fontSize": "",
"titleColor": "",
"namePrefix": "",
"namePrefixColor": "",
"countDownColor": "",
"countDownIcon": "",
"showCountDown": false,
"linkUrl": "",
"actType": "",
"bgType": 0,
"bgColor": "",
"bgImg": ""
},
"listStyleConfig": {
"icon": "",
"pcW": 0,
"pcH": 0,
"h5W": 0,
"h5H": 0,
"appSize": "",
"iconPosition": "",
"title": "",
"fontSize": "",
"titleColor": "",
"namePrefix": "",
"namePrefixColor": "",
"countDownColor": "",
"countDownIcon": "",
"showCountDown": false,
"linkUrl": "",
"actType": "",
"bgType": 0,
"bgColor": "",
"bgImg": ""
},
"sort": 0,
"endMatch": false,
"activityType": "",
"countDownLimit": 0
}
],
"priceRule": {
"rules": [
{
"title": "",
"off": 0.0,
"num": 0
}
],
"useOriginalPrice": false,
"limitCount": 0,
"limitOff": 0.0
},
"createdAt": "",
"attributes": [
""
],
"colors": [
""
],
"site": [
""
],
"keywords": [
""
],
"similarProducts": [
{
"spu": "",
"img": "",
"video": "",
"videoCover": "",
"minPrice": 0.0,
"maxPrice": 0.0,
"productName": "",
"productNameEnUrl": "",
"minDiscountPrice": 0.0,
"maxDiscountPrice": 0.0,
"steerMaxPrice": 0.0,
"steerMinPrice": 0.0,
"stagingMaxPrice": 0.0,
"stagingMinPrice": 0.0,
"detailUrl": "",
"skuImages": "",
"activityCode": [
0
],
"activityConfigList": [
{
"activityCode": 0,
"currentDate": "",
"countDownTime": 0,
"detailStyleConfig": {
"icon": "",
"pcW": 0,
"pcH": 0,
"h5W": 0,
"h5H": 0,
"appSize": "",
"iconPosition": "",
"title": "",
"fontSize": "",
"titleColor": "",
"namePrefix": "",
"namePrefixColor": "",
"countDownColor": "",
"countDownIcon": "",
"showCountDown": false,
"linkUrl": "",
"actType": "",
"bgType": 0,
"bgColor": "",
"bgImg": ""
},
"listStyleConfig": {
"icon": "",
"pcW": 0,
"pcH": 0,
"h5W": 0,
"h5H": 0,
"appSize": "",
"iconPosition": "",
"title": "",
"fontSize": "",
"titleColor": "",
"namePrefix": "",
"namePrefixColor": "",
"countDownColor": "",
"countDownIcon": "",
"showCountDown": false,
"linkUrl": "",
"actType": "",
"bgType": 0,
"bgColor": "",
"bgImg": ""
},
"sort": 0,
"endMatch": false,
"activityType": "",
"countDownLimit": 0
}
],
"salesCount": 0,
"reviewScore": 0.0,
"reviewNum": 0,
"discount": 0.0,
"isSubscriptFlag": false,
"inventoryType": 0,
"shipOutDays": [
""
],
"eventAttributionProperties": {
"": {}
},
"addList": false,
"isPublished": false,
"id": 0,
"newScore": 0.0,
"oldScore": 0.0,
"hasOrder": false,
"bestSellerResult": {
"mainCategoryId": 0,
"mainCategoryName": "",
"rank": 0,
"rank10d": 0
},
"supplierBrandImg": "",
"isCustomize": false,
"minWeight": 0
}
],
"categories": [
""
],
"recStrategy": 0,
"shield": "",
"isNewSize": 0,
"sizeImage": "",
"isShowListType": 0,
"skuShowType": 0,
"seos": [
{
"rel": "",
"media": "",
"href": "",
"hreflang": ""
}
],
"supplierCodeList": [
""
],
"inventoryType": 0,
"isSubscriptFlag": false,
"inventoryLimit": 0,
"inventoryShow": 0,
"inventoryPrompt": "",
"noindex": 0,
"inventoryList": [
{
"title": "",
"inventoryType": 0,
"bubble": "",
"notice": ""
}
],
"fitType": {
"": ""
},
"productNameEnUrl": "",
"offShelves": false,
"promotionAccess": false,
"totalInventory": 0,
"eventAttributionProperties": {
"": {}
},
"hasOrder": false,
"isCustomize": false,
"extraType": 0,
"deliveryProbability": 0.0,
"deliveryAgeing": "",
"supplierBrandImg": "",
"addList": false,
"isPublished": false,
"buyMoreRefundDes": {
"title": "",
"desc": "",
"benefit": "",
"logo": "",
"sort": 0
},
"footerKeywordList": [
{
"associationId": 0,
"id": 0,
"categoryId": 0,
"keywordName": "",
"keywordUrl": "",
"keywordNameEscape": "",
"storeId": 0,
"language": 0,
"sort": 0,
"keywordType": 0,
"keywordTitle": "",
"keywordKeywords": "",
"keywordDescription": "",
"keywordInfo": "",
"newKey": false,
"siteIds": [
0
],
"languageAssociationId": 0,
"siteProductNum": {
"0": 0
}
}
]
}
]
修改于 2025-05-19 07:24:22