Customers

Get Customer Stats

Changed on

Retrieves customer counts for the last 30 days and the store balance customers hold.

get/v1/shops/{shopId}/customers/stats

Request

  • Base URL
    https://api.sellauth.com
  • Auth
    HTTP bearer

Path parameters

shopIdinteger required

The shop ID.

Query parameters

timezonestring

Time zone the 30-day window starts in, at midnight 29 days ago. Defaults to UTC.

Example:Europe/Berlin

Request body

timezonestring nullable

Response

new_30dinteger
buyersinteger
repeat_buyersinteger
subscribersinteger
balance_holdersinteger
balance_usdinteger

Example response

{
  "new_30d": 3,
  "buyers": 0,
  "repeat_buyers": 0,
  "subscribers": 0,
  "balance_holders": 2,
  "balance_usd": 200
}

Changes