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

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

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.

الأخطاء

  • 403forbiddenMissing permission.
  • 422validation_failedNo customers, or more than 100.