لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Decide account requests
POST
/ admin/ v1/ stores/ {store_id}/ customers/ account-requests- customers:write
- يدعم Idempotency-Key
Approve or decline accounts waiting for approval, 1–100 at a time. Approving enables the account and emails the customer a link to sign in; declining removes the request, keeps the customer without an account and sends nothing. Customers no longer waiting are skipped.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
الترويسات
Idempotency-Keystringأرسل المفتاح نفسه لإعادة المحاولة بأمان: تُعاد الإجابة الأولى لمدة ٢٤ ساعة.
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
الجسم
customer_idsarray of stringsمطلوبdecisionenumمطلوبApprove or decline.
- approve
- decline
ما يُرجعه
200 Decided.
الأخطاء
- 403
forbiddenMissing permission. - 422
validation_failedNo customers, or more than 100.