لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Request sign in code
/ store/ v1/ customers/ sign-in-codes- يدعم Idempotency-Key
Send a six-digit sign-in code (valid 10 minutes) to an email address, or by SMS or WhatsApp to a mobile number. Answers alike whether or not the address belongs to a customer: new ones get an account when they sign in. Limited to three codes per address per ten minutes.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
emailstring · أو nullphonestring · أو nullAny usual form (
0501234567,+966 50 123 4567), read in the store's country.channelenum · أو nullFor a phone:
smsorwhatsapp; the first the store offers when absent.- sms
localestring · أو nullLanguage of the message when the customer has none on file (BCP 47).
ما يُرجعه
202 The code is on its way.
الأخطاء
- 409The store does not send codes on this channel.
- 422
validation_failedMalformed email or phone number. - 429
rate_limitedToo many requests.