Spaces in SKU allowed in Search API?

janjordaan
New Member
1 0 0

Are spaces (whitespace) allowed in the SKU when doing a search via the API? For example "ABC 123 123 123"

If not, is there a way to get around this? The SKU format cannot change.

 

0 Likes
L_J_K
Shopify Staff
Shopify Staff
227 29 33

Hey @janjordaan 

So, the search.json resource would not be able to be used with the product variant resource to find the SKU over API unfortunately -  search.json is used solely right now with the Customer and Gift Card resources.

It's possible though via the Storefront Search directly in browser to find the SKU via https://yourstore.myshopify.com/search?type=product&q=variants.sku:701 - though I'm unsure if that's helpful in your case.

Noted, I can see how this would be useful however, and will ensure your voice gets added to include this as a feature. 

 

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
0 Likes