لم يُكتب وصف هذه العملية بالعربية بعد، فأوصافها بالإنجليزية.
Customer matches
/ admin/ v1/ stores/ {store_id}/ customers/ matches- customers:read
Sum up the customers matching the list's filters.
معاملات المسار
store_idstringمطلوبمعرّف من نوع
store، مثلstore_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.
معاملات الاستعلام
qstringSearch email, name or phone.
tagstringComma-separated tags: customers with any of them, in any case.
stateenumWhether a customer can use their storefront account.
- enabled
- invited
- pending
- disabled
email_marketingbooleanSubscribed (
true) or not (false) to marketing emails.sms_marketingbooleanSubscribed (
true) or not (false) to marketing SMS.whatsapp_marketingbooleanSubscribed (
true) or not (false) to marketing on WhatsApp.segment_idstringMembers of this segment only.
stageenumOne lifecycle stage.
- new
- returning
- loyal
- lapsed
- no_orders
citystringComma-separated cities of the default address: customers in any of them, in any case. A city holding a comma goes in double quotes.
orders_minintegerAt least this many orders.
spent_minintegerSpent at least this much, in minor units of the store currency.
last_order_withinintegerOrdered in the last N days.
last_order_overintegerOrdered, but not in the last N days.
reachenumWho a campaign can reach:
whatsapp(agreed to SMS and WhatsApp) oremail.sortstring-last_order_at(default),-total_spent,-orders_countorname.limitinteger1–250, default 50.
cursorstringpage.next_cursorfrom the previous page.
الترويسات
shop-api-versionYYYY-MMالإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.
ما يُرجعه
200 What they add up to.
الأخطاء
- 403
forbiddenMissing permission. - 422
validation_failedA filter is out of range.