Skip to content

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_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • addressstringrequired

    The store's address, typed out: names repeat, addresses don't.

  • passwordstringrequired

    The owner's account password, checked again.

Returns

200 Closed.

Errors

  • 403forbiddenNot the owner, or a demo store.
  • 409Work is still open, or it is already closed.
  • 422validation_failedWrong address or password.
  • 429rate_limitedToo many attempts.