Cyclos 4.13 error for POST /{user}/orders

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
jakob.schumann
Posts: 15
Joined: Thu Apr 23, 2020 5:37 pm

Cyclos 4.13 error for POST /{user}/orders

Post by jakob.schumann »

Hello,

with the new 4.13 I'm trying to use the new POST /{user}/orders endpoint, the parameters seem correct now. No more 422 Unprocessable Entity from missing elements, with e.g.

Code: Select all

 {"properties":["deliveryAddress.zip"],"propertyErrors":{"deliveryAddress.zip" ...}
But it seem to have a problem returning the created order, I'm getting a 404 Not Found with:

Code: Select all

{"entityType":"Order","key":"-2467653671196509392"}
The key changes with each request (with the same parameters), so it seem's to be really the encoded autoincrement ID of the new order, but why can't cyclos find it?

Thanks in advance,
Jakob
Post Reply