Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hello, currently I'm having an issue posting a product to a specific store. When posting a new product using
/admin/api/2023-04/products.json
it returns an OK response, however the product object it should be returning is null.
Some things I have tested:
-When posting the same request to my own test store, the product object is returned fine.
-Other API calls to the store return fine (location, products, etc)
-We found that the customer's store was not live initially. We guided them through the launch checklist, however the issue still remains.
Thanks
Hi SellerActiveDev,
This does sound strange - here are few more things that you could check or try:
Permissions: Ensure that your app has the necessary write permissions for products in the customer's store.
Store Settings: It's possible that the store has some unique settings or installed apps that may interfere with product creation.
Product Data: Double-check the product data you're sending in the POST request. Ensure there's no missing or malformed data.
Check for Errors: Check if the API response includes any error messages or codes which you might have missed.
I hope this helps, and let me know if you have any other questions.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog