SET API · SET Close
Every period from the first, with its state and counts
GET/v1/close/periods
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.
Notes
- SET Close is switched on per deployment; when it is off, every
/v1/closecall answers 403close_offafter the key is checked.GET /v1/capabilitiesshows it asfeatures.close. - Needs a key with the
readscope. Platform and business keys can both call it. hasMoreis always false.state:open,prepared,locked.countsgives matches by state;inTransitcounts matches pending or settled in a later month;openExceptionscounts exceptions with no note, which block prepare.snapshotHashis set at the lock.priorHashis the previous month'ssnapshotHash, null for the first period.preparedByandapprovedByare 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