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

Counts and amounts by state

GET/v1/analytics/states

Key scope: read · Success: 200

Counts and amounts per type, state and currency for the window, with each row's direction. Types: deposit, cash_out_payment, conversion_payment, card_payment, wallet_withdrawal, payout and refund.

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 (403 scope_missing without it). 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.
  • Rows are sorted by type, state and currency.
  • It takes no interval or groupBy.
  • 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
  • 403 scope_missing

All codes: Errors.