Search for product images of orders

I want to show product images in an order for a plugin that I am developing. But with the response returned for orders (from the shopify admin API), line_items does not contain a product object or any other object that has a link to buy a product image's cdn link, but a product identifier.

Now I plan to call the api admin again with the product ID to get images that look expensive, since I have to do this with all the elements in the order and do this for all orders.

My question is, what is the other way to get the cdn link for the product image, given the product id or what might be best for this?

Thanks in advance.

0
source share
1 answer

Let me check sell API product documents . You can get a list of products by product API, which is not expensive.

Get a list of specific products

GET /admin/products.json?ids=632910392,921728736
+1
source

All Articles