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 · SET Close

A quarter (YYYY-Qn) over three locked months: counts, hashes, each month verified

GET/v1/close/quarters/{quarter}

Key scope: read · Success: 200

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

quarter stringrequired
YYYY-Qn, with n from 1 to 4, such as 2026-Q3. Anything else answers 404 not_found.

Query parameters

format "json" | "csv"
json (the default) or csv. Anything else answers 400 format_invalid.
customer string
A customer id (cus_…): counts and lists that customer's matches only. Each month is still verified over all its matches. Anything else answers 400 customer_invalid.

Notes

  • SET Close is switched on per deployment; while it is off every /v1/close/* call answers 403 close_off. Check GET /v1/capabilities (features.close).
  • Needs a key with the read scope.
  • Every month of the quarter on or after Close's first period must be locked: 409 quarter_not_locked, with months naming those that are not.
  • A month before Close's first period reads as state before_start and is left out; 409 before_start_period when the whole quarter is before it.
  • Each month's verified is its lock hash recomputed now; valid is true when every month verifies.
  • With format=csv the answer is text/csv; charset=utf-8, sent as an attachment named set-close-<quarter>.csv, one line per match with a leading period column. The close-quarter-hash header carries quarterHash.
  • 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_off
  • 404 not_found
  • 400 format_invalid
  • 400 customer_invalid
  • 409 before_start_period
  • 409 quarter_not_locked

All codes: Errors.