Customer matches
/ admin/ v1/ stores/ {store_id}/ customers/ matches- customers:read
Sum up the customers matching the list's filters.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Query parameters
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.
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Returns
200 What they add up to.
Errors
- 403
forbiddenMissing permission. - 422
validation_failedA filter is out of range.