How can get product status at the 2020-10 REST API?

Little
New Member
3 0 0

I get the product by REST, but I can't find the status. How can I do it?

https://shopify.dev/docs/admin-api/rest/reference/products/product#show-2020-10

https://xxxx.myshopify.com/admin/api/2020-10/products/xxxx.json

{
"product": {
"id": 5718794207384,
"title": "xxxxxx",
"body_html": "<p><img src=\"https://xxxxxx/itemdescription/52602f1ea68bb2efafd235c4a97db728_h300_i0_0x0.webp\" style=\"display:block;margin:0;padding:0\"></p>\n",
"vendor": "xxxx",
"product_type": "x",xxx
"created_at": "2020-09-04T02:45:02-07:00",
"handle": "xxxxx",
"updated_at": "2020-10-06T21:55:46-07:00",
"published_at": "2020-09-23T18:00:47-07:00",
"template_suffix": null,
"published_scope": "web",
"tags": "",
"admin_graphql_api_id": "gid://shopify/Product/5718794207384",
"variants": [
0 Likes
Prabhat
Shopify Expert
74 5 14

Looks likes Shopify have again removed it without any notification .
We may determine it by published_scope i guess 

Solution Expert
- Did I solved your issue? Like & Mark As Solution to help the community
0 Likes
vix
Shopify Staff
Shopify Staff
534 105 103

Are you seeing something different? When I look at the docs I see: 

 

07-18-gy17v-11hug

Or are you saying that although stated in the docs, you are not getting this field returned?

Vix | Developer Support @ 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

0 Likes
Little
New Member
3 0 0

Yes, I can't get this field in the response.

0 Likes
Little
New Member
3 0 0

Yes, I think so. I see active is multiple channels in the system.

0 Likes
GaryMercer
New Member
1 0 0

I think there is a bug.   I can get it to return the status, but not consistently.  I had a draft product available on 0 channels, I then made it available on a channel.   The API then returned the status.  I can then remove the channel and it still returns the status.  However, I i have lots of 'draft' products that is doesn't return the status of.

0 Likes
alex-ht-octane
New Member
2 0 0

Any update on this?

I query my products using

https://(my-store-name).myshopify.com/admin/api/2021-01/products.json

 

I have 3 products in my store. In the result, one of them has the `status` field, and other two do not.

How do I get status for all my products?...

 

0 Likes
alex-ht-octane
New Member
2 0 0

We have submitted the issue through Shopify's partners dashboard and got a response from Shopify developers.

They admit there is a bug in REST API.

Their recommendation is to use GraphQL API for now, until they find and fix the bug in REST API (no time estimates are given for that).

0 Likes
marek8
New Member
1 0 0

Is there any way of being notified when this bug has been addressed? Thank you 

0 Likes