{"section":"known-issues","requestedLocale":"en","requestedSlug":"get-product-by-refid-returning-null-when-not-found","locale":"en","slug":"get-product-by-refid-returning-null-when-not-found","path":"docs/en/known-issues/Catalog/get-product-by-refid-returning-null-when-not-found.md","branch":"main","content":"## Summary\n\n\nThe get product by refid route (/catalog_system/pvt/products/productgetbyrefid) is returning a null instead of a simply 404 response when not finding a valid id on a given store's catalog\n\n\n\n\n#### Simulation\n\n\n1) Run the following cURL\n\ncurl --location --request GET 'https://mystore.vtexcommercestable.com.br/api/catalog_system/pvt/products/productgetbyrefid/667' \\\n--header 'Content-Type: application/json' \\\n--header 'Cookie: janus_sid=beb23e63-ccb5-4619-9ee7-f1f61deb0683'\n\nYou should get the following response if the given id doesn't exist\n\n ![](https://vtexhelp.zendesk.com/attachments/token/zLUjULwrXOEEd8hX9P0pTq8op/?name=inline-1138166273.png)\n\nThis is incorrect since the expected is a `404 - Not Found`\n\n\n\n\n#### Workaround\n\n\nUsing other APIs for GET product such as Get Product by ID if this 404 response is imperative for anything you're working with."}