SET API · SET Close
Matches in state exception, with the reason
GET/v1/close/exceptions
Lists the matches in state exception, with the reason each one is open. The same objects as GET /v1/close/matches. Newest first, paged by createdBefore.
Query parameters
reason"missing_rail" | "missing_provider" | "missing_chain" | "missing_book" | "amount_mismatch" | "ambiguous" | "chain_unconfirmed" | "duplicate" | "prior_period"- Only exceptions with this reason. An ignored reason such as
before_startis 400reason_invalid. periodstringYYYY-MM: only exceptions in this month.customerstring- A customer id (
cus_…): only that customer's exceptions. createdBeforestring- The last answer's
nextCreatedBefore, passed back unchanged, or an ISO 8601 time: exceptions created strictly before it. limitinteger- 1 to 100; 50 by default.
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. state,ruleandinTransitare not read here.varianceis{amount, currency}: the paired record's amount less the expected amount, in the paired record's currency.- A line uploaded for a month that is already locked becomes a
prior_periodexception in the first open month. - Once every exception is resolved, the same call answers an empty list.
- 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_off400 created_before_invalid400 period_invalid400 customer_invalid400 reason_invalid