Shopify product API is not consistent in returning status attribute

JustinKillian
Tourist
14 0 0

Hi,

We are facing issues with Shopify product API. It returns status attribute for some products and for some status attribute is missing. Two example are attached below

Product 1 (With status returned):
Request: https://pleasure-forge.myshopify.com/admin/api/2020-10/products/6264151277749.json
Response:

JustinKillian_2-1613729976050.png

Product 2 (Missing status attribute in API response):
Request:
https://pleasure-forge.myshopify.com/admin/api/2020-10/products/6334212309173.json
Response:

JustinKillian_3-1613729989729.png

Can someone please let us know what is the reason for this inconsistency and when it will be corrected?

0 Likes

@JustinKillian wrote:

Hi,

We are facing issues with Shopify product API. It returns status attribute for some products and for some status attribute is missing. Two example are attached below

Product 1 (With status returned):
Request: https://pleasure-forge.myshopify.com/admin/api/2020-10/products/6264151277749.json
Response:

JustinKillian_2-1613729976050.png

Product 2 (Missing status attribute in API response):
Request:
https://pleasure-forge.myshopify.com/admin/api/2020-10/products/6334212309173.json
Response:

JustinKillian_3-1613729989729.png

Can someone please let us know what is the reason for this inconsistency and when it will be corrected?


I'm dealing with this inconsistency as well. I guess these are old products. If you change the status from admin page, they will start to show up in API calls as well. Interestingly, Shopify sends this information in webhooks for all of the products.

Co-Founder / Developer at: merchbees
Merchbees Low Stock Alert - Keep track of your low stock items by email and slack
Merchbees Inventory Value - Know your inventory value and quantity in real-time
Push Down & Hide Out of Stock - Move out of stock products to the bottom of the collection to improve SEO & hide/ unhide automatically