Delete this store at once and for good
POST
/ admin/ v1/ stores/ {store_id}/ delete- Idempotency-Key supported
Delete this store at once and for good. Only for a store that never traded. 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
204 Deleted: gone within about a minute.
Errors
- 403
forbiddenNot the owner, or a demo store. - 409It has history, so it has to close instead.
- 422
validation_failedWrong address or password. - 429
rate_limitedToo many attempts.