版本:202201
查询商品专辑列表
GET/openapi/2022-01/collections
根据商品 ID、专辑名称、更新时间等筛选条件分页查询商品专辑列表。
请求
Query参数
ids string
指定要查询的专辑 ID 列表。
title string
按专辑名称模糊筛选。
updated_at_min string
筛选最后更新时间不早于该时间点的专辑,例如:2018-10-01T16:15:47-04:00。
updated_at_max string
筛选最后更新时间不晚于该时间点的专辑,例如:2018-10-01T16:15:47-04:00。
product_id string
商品 UUID,用于筛选包含该商品的专辑。
page int32
Page number; Must be greater than or equal to 1. Default value: 1.
limit int32
limit collection result per page; Must be between 1 and 100 (inclusive). Default value: 10.
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
- Array [
- ]
collections object[]
idstring
示例:
a60fe556-43ad-4e07-9125-507ac1bf71f7titlestring
示例:
Test-Collectiondescriptionstring
示例:
Deschandlestring
示例:
test-collectionsmartboolean
默认值:
true示例:
falseimage object
srcstring
示例:
//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpegwidthinteger
默认值:
0示例:
1920heightinteger
默认值:
0示例:
1080altstring
示例:
pathstring
示例:
9de53f9726576696b318a8d95c0946cb.jpegseo_titlestring
示例:
seo_titleseo_descriptionstring
示例:
Descseo_keywordsstring
示例:
testsort_orderstring
示例:
title-asccreated_atstring
示例:
2024-04-16T10:31:13Zupdated_atstring
示例:
2024-04-16T10:31:13Z{
"collections": [
{
"id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
"title": "Test-Collection",
"description": "Desc",
"handle": "test-collection",
"smart": false,
"image": {
"src": "//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg",
"width": 1920,
"height": 1080,
"alt": "",
"path": "9de53f9726576696b318a8d95c0946cb.jpeg"
},
"seo_title": "seo_title",
"seo_description": "Desc",
"seo_keywords": "test",
"sort_order": "title-asc",
"created_at": "2024-04-16T10:31:13Z",
"updated_at": "2024-04-16T10:31:13Z"
}
]
}
{
"collections": [
{
"id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
"title": "Test-Collection",
"description": "Desc",
"handle": "test-collection",
"smart": false,
"image": {
"src": "//cdn.shoplazza.com/9de53f9726576696b318a8d95c0946cb.jpeg",
"width": 1920,
"height": 1080,
"alt": "",
"path": "9de53f9726576696b318a8d95c0946cb.jpeg"
},
"seo_title": "seo_title",
"seo_description": "Desc",
"seo_keywords": "test",
"sort_order": "title-asc",
"created_at": "2024-04-16T10:31:13Z",
"updated_at": "2024-04-16T10:31:13Z"
}
]
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"UpdatedAtMin time format error"
]
}
{
"errors": [
"UpdatedAtMin time format error"
]
}