Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

returning Variant fields in products.json results by Rzipper

$
0
0

The products api allows you to specify the fields you want to return in the output.  I need product id, product handle, and variant sku(s).

 

https://YOURSTORE.myshopify.com/admin/products.json?fields=id,handle,variants returns product id, product handle, and ALL of the variant fields.

 

How do I get just the variant SKU?  I tried

variants.sku, variants[1].sku, variants{sku}, variants_sku, etc..  no luck!

 

Thanks!

R


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>