Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!

How to Check if a Shopify Store is Unavailable or Disabled Using the API?

How to Check if a Shopify Store is Unavailable or Disabled Using the API?

ninja12345
Visitor
2 0 3

We're using the Shopify API to access data from stores. However, when a store gets disabled or becomes unavailable, our application currently throws unnecessary errors due to failed API calls.

Is there a recommended way to programmatically detect if a store is disabled, unavailable, or no longer accessible via the API, so we can handle it more gracefully?

Any specific error codes or response patterns we should check for?

Thanks in advance for any guidance!

Replies 0 (0)