Documentation
Feedback
Guides

Integration Guides
Catalog
Images

Product images are associated with SKUs.

To learn more, see this article about Best practices with catalog images. It may also be helpful to compress the images you use in your store.

Data Model

FieldDescriptionRequiredTypeDefault
IdID of SkuImage (SkuFileId). This is the ID that is used to delete/update it.NoIntegerAutoIncrement
ArchiveIdUnique identifier of the Image file.NoInteger-
SkuIdID of SKUYesIntegernull
NameName of SKU’s fileNo*Stringnull
IsMainSet the image as the main image for the product.NoBoolean (true/false)null
LabelImage labelNoStringfalse
UrlExternal image URLYesString-

API implementation

Register SKU image

To register an image to an SKU, it must be hosted on an external server and with read permission. Then you may use the Create SKU file API endpoint.

Example request

Body:

{
    "IsMain": true,
    "Label": "Main",
    "Name": "Nike-Red-Janoski-1",
    "Url": "https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg"
}

Response:

{
    "Id": 520,
    "SkuId": 70,
    "ArchiveId": 155467,
    "IsMain": true,
    "Label": "Main"
}

Change SKU image

To change an existing SKU image that already existed, you can use the Update SKU file endpoint.

️ In order to update a SKU file the image needs to be uploaded again.

Example request

Body:

{
    "IsMain": true,
    "Label": "Main2",
    "Name": "Nike-Red-Janoski-1",
    "Url": "https://m.media-amazon.com/images/I/610G2-sJx5L._AC_UX695_.jpg"
}

Response:

{
    "Id": 520,
    "SkuId": 70,
    "ArchiveId": 155467,
    "IsMain": true,
    "Label": "Main2"
}

Remove SKU Image

To remove an SKU image use the Delete SKU image by file ID API request. You will need the SkuFileId.

Remove all SKU images

To delete all images of one specific SKU, use the Delete all SKU file API endpoint.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page