WinShopAPI docs
ReferenceProduct

List a product's photos

Returns the photo slots of the product with their metadata. Fetch the image bytes themselves from `GET {productId}/photo`. Requires `Permissions.Product.View`.

GET
/api/products/{productId}/photos

Authorization

Bearer
headerAuthorizationBearer <token>

OAuth 2.0 client credentials. Obtain a client id/secret from Winshop support ([email protected]), then POST to the token URL.

Path Parameters

productId*integer
Formatint32

Response Body

application/json
  1. response

Metadata of a product's photo slots; the images themselves are served by the product photo endpoint.

guid?string
Formatguid
id?integer
Formatint32
photoUrl1?|
Lengthlength <= 256
photoUrl2?|
Lengthlength <= 256
photoUrl3?|
Lengthlength <= 256
photoUrl4?|
Lengthlength <= 256
photoUrl5?|
Lengthlength <= 256
photoUrl6?|
Lengthlength <= 256
productId?integer
Formatint32
curl -X GET 'https://<your-instance>/api/products/0/photos' \  -H 'Authorization: Bearer <access-token>'
{  "guid": "string",  "id": 0,  "photoUrl1": "string",  "photoUrl2": "string",  "photoUrl3": "string",  "photoUrl4": "string",  "photoUrl5": "string",  "photoUrl6": "string",  "productId": 0}