Product Images
Product Images
Images associated with a product.
This is archived documentation. The V2 Catalog API is deprecated. For current API documentation, see the Catalog API.
Product Image Object Properties
List Product Images
Gets the images associated with a product. (Default sorting is by image id, from lowest to highest.)
GET /stores/{store_hash}/v2/products/{product_id}/images
Filters
There are no filter parameters specific to product images.
Pagination
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 product_images are returned by default.
Response
Example JSON returned in the response:
Get a Product Image
Gets a product image.
GET /stores/{store_hash}/v2/products/{product_id}/images/{id}
Response
Example JSON returned in the response:
Get a Count of Product Images
Gets a count of the number of product images in the store.
GET /stores/{store_hash}/v2/products/images/count
Response
Example JSON returned in the response:
Create a Product Image
Creates a new product image.
POST /stores/{store_hash}/v2/products/{product_id}/images
Read-only Properties
The following properties of the product image are read-only. If one or more of these properties are included in the request, it will be rejected.
- id
- date_created
- product_id
Requirements
The following properties of the product image are required. The request won’t be fulfilled unless these properties are valid.
- image_file
Response
Example JSON returned in the response:
Update a Product Image
Updates an existing product image.
PUT /stores/{store_hash}/v2/products/{product_id}/images/{id}
Read-only Properties
The following properties of the product image are read-only. If one or more of these properties are included in the request, it will be rejected.
- id
- product_id
- date_created
Requirements
The following properties of the product image are required. The request won’t be fulfilled unless these properties are valid.
Response
Example JSON returned in the response:
Delete a Product Image
Deletes a product image.
DELETE /stores/{store_hash}/v2/products/{product_id}/images/{id}
Delete Multiple Product Images
Deletes multiple product images.
DELETE /stores/{store_hash}/v2/products/{product_id}/images
Pagination
Parameters can be added to the URL query string to paginate the collection. The maximum limit is 250. If a limit isn’t provided, up to 50 product_images are returned by default.