Customers API
List Customers
Search by name, email, or company
string
default:"totalSpent"
Sort field: totalSpent, totalTransactions, lastPurchaseAt, createdAt
Get Customer
Returns customer profile with:
- Contact information
- Transaction summary (total spent, count, avg, last purchase)
- Linked subscriptions
- Recent transactions
- Health score and risk indicators
Customer Health Score
Included in the customer detail response: