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

Recompute a locked period's hash and its link to the prior period

GET/v1/close/periods/{period}/verify

Key scope: read · Success: 200

Recomputes a locked period's hash from its stored matches and checks it against the hash written at the lock, and checks that the prior period's stored hash still equals this period's priorHash.

Path parameters

period stringrequired
The month as YYYY-MM (UTC), locked.

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.
  • A period that is open or prepared answers 409 period_not_locked.
  • recomputedHash is computed now; hashMatches says it equals snapshotHash. priorMatches says the prior period's stored hash still equals priorHash (true for the first period, which has none). valid is both.
  • A line uploaded later for a locked month does not change it: the line goes to the first open month as a prior_period exception, and verify still answers valid true.
  • 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
  • 404 not_found
  • 409 period_not_locked

All codes: Errors.