Retail API issue - Inconsistent item images ordering values
Guillermo Member Posts: 2
edited March 2020 in Development
We're seeing issues around items images ordering values on the API, and also we can see how some of the Admin UI API calls meant to set a featured image or sort images are failing.
For instance, I shuffled around some images of a given item on the UI and after clicking on "X Close", I can see the UI shooting a few API calls attempting to set those images ordering values and failing with error code 422:
Then, when fetching that item through the API, we see inconsistencies on the images "ordering" values:
Can this be fixed? or we should assume that sometimes there won't be an image with "ordering": "0"? If so, what would be the "Featured" image in the above example?
0 · Share on Google+
I ran into something akin to this awhile ago. See this for details --> https://community.lightspeedhq.com/en/discussion/934/assigning-images-to-items
Thanks for the input @gregarican! It's good to know it is expected that the "ordering" field won't always be set in a clean/sequential way. However, there's still a question mark around those UI API calls failing when reordering or featuring. The Admin thinks the ordering was successful. but it doesn't always go through.