لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
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 · أو nulllast_namestring · أو nulllocalestring · أو nullBCP 47, e.g.
ar. Emails to the customer use it.email_marketingbooleanThe customer agreed to marketing emails.
ما يُرجعه
201 Account created; signed in.
الأخطاء
- 409
email_taken(sign in instead),account_setup_required(use the password reset to claim it),accounts_off(the store has no accounts) orsign_up_invite_only(accounts by invitation only). - 422
validation_failedValidation failed. - 429
rate_limitedToo many attempts.