How to check whether a store is permanently closed through REST API?

Hi there,

We have a Shopify live app. We noticed there are lot of stores which has added our app and later closed the store. I want to deactivate such clients in our records.

How to check whether a store is permanently closed (not temporarily closed/frozen) using REST API?

Any pointers would be appreciated.

Hi there, I’m investigating in this problem too. The only difference I’ve found between a permanently closed and a temporarily closed store is that an API call to a permanently closed store will respond with a 404 Not found while an API call to a temporarily closed store will respond with a 402 Payment required.

Here’s the response codes documentation: https://shopify.dev/docs/api/usage/response-codes