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

Matches in state exception, with the reason

GET/v1/close/exceptions

Key scope: read · Success: 200

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_start is 400 reason_invalid.
period string
YYYY-MM: only exceptions in this month.
customer string
A customer id (cus_…): only that customer's exceptions.
createdBefore string
The last answer's nextCreatedBefore, passed back unchanged, or an ISO 8601 time: exceptions created strictly before it.
limit integer
1 to 100; 50 by default.

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.
  • state, rule and inTransit are not read here.
  • variance is {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_period exception 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_off
  • 400 created_before_invalid
  • 400 period_invalid
  • 400 customer_invalid
  • 400 reason_invalid

All codes: Errors.