WinShopAPI docs
ReferenceProduct

Get a product photo

Returns the image in slot `photoNumber` as raw bytes with its own content type. `width`, `height`, `quality` and `format` re-encode the stored image on the fly, so a client can request exactly the thumbnail it needs. 404 when the slot is empty. Requires `Permissions.Product.View`.

GET
/api/products/{productId}/photo

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

Query Parameters

photoNumber?integer
Formatint32
width?integer|null
height?integer|null
quality?integer|null
format?

Response Body

response?unknownapplication/octet-stream
curl -X GET 'https://<your-instance>/api/products/0/photo' \  -H 'Authorization: Bearer <access-token>'
null