I was looking through the documentation and i cant seem to find how you can determine the featured image for a product.
[In your admin, the featured image is the first one in the list, and you can re-order your images.]
Actually in the API it looks like there is no “featured image” field available. I know in the template you have access to it.
so I am assuming that when I access the product images through the api I just need to find the image that has the position of 1. That I am guessing is the featured image. I have done some testing with a live store and it seems like the featured image is at the position of 1.
I finished the work on the theme I was building for a designer. I found the api and got a couple of ideas, so I stayed for that :)
I know this is an old thread, but is there anyway to retrieve only the featured image from the product rest API endpoint e.g. /products.json?fields=featured_image? It would be very useful, for example if you wanted to create something similar to the product admin screen, where there is small thumbnail of the product image ... could be done by returning a single value / object rather than an array of X images.