List Products API Query (Formatting) Issue? #7091
Unanswered
msdwebtech
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
When we hit our product API endoint (/admin/products) as a POST and pass this JSON in as a query parameter using the Medusa product ID, it works perfectly.
{ "id" : "prod_01HVP411Q2DXHKCN4P8S2F9HH2" }
However, when we try the exact same query and search via SKU (and we've verified that SKU is on the proper product's variant already in Medusa)
{ "q" : "860000844014" }
We get the following error:
500 - "{"code":"unknown_error","type":"unknown_error","message":"An unknown error occurred."}"
We are following the documentation EXACTLY (we think).
[(https://docs.medusajs.com/api/admin#products_getproducts)]
What's wrong with the query by SKU?
Beta Was this translation helpful? Give feedback.
All reactions