Customers

Customers with lifetime spend and order statistics.

32 fields — 25 dimensions, 7 metrics. Date clauses (SINCE, UNTIL, DURING) use firstOrderDate.

The live, authoritative list is always GET /v1/datasets — this page is regenerated from the same catalog, but the endpoint reflects exactly what is deployed.

Query it

FROM customers
  SHOW customer_count
  GROUP BY customer_name
  SINCE -30d

See Querying with SoloQL for the language.

Fetch records

curl -H "Authorization: Bearer esk_live_..." \
  "https://api.ecomsolo.com/v1/customers?page_size=50&fields=customer_name,customer_email,customer_id"

Any field marked ✅ below can be returned, requested via fields=, and used as an equality filter (?field=value). Fields marked aggregate only exist for COUNT-style questions and have no value on a single record — ask SoloQL for those. See Fetching records.

Fields

FieldTypeRoleRecordsDescription
customer_namestringdimension✅Customer display name.
customer_emailstringdimension✅Email address of the customer.
customer_idstringdimension✅Shopify identifier for the customer.
first_namestringdimension✅Customer first name.
last_namestringdimension✅Customer last name.
customer_account_statusstringdimension✅Status of the customer's account.
customer_languagestringdimension✅Language associated with the customer.
customer_tagstringdimension✅Tag associated with the customer.
tax_exemptbooleandimension✅Whether the customer is tax exempt.
verified_emailbooleandimension✅Whether the email address is verified.
customer_email_subscription_statusstringdimension✅Email marketing subscription status of the customer.
customer_sms_subscription_statusstringdimension✅SMS marketing subscription status of the customer.
customer_added_datedatedimension✅Date the customer record was added.
customer_first_order_datedatedimension✅Date of the customer's first order.
customer_last_order_datedatedimension✅Date of the customer's most recent order.
customer_number_of_ordersnumberdimension✅Number of orders the customer has placed across all time.
customer_amount_spentmoneydimension✅Amount the customer has spent across all time.
predicted_spend_tierstringdimension✅Shopify's prediction of how much the customer is likely to spend, as a tier.
rfm_groupstringdimension✅Shopify's recency/frequency/monetary grouping of the customer (Champions, Loyal, At risk, …).
customer_citystringdimension✅Individual cities in the customer's history of addresses.
customer_regionstringdimension✅Individual regions in the customer's history of addresses.
customer_countrystringdimension✅Individual countries in the customer's history of addresses.
customer_countnumbermetricaggregate onlyNumber of customers in the group (document count — value_count on createdAt). Sums across stores.
new_customer_recordsnumbermetricaggregate onlyNumber of customers whose first purchase is within the period. Sums across stores.
total_number_of_ordersnumbermetric✅Number of orders the customer has placed across all time.
total_amount_spentmoneymetric✅Amount the customer has spent across all time.
total_amount_spent_per_ordermoneymetricaggregate onlyAverage amount spent per order — total amount spent divided by total number of orders.
percent_of_customerspercentmetricaggregate onlyEach group's customer count as a percentage of all customers matching the query.
days_since_last_ordernumbermetric✅Average days since the customers' most recent order. Customers with no orders are excluded.
storestringdimension✅The shop the record belongs to. Filter with WHERE store IN ('Shop name') or GROUP BY store.
store_idstringdimension✅The shop's raw identifier — what an export or the API reports. Same shops as Store, shown as ids.
store_domainstringdimension✅The shop's myshopify.com domain. Filter with WHERE store_domain = 'shop.myshopify.com'.