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-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
emailstringrequiredcodestringrequiredThe 8-character code from the email. Case, spaces and dashes are ignored.
passwordstringrequiredThe new password, 12–128 characters.
Returns
200 Password set; signed in.
Errors
- 409
accounts_off(the store has no accounts) orsign_up_invite_only(a guest the store didn't invite can't open one). - 422
validation_failedWrong or expired code (code), or weak password (password). - 429
rate_limitedToo many attempts.