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

One week: state, counts now, both hashes, and whether it is final

GET/v1/close/weeks/{week}

Key scope: read · Success: 200

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

week stringrequired
YYYY-Www, a real ISO week such as 2026-W33. Anything else answers 404 not_found.

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.
  • Before a week is prepared, state is open and counts are computed at the time of the call.
  • counts.openExceptions is the number of exceptions with no note; it must be 0 to prepare the week.
  • final is 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_off
  • 404 not_found

All codes: Errors.