Customers
get_customersCustomer figures for the current period: total, new and returning customers (returningCustomers is Shopify's unit, ORDERS placed by repeat buyers; returningBuyers is the headcount behind it), repeatPurchaseRate (a ratio 0..1), avgLtv (lifetime revenue per customer) and marginLtv (the same after product costs), blended CAC (all ad spend ÷ new customers) and paidCac (each ad platform's spend ÷ the new customers whose first paid touch was that platform; paidGaps names platforms left out and why), the lifetime-value spread (ltvBands), new vs returning per day (growth), acquisition per channel with new customers, first order value and CAC (acquisition.acquisition), customers back after 180+ days away (acquisition.reactivated of acquisition.lapsedAtStart), and support tickets (support null = no helpdesk connected). Each tile has previous, the prior period's value. Use for any question about customers, LTV, CAC, repeat purchase, acquisition by channel or LTV ÷ CAC — divide nothing yourself: marginLtv and paidCac are both here. When suppressed is true, under half of revenue carries a customer id: say the customer figures are withheld instead of quoting any. A null CAC means no spend or too few new customers (under 10) — never zero. Optional from and to (inclusive YYYY-MM-DD, both or neither, never after today) read another span instead of the default period. A named month, a week or two dates the operator gave MUST be sent here: without them this reads the last 30 days, which is not that month.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the span, inclusive, as YYYY-MM-DD; not after today. Send together with `from`, or omit both to read the default 30-day period. | |
| from | No | First day of the span, inclusive, as YYYY-MM-DD. Send together with `to`, or omit both to read the default 30-day period. |