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

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

Request sign in code

POST/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 · أو null
  • phonestring · أو null

    Any usual form (0501234567, +966 50 123 4567), read in the store's country.

  • channelenum · أو null

    For a phone: sms or whatsapp; the first the store offers when absent.

    • email
    • sms
    • whatsapp
  • localestring · أو null

    Language 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.
  • 422validation_failedMalformed email or phone number.
  • 429rate_limitedToo many requests.