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

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

Sign up

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

Create a customer account and sign in. Returns the session token. While the store approves new accounts the account waits instead (202): nobody is signed in, and the store emails the customer once it's approved.

الترويسات

  • Idempotency-Keystring

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

  • shop-api-versionYYYY-MM

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

الجسم

  • emailstringمطلوب
  • passwordstringمطلوب

    12–128 characters.

  • first_namestring · أو null
  • last_namestring · أو null
  • localestring · أو null

    BCP 47, e.g. ar. Emails to the customer use it.

  • email_marketingboolean

    The customer agreed to marketing emails.

ما يُرجعه

201 Account created; signed in.

الأخطاء

  • 409email_taken (sign in instead), account_setup_required (use the password reset to claim it), accounts_off (the store has no accounts) or sign_up_invite_only (accounts by invitation only).
  • 422validation_failedValidation failed.
  • 429rate_limitedToo many attempts.