Skip to content
SETSimple Easy Transactions
SET DocsSET Crypto API Suite and SET API referenceCurrent as of 2026-11-21 · wallet release 7d8a79fb
Browse: SET API

SET API · Analytics

Each customer's totals

GET/v1/analytics/customers

Key scope: read · Success: 200

Each customer that had a payment in the window: lastPaymentAt, its verification state now, and per currency count, in, out and setFee (SET's fee summed over those rows). Sorted by customer id.

Query parameters

since string
A UTC date, YYYY-MM-DD: the first day counted. With neither since nor until, the window is the last 30 days ending tomorrow at 00:00 UTC.
until string
A UTC date, YYYY-MM-DD, exclusive. It must be after since and at most 366 days later.

Notes

  • Needs the read scope. Any account type; no deployment switch.
  • A window longer than 366 days answers 400 window_too_long; a malformed date, or an until that is not after since, answers 400 window_invalid.
  • Card payments and refunds name no customer and are left out; the answer's note says so.
  • verification is the customer's state at the time of the call, not during the window.
  • The platform's own fee per row is on GET /v1/balance_transactions.
  • The example was made with a sandbox key on a platform account.
  • This example is a recorded run of SET's own code (wallet release e9b03447) with a sandbox key; ids and times are that run's.

Errors

  • 400 window_invalid
  • 400 window_too_long
  • 405 method_not_allowed

All codes: Errors.