Skip to content
Website API / Payments

Customers summary

GEThttps://<your Reveata origin>/api/v1/websites/{website}/customers/summary

New, total and returning customers and lifetime value for a date range.

Try in playground

Request

Path parameters

websitestringrequired

Website id or domain, e.g. example.com

1–253 characters

Query parameters

fromstringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

tostringoptional

Pattern: ^\d{4}-\d{2}-\d{2}$

Headers

Authorizationstringrequired

Bearer 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

FieldTypeDescription
status"ok"
dataobject
data.currencystring
data.rangeobject
data.range.fromstring
data.range.tostring
data.range.timezonestring
data.customersinteger
data.newCustomersinteger
data.avgLifetimeValueinteger | null | null
data.medianLifetimeValueinteger | null | null
data.avgPaymentsPerCustomernumber | null | null