SET API · SET Close
One week: state, counts now, both hashes, and whether it is final
GET/v1/close/weeks/{week}
One ISO week of SET Close: its UTC bounds, the months it cuts, its state (open, prepared or signed), the counts of its matches computed now, who prepared and approved it, and both hashes. A week holds the matches whose date falls in it, Monday 00:00 UTC to the next Monday.
Path parameters
weekstringrequiredYYYY-Www, a real ISO week such as2026-W33. Anything else answers 404not_found.
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. - Before a week is prepared,
stateisopenandcountsare computed at the time of the call. counts.openExceptionsis the number of exceptions with no note; it must be 0 to prepare the week.finalis true only when every month the week cuts is locked; until then the week's month can still change.- A payment appears in Close after SET's scheduled pass, which runs every 10 minutes. The example's payment was dated 2026-08-14 so that its week had ended.
- 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_found