Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Is there any way (Using the REST API, rails gem specifically) to fetch multiple variants by their ids, like you can with products?
eg:
Retrieve a list of specific products.
GET /admin/api/2020-07/products.json?ids=632910392,921728736
but only this with variants:
Retrieve a product variant by IDGET /admin/api/2020-07/variants/808950810.json
Hey @Lorne_Davies,
Since variants live on the product object, it's currently not possible to retrieve multiple variants from a single call (unless all those variants belong to the same product).
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022