版本:202201
查询商品专辑详情
GET/openapi/2022-01/collections/:id
通过唯一 ID 获取指定商品专辑的详细信息。
请求
Path参数
id string必填
待查询的专辑 ID(UUID 格式)。
响应
- 200
- 404
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
collection 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{
"collection": {
"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"
}
}
{
"collection": {
"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"
}
}
404
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"Collection not found"
]
}
{
"errors": [
"Collection not found"
]
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"collectionId has an invalid UUID"
]
}
{
"errors": [
"collectionId has an invalid UUID"
]
}