Posted: August 09, 2018 at 10:54 AM Quote #210339
Hello,

I am using nopCommerce 4.0 with source and Nop API Plugin 4.0.

I can post a new product with one image to the database using a API Json string that looks like this:
{"product":{"name":"Test product one(1) from Chinavasion","short_description":"TWIN ALL TERRAIN FUN","sku":"zzzzzzzzzz1","images":[{"id":0,"position":1,"src":"https://cdn.chv.me/images/DhnuuMQK.jpg","attachment":null}]}}


It adds the product to the database with the one image.

If I try to post a product with multiple images to the database using a API Json string that looks like this:
{"product":{"name":"Test product one(1) from Chinavasion","short_description":"TWIN ALL TERRAIN FUN","sku":"zzzzzzzzzz1","images":[{"id":0,"position":1,"src":"https://cdn.chv.me/images/DhnuuMQK.jpg","attachment":null},{"id":0,"position":2,"src":"https://cdn.chv.me/images/DhnugshL.jpg","attachment":null}]}}


It returns with: The remote server returned an error: (404) Not Found.

Does anyone know how to post a product with multiple images using API 4.0?

Thanks,
Tony
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)