Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 1.39 KB

image.md

File metadata and controls

49 lines (37 loc) · 1.39 KB

Image Service API

Service Description

Image Service API allows uploading of product images to be stored and used within the Zettle applications.

The service returns a imageUrl that can be added to a desired product using the Product Library API. The images can be uploaded using a byte array or a static URL, the image will be eventually available for lookup from within the Zettle apps or via the imageUrls returned by the service.

For upload restrictions, see Swagger documentation.

Note: For .jpg images, specify imageFormat as JPEG.

URL

https://image.izettle.com/v2/images

Swagger Documentation

https://image.izettle.com/swagger


Example Request

POST /v2/images/organizations/{organizationUuid}/products
{
  "imageFormat": "JPEG",
  "imageData": null,
  "imageUrl": "https://example.com/image.jpg"
}

Example Response

{
  "imageLookupKey": "0SFqIEwSEeWQb_kt6ixqNQ-10TukFTMEaekExOP02bdsw.jpeg",
  "imageUrls": [
    "https://image.izettle.com/productimage/o/0SFqIEwSEeWQb_kt6ixqNQ-10TukFTMEaekExOP02bdsw.jpeg",
    "https://image.izettle.com/productimage/L/0SFqIEwSEeWQb_kt6ixqNQ-10TukFTMEaekExOP02bdsw.jpeg"
  ]
}

Where o is a 2000 × 2000 pixels image and L is a 560 × 560 pixels image.

To apply this uploaded image on a product, use the first URL provided in the imageUrls array.