Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Post Product returning null product

Post Product returning null product

SellerActiveDev
Shopify Partner
4 0 0

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

Reply 1 (1)

Liam
Community Manager
3108 344 894

Hi SellerActiveDev,

 

This does sound strange - here are few more things that you could check or try:

  1. Permissions: Ensure that your app has the necessary write permissions for products in the customer's store.

  2. Store Settings: It's possible that the store has some unique settings or installed apps that may interfere with product creation.

  3. Product Data: Double-check the product data you're sending in the POST request. Ensure there's no missing or malformed data.

  4. 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