Customers summary
New, total and returning customers and lifetime value for a date range.
Related: Send a payment and Send a payment (website in body) in Payments.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Query parameters
fromstringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
tostringoptionalPattern: ^\d{4}-\d{2}-\d{2}$
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the payments:read scope.
Response
Summary.
{
"status": "string",
"data": {
"currency": "string",
"range": {
"from": "string",
"to": "string",
"timezone": "string"
},
"customers": 0,
"newCustomers": 0,
"avgLifetimeValue": "string",
"medianLifetimeValue": "string",
"avgPaymentsPerCustomer": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.currency | string | |
| data.range | object | |
| data.range.from | string | |
| data.range.to | string | |
| data.range.timezone | string | |
| data.customers | integer | |
| data.newCustomers | integer | |
| data.avgLifetimeValue | integer | null | null | |
| data.medianLifetimeValue | integer | null | null | |
| data.avgPaymentsPerCustomer | number | null | null |