版本:202201
查询商品图片详情
GET/openapi/2022-01/products/:product_id/images/:image_id
通过商品图片 ID 获取指定商品图片的详情。
请求
Path参数
product_id string必填
商品 ID。
image_id string必填
图片 ID。
响应
- 200
- 422
200
- application/json
- 数据结构
- 示例
- Result
数据结构
image object
idstring
示例:
91d032e7-bbc8-47e4-8668-9ba6fe714de6product_idstring
示例:
636a07da-39eb-4829-bde9-b65fae1c28b0positioninteger
默认值:
0示例:
1srcstring
示例:
//cdn.shoplazza.com/efd33b921cacd5311a32dd03a9bc8740.pngwidthinteger
默认值:
0示例:
1588heightinteger
默认值:
0示例:
2246altstring
示例:
created_atstring
示例:
2024-04-08T07:13:28Zupdated_atstring
示例:
2024-04-08T07:13:28Z{
"image": {
"id": "91d032e7-bbc8-47e4-8668-9ba6fe714de6",
"product_id": "636a07da-39eb-4829-bde9-b65fae1c28b0",
"position": 1,
"src": "//cdn.shoplazza.com/efd33b921cacd5311a32dd03a9bc8740.png",
"width": 1588,
"height": 2246,
"alt": "",
"created_at": "2024-04-08T07:13:28Z",
"updated_at": "2024-04-08T07:13:28Z"
}
}
{
"image": {
"id": "91d032e7-bbc8-47e4-8668-9ba6fe714de6",
"product_id": "636a07da-39eb-4829-bde9-b65fae1c28b0",
"position": 1,
"src": "//cdn.shoplazza.com/efd33b921cacd5311a32dd03a9bc8740.png",
"width": 1588,
"height": 2246,
"alt": "",
"created_at": "2024-04-08T07:13:28Z",
"updated_at": "2024-04-08T07:13:28Z"
}
}
422
- application/json
- 数据结构
- 示例
- Result
数据结构
errorsstring[]
{
"errors": [
"ProductId must be a valid UUID"
]
}
{
"errors": [
"ProductId must be a valid UUID",
"ImageId must be a valid UUID"
]
}