Customer Detail
get_customer_detailGet lifetime value detail for a single customer: net profit, revenue, CAC, tenure, and order history (most recent 200 orders). Customer name and email in the response are partially redacted. The customer identifier is the id returned in the customer lifetime value list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes | Customer id, from list_customers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| cac | No | ||
| _meta | No | ||
| No | Partially redacted email, e.g. 'a***@example.com'. | ||
| orders | No | Most recent 200 orders. | |
| _message | No | ||
| currency | No | ||
| _truncated | No | ||
| margin_ltv | No | ||
| hash_suffix | No | Last six characters of the email hash. The stable identifier when name and email are absent. | |
| order_count | No | ||
| revenue_ltv | No | ||
| tenure_days | No | ||
| customerName | No | Partially redacted display name, e.g. 'A*** (5 chars)'. | |
| margin_ratio | No | ||
| last_order_at | No | ||
| ltv_cac_ratio | No | ||
| total_refunds | No | ||
| first_order_at | No | ||
| _tenant_context | No | ||
| avg_order_value | No | ||
| total_discounts | No | ||
| avg_order_profit | No | ||
| acquisition_channel | No | ||
| attribution_enabled | No | ||
| days_since_last_order | No | ||
| acquisition_country_code | No | ||
| total_allocated_overhead | No | Overhead subtracted from contribution margin to derive margin_ltv. |