Skip to content

Confirm reset

POST/store/v1/customers/password-reset/confirm
  • Idempotency-Key supported

Choose a new password with the emailed code. Signs out every other session and signs in. An account that waits for the store's approval keeps the new password and keeps waiting (202).

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

  • emailstringrequired
  • codestringrequired

    The 8-character code from the email. Case, spaces and dashes are ignored.

  • passwordstringrequired

    The new password, 12–128 characters.

Returns

200 Password set; signed in.

Errors

  • 409accounts_off (the store has no accounts) or sign_up_invite_only (a guest the store didn't invite can't open one).
  • 422validation_failedWrong or expired code (code), or weak password (password).
  • 429rate_limitedToo many attempts.