انتقل إلى المحتوى

لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.

Confirm reset

POST/store/v1/customers/password-reset/confirm
  • يدعم Idempotency-Key

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).

الترويسات

  • Idempotency-Keystring

    أرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

الجسم

  • emailstringمطلوب
  • codestringمطلوب

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

  • passwordstringمطلوب

    The new password, 12–128 characters.

ما يُرجعه

200 Password set; signed in.

الأخطاء

  • 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.