Close this store
POST
/ admin/ v1/ stores/ {store_id}/ close- Idempotency-Key supported
Close this store: offline at once, and erased after 30 days unless reopened. Owner only.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
addressstringrequiredThe store's address, typed out: names repeat, addresses don't.
passwordstringrequiredThe owner's account password, checked again.
Returns
200 Closed.
Errors
- 403
forbiddenNot the owner, or a demo store. - 409Work is still open, or it is already closed.
- 422
validation_failedWrong address or password. - 429
rate_limitedToo many attempts.