SET API · SET Close
A quarter (YYYY-Qn) over three locked months: counts, hashes, each month verified
GET/v1/close/quarters/{quarter}
A quarter read over its three locked months: each month's state, counts, hashes and whether its lock hash still recomputes, the quarter's totals, a summary of its position checks, and every match with its period. quarterHash is the SHA-256 of the months' snapshot hashes in order.
Path parameters
quarterstringrequiredYYYY-Qn, with n from 1 to 4, such as2026-Q3. Anything else answers 404not_found.
Query parameters
format"json" | "csv"json(the default) orcsv. Anything else answers 400format_invalid.customerstring- A customer id (
cus_…): counts and lists that customer's matches only. Each month is still verified over all its matches. Anything else answers 400customer_invalid.
Notes
- SET Close is switched on per deployment; while it is off every
/v1/close/*call answers 403close_off. CheckGET /v1/capabilities(features.close). - Needs a key with the
readscope. - Every month of the quarter on or after Close's first period must be locked: 409
quarter_not_locked, withmonthsnaming those that are not. - A month before Close's first period reads as state
before_startand is left out; 409before_start_periodwhen the whole quarter is before it. - Each month's
verifiedis its lock hash recomputed now;validis true when every month verifies. - With
format=csvthe answer istext/csv; charset=utf-8, sent as an attachment namedset-close-<quarter>.csv, one line per match with a leadingperiodcolumn. Theclose-quarter-hashheader carriesquarterHash. - 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
403 close_off404 not_found400 format_invalid400 customer_invalid409 before_start_period409 quarter_not_locked