New Shopify Certification now available: Liquid Storefronts for Theme Developers

Predictive Search API

tomasShopwin
Shopify Partner
1 0 0

im having a 422 error with the following description: "param is missing or the value is empty: q"

Even though im sending all parameters. Down below you can see the request that im doing.

i'm also sending mi token via the header.

 

https://xxxx.myshopify.com/search/suggest.json?resources[type]=product&resources10=10&q=a

 

I couldn't find useful information in this link: https://shopify.dev/api/ajax/reference/predictive-search

I've reach out to support but they didn't have an answer for this kind of problem. 

Is this a common error? Is there anything I can do to make it work? 

 

im looking forward to your reply

Replies 0 (0)