Simple image adding to product or variant, who can give a working example?

I read many discussions, but i still can't manage to simply upload an image to my ecom-site.

I can't figure out the body image to base64-decode and the API-tutorials doesn't really give me the answer.

it always return: "Error parsing attachment: We were unable to upload this image as this type of image is not supported. We support JPG, JPEG, GIF, PNG images"

This is my Json body:

    "variant": {
        "image": {
        "attachment": "Li8=",       // path= './'
        "filename": "plaatje.jpg"

I guess the attachment should be corrected, but how to correct/where to find this image body format?

Thx in advance,



Sign In or Register to comment.