选品分组商品列表v2
POST
/v2/GoodsGroup/ApiGoodsList
page最大为50,根据不同条件搜索获取商品,如果大于50会触发深度分页造成性能压力(大于50返回为50页数据)(如返回参数本身业务逻辑用不到忽略即可)#
{"page":1,"limit":20,"source":2,"agreement_price":{"from":20,"to":30},"guide_price":{"from":20,"to":30},"activity_price":{"from":20,"to":30},"promote_rate":{"from":20,"to":30},"activity_rate":{"from":20,"to":30},"type":"agreement_price","sort":"desc","is_free_shipping":1,"shop_words":"苹果","search_words":"电脑"}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
page
number
页码
limit
number
页数
group_id
number
可选
source
number
可选
agreement_price
object
可选
from
number
可选
to
number
可选
guide_price
object
可选
from
number
可选
to
number
可选
activity_price
object
可选
from
number
可选
to
number
可选
promotion_rate
object
可选
from
number
可选
to
number
可选
activity_rate
object
可选
from
number
可选
to
number
可选
is_free_shipping
number
可选
search_words
string
关键字
last_id
string
必需
示例
{
"page": 0,
"limit": 0,
"group_id": 0,
"source": 0,
"agreement_price": {
"from": 0,
"to": 0
},
"guide_price": {
"from": 0,
"to": 0
},
"activity_price": {
"from": 0,
"to": 0
},
"promotion_rate": {
"from": 0,
"to": 0
},
"activity_rate": {
"from": 0,
"to": 0
},
"is_free_shipping": 0,
"search_words": "string",
"last_id": "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 '/v2/GoodsGroup/ApiGoodsList' \
--header 'Content-Type: application/json' \
--data-raw '{
"page": 0,
"limit": 0,
"group_id": 0,
"source": 0,
"agreement_price": {
"from": 0,
"to": 0
},
"guide_price": {
"from": 0,
"to": 0
},
"activity_price": {
"from": 0,
"to": 0
},
"promotion_rate": {
"from": 0,
"to": 0
},
"activity_rate": {
"from": 0,
"to": 0
},
"is_free_shipping": 0,
"search_words": "string",
"last_id": "string"
}'
返回响应
🟢200成功
application/json
Body
msg
string
操作成功
code
number
1成功
data
object
可选
list
array [object {29}]
可选
count
number
总数
示例
{
"msg": "string",
"code": 0,
"data": {
"list": [
{
"stock": 0,
"title": "string",
"activity_rate": 0,
"origin": "string",
"updated_time": 0,
"cover": "string",
"third_brand_name": "string",
"agreement_price": 0,
"activity_price": 0,
"sale_price": 0,
"cost_price": 0,
"third_category_name": "string",
"guide_price": 0,
"id": 0,
"source": 0,
"market_price": 0,
"status": 0,
"created_time": 0,
"third_id": 0,
"shop_id": 0,
"real_sale": "string",
"total_stock": 0,
"sale": 0,
"unit": "string",
"rate": 0,
"category_ids": [
"string"
],
"cloud_shop_id": 0,
"is_free_shipping": 0,
"group_ids": [
"string"
]
}
],
"count": 0
}
}