Customers

Customers with lifetime spend and order statistics.

18 fields — 14 dimensions, 4 metrics. Date clauses (SINCE, UNTIL, DURING) use createdAt.

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,email,first_name"

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_namestringdimensionCustomer display name.
emailstringdimensionCustomer email address.
first_namestringdimensionCustomer first name.
last_namestringdimensionCustomer last name.
statestringdimensionAccount state (enabled, disabled, invited, declined).
localestringdimensionCustomer locale.
tagsstringdimensionComma-separated customer tags.
tax_exemptbooleandimensionWhether the customer is tax exempt.
verified_emailbooleandimensionWhether the email address is verified.
accepts_marketingbooleandimensionWhether the customer accepts email marketing.
created_atdatedimensionWhen the customer was created.
first_order_datedatedimensionDate of the customer's first order.
last_order_datedatedimensionDate of the customer's most recent order.
customer_countnumbermetricaggregate onlyNumber of customers in the group (document count — value_count on createdAt). Sums across stores.
orders_countnumbermetricNumber of orders placed.
total_spentmoneymetricLifetime amount spent.
average_spentmoneymetricAverage lifetime spend per customer. Recomputed per group — never summed across stores.
storestringdimensionThe shop the record belongs to. Filter with WHERE store IN ('Shop name') or GROUP BY store.