SET API · SET Close
Close settings: first period, when entries post, today's writes
GET/v1/close/settings
Reads your SET Close settings: the first month Close covers, when journal entries post to a connected ledger, and today's writes against the daily limit. The settings are made on the first call, starting with the current month (UTC).
Notes
- SET Close is switched on per deployment; when off, every
/v1/closecall answers 403close_off. CheckGET /v1/capabilities(features.*). - Needs a key with the
readscope. startPeriodis the first month Close covers; on first use it is the current month (UTC).postOnsays when journal entries go to a connected ledger:approve(once the period is locked; the default) ormatch(as each payment matches).writes.todaycounts the rows Close wrote for your business today (UTC), againstwrites.dailyLimit.lastRunAtis the last time SET's scheduled pass, which runs every 10 minutes, read your records; it isnulluntil that pass has run.- The example was made with a sandbox key, before the first pass.
- 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_off401 api_key_required