Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shopify - Retrieves multiple variant detail by multiple variant id

Is there any way to get multiple variant details using multiple variant id in single shopify call. Actually, I want to get price of all product variant which are listed in order using shopify call.

I know following way for get single variant detail using id

GET /admin/variants/#{variant_id}.json

/admin/variants/808950810.json

like image 592
tejash patel Avatar asked Dec 01 '18 11:12

tejash patel


1 Answers

If you want the price of all the variants of a product, make one API call, and use the product ID. You'll get back all the variants, making it trivial to iterate through them to get prices.

like image 67
David Lazar Avatar answered Oct 06 '22 00:10

David Lazar