Can I check if a Shop is Locked to avoid API queries that return locked Response code = 423

onspruce
Tourist
6 0 1
 

Hi,

Is there anything I can check for a Shop via the REST admin API to determine if it is locked, so I can avoid getting the following error:

Failed. Response code = 423. Response message = Locked (This store is unavailable).

https://shopify.dev/docs/admin-api/rest/reference/store-properties/shop 

 

Thanks,


KG


@onspruce wrote:
 

Hi,

Is there anything I can check for a Shop via the REST admin API to determine if it is locked, so I can avoid getting the following error:

Failed. Response code = 423. Response message = Locked (This store is unavailable).

https://shopify.dev/docs/admin-api/rest/reference/store-properties/shop 

 

Thanks,


KG


Can anyone from Shopify team answer this question please? I read this topic https://community.shopify.com/c/API-Announcements/Upcoming-change-to-API-response-status-code-for-lo...

What you are saying is that we can behave locked stores as frozen ones. We need to get this information somewhere like Shop. Also a webhook to notify the change of the status would be helpful.

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
0 Likes