I’m currently using the createOrder() API.
So I wanted to add my product’s image to the JSON file so it’s visible in my orders but unfortunately I get following error:

My code looks like this:
Assignment:

JSON file:

Can you help me with this problem?
Thank you already!
Your code is running on backend?
And what is different here, between your code and this one…
const newOrderId = order._id;
Yes it is running on backend
My code looks like this:
let fullOrder =
order._id = „123345556678890“
regarding your provided example above you are using →
…mediaItem.id… and not —> mediaItem. _id
I changed it to …mediaItem._id but it still doesn’ work.
I’ve got the same error message
It’s hard to tell if this is the same issue without the code generating the issue or the full object/JSON but it’s likely that this is a known issue and the team is currently working on a fix.
At the moment the mediaItem.src
you’re getting back from createOrder
is incorrect. It should be:
media:"wix:image://v1/id.jpg/ **file.jpg** #originWidth=5760&originHeight=3840"
But it currently is:
media:"wix:image://v1/id.jpg#originWidth=5760&originHeight=3840"
noticed…
Anthony already replied. Thanks for info.