SET API · Analytics
Each customer's totals
GET/v1/analytics/customers
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
sincestring- A UTC date,
YYYY-MM-DD: the first day counted. With neithersincenoruntil, the window is the last 30 days ending tomorrow at 00:00 UTC. untilstring- A UTC date,
YYYY-MM-DD, exclusive. It must be aftersinceand at most 366 days later.
Notes
- Needs the
readscope. Any account type; no deployment switch. - A window longer than 366 days answers
400 window_too_long; a malformed date, or anuntilthat is not aftersince, answers400 window_invalid. - Card payments and refunds name no customer and are left out; the answer's
notesays so. verificationis 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_invalid400 window_too_long405 method_not_allowed