FROM CACHE - en_header

Search by SKU/Barcode - 3.0 - Feature Request

spicywith
Shopify Partner
27 0 4

This seems to be a long-standing issue and really simple feature api users want: LET US SEARCH BY SKU/BARCODE/Metafields/Custom fields. It doesn't matter if they're not forced to be unique, we can deal with that, just give us the ability to filter! It's so basic that even your own employees think it exists, but it doesn't. It's already available through the admin, just make it available through the API. Asking us to keep a DB to keep a mapping of SKU/Barcodes to product IDs and duplicate data when it's all already in your database is just weak.

</end of rant>

Replies 2 (2)
Adam_Robson
Shopify Partner
16 0 6

Couldn't agree more with Spicywith. 

How do we search by SKU and get a product response using the API? 

Adam_Robson
Shopify Partner
16 0 6

Further to my query if I simply post the API call into a browser (e.g. https://mystorename/admin/products/search.json?fields=id,handle,variants&limit=1&query=sku:20307898)... API returns a result and correctly searches and provides the information just fine, however if I try in my console application using my API key, it fails with 501 Not Implemented. Any help?

I did find this comment where some stores are enabled and others are not? The store I am working on is a ShopifyPlus client. https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/api-product-variant-search-183152