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

Every period from the first, with its state and counts

GET/v1/close/periods

Key scope: read · Success: 200

Lists every calendar month (UTC) from the business's Close start period to the current one, newest first, with its state, counts and hashes. Not paged: every period comes in one answer.

No parameters.

Notes

  • SET Close is switched on per deployment; when it is off, every /v1/close call answers 403 close_off after the key is checked. GET /v1/capabilities shows it as features.close.
  • Needs a key with the read scope. Platform and business keys can both call it.
  • hasMore is always false.
  • state: open, prepared, locked.
  • counts gives matches by state; inTransit counts matches pending or settled in a later month; openExceptions counts exceptions with no note, which block prepare.
  • snapshotHash is set at the lock. priorHash is the previous month's snapshotHash, null for the first period.
  • preparedBy and approvedBy are API key ids (key_…), never the key itself.
  • The example was made with a sandbox key (sandbox: true).
  • 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

All codes: Errors.