User story
„As a user, I want to retrieve the image or the available images for one or more supplier article numbers or a PZN, so I have visual support in identifying the product."
Use case · Product image retrieval
Retrieve all available images for one or more supplier article numbers or a PZN – for reliable visual identification of the product.
/api/ProductImage/query [
{
"articleNumber": "4711",
"images": [
{ "url": "…/4711_1000.webp", "mimeType": "webp", "isPrimary": true }
]
}
] User story
„As a user, I want to retrieve the image or the available images for one or more supplier article numbers or a PZN, so I have visual support in identifying the product."
Scope
One or more articles are requested by supplier article number or PZN. 0, 1 or several images are returned per article – derived from the acceptance criteria.
One or more articles per request – identified by article number or PZN.
Returned as an image URL (e.g. from a CDN) – no binary upload via this endpoint.
webp as default, jpg as fallback · max. 200 KB · resolution 800–1200 px.
isPrimary marks the main image (position 0), further images via position.
Deliberately out of scope
Request
POST with a JSON array – each entry is a supplier article number or a PZN (batch: 1..n).
| Field | Type | Meaning |
|---|---|---|
articleNumber | string | Supplier article number. |
pzn | string | PZN – alternative to articleNumber. |
One of the two fields is enough per entry. Multiple entries = multiple articles at once.
Examples
As a consumer I want to … – and send the following request:
retrieve all available images for a supplier article number
https://host_url/api/ProductImage/query[
{ "articleNumber": "4711" }
] retrieve all available images for a PZN
https://host_url/api/ProductImage/query[
{ "pzn": "4711" }
] retrieve images for several article numbers at once
https://host_url/api/ProductImage/query[
{ "articleNumber": "4711" },
{ "articleNumber": "0815" },
{ "articleNumber": "42" }
] Response
One array entry per requested article. images contains 0..n images with URL, format, dimensions and optionally text, primary flag and position.
[
{
"articleNumber": "string",
"pzn": "string",
"images": [
{
"url": "string",
"mimeType": "string",
"width": 0,
"height": 0,
"desc": "string",
"isPrimary": true,
"position": 0
}
]
}
] articleNumber / pzn Article identification (one of the two set).
images[] 0..n images – empty means: no image (HTTP 204).
url Image URL, e.g. “…/123_400.webp” (mandatory).
mimeType Image format: “webp” or “jpeg”/“jpg” (mandatory).
width / height Width and height in pixels (mandatory).
desc Text for the image (optional).
isPrimary Marks the main image (optional).
position Order; 0 = main image, otherwise numeric (optional).
Self-test
Paste the JSON response of your /api/ProductImage/query endpoint – its structure is validated instantly in the browser against this schema.
No validation yet – paste JSON and click “Validate”.
Illustrative view of the images per article – with primary flag, format and dimensions.
Become part of the API Initiative – we’ll support you through onboarding.