Version: 202201
Product Image List
GET/openapi/2022-01/products/:product_id/images
Retrieve a list of all product image with pagination.
Request
Path Parameters
product_id stringrequired
Product's ID
Responses
- 200
- 422
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
images object[]
idstring
Example:
91d032e7-bbc8-47e4-8668-9ba6fe714de6product_idstring
Example:
636a07da-39eb-4829-bde9-b65fae1c28b0positioninteger
Default value:
0Example:
1srcstring
Example:
//cdn.shoplazza.com/efd33b921cacd5311a32dd03a9bc8740.pngwidthinteger
Default value:
0Example:
1588heightinteger
Default value:
0Example:
2246altstring
Example:
created_atstring
Example:
2024-04-08T07:13:28Zupdated_atstring
Example:
2024-04-08T07:13:28Z{
"images": [
{
"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"
}
]
}
{
"images": [
{
"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
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"ProductId must be a valid UUID"
]
}
{
"errors": [
"ProductId must be a valid UUID"
]
}