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

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

List customers with their lifecycle stage

GET/admin/v1/stores/{store_id}/customers
  • customers:read

List customers with their lifecycle stage, last order and place, filtered by the rules segments use; the most recent order first by default.

معاملات المسار

  • store_idstringمطلوب

    معرّف من نوع store، مثل store_01k8qs5s…. يصل إلى التطبيق مع التثبيت، في رابط OAuth وفي رد رمز الوصول.

معاملات الاستعلام

  • qstring

    Search email, name or phone.

  • tagstring

    Comma-separated tags: customers with any of them, in any case.

  • stateenum

    Whether a customer can use their storefront account.

    • enabled
    • invited
    • pending
    • disabled
  • email_marketingboolean

    Subscribed (true) or not (false) to marketing emails.

  • sms_marketingboolean

    Subscribed (true) or not (false) to marketing SMS.

  • whatsapp_marketingboolean

    Subscribed (true) or not (false) to marketing on WhatsApp.

  • segment_idstring

    Members of this segment only.

  • stageenum

    One lifecycle stage.

    • new
    • returning
    • loyal
    • lapsed
    • no_orders
  • citystring

    Comma-separated cities of the default address: customers in any of them, in any case. A city holding a comma goes in double quotes.

  • orders_mininteger

    At least this many orders.

  • spent_mininteger

    Spent at least this much, in minor units of the store currency.

  • last_order_withininteger

    Ordered in the last N days.

  • last_order_overinteger

    Ordered, but not in the last N days.

  • reachenum

    Who a campaign can reach: whatsapp (agreed to SMS and WhatsApp) or email.

    • whatsapp
    • email
  • sortstring

    -last_order_at (default), -total_spent, -orders_count or name.

  • limitinteger

    1–250, default 50.

  • cursorstring

    page.next_cursor from the previous page.

الترويسات

  • shop-api-versionYYYY-MM

    الإصدار الذي تُكتب به الإجابة. بدونه يُستخدم الإصدار المثبّت لتطبيقك، وإلا الأحدث.

ما يُرجعه

200 A page of customers.

الأخطاء

  • 400bad_requestMalformed query or cursor.
  • 403forbiddenMissing permission.