I have my X-Shopify-Storefront-Access-Token set up. I am now attempting a post to
Solved! Go to the solution
This is an accepted solution.
Hey @SandboxCommerce ,
To help effectively troubleshoot this issue, we might require more information. Any details you could provide - such as the value X-Request-ID header from the 400 Status API Response, the names of stores impacted, the time this error was thrown, the exact product that returned the null ID, etc - would be very helpful for the investigation.
One thing that comes to mind that could cause this problem would be if the product returning a null product ID has not been made available through your sales channel / app. You can determine this by going through that store's Shopify Admin site, finding the exact product that is causing the 400 error, and then selecting the "Manage" link next to the 'Product Availability' heading on the right hand side of the screen. From here you should confirm whether or not this product has been made available for your sales channel / app (see screenshot: https://screenshot.click/19-12-hov1k-21a7u.png). If not, your app will get a null product ID when trying to query for it.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Thank you @hassain! Your instincts were correct. I was hoping there would be a way to add the products to the sales channel for the client. The best solution was just to ask them to select all products and make them available to us. Thanks again!