لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Invite customer
POST
/ admin/ v1/ stores/ {store_id}/ customers/ {customer_id}/ account-invite- customers:write
- يدعم Idempotency-Key
Email the customer a code to create their storefront account (valid 72 hours) and mark them invited. Sending again replaces the previous code.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.customer_idstringمطلوبمعرّف من نوع
cus، مثلcus_01k8qs5s….
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 Invite sent; the updated customer.
الأخطاء
- 404
not_foundNo such customer. - 409Already has an account, or disabled.