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

Records: each side's view of a payment, with gross, fee and net

GET/v1/close/records

Key scope: read · Success: 200

Lists records: each source's view of one payment, with gross, fee, net and the amount the bank leg settled. A record comes from SET's own ledger, an uploaded bank or provider file, SET's chain read or a connected accounting ledger. Newest first, paged by createdBefore.

Query parameters

kind "provider" | "rail" | "chain" | "book"
Only records of this kind: provider (what the payment provider reported), rail (the bank's side), chain (the transfer on chain), book (the business's connected ledger). Anything else is 400 kind_invalid.
source string
A source id (src_…): only records from that source.
period string
YYYY-MM: only records in this month. An impossible month is 400 period_invalid.
customer string
A customer id (cus_…): only that customer's records.
unmatched "true" | "false"
true: only records that no match names.
createdBefore string
The last answer's nextCreatedBefore, passed back unchanged, or an ISO 8601 time: records 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.
  • A record is one side's view of one payment.
  • gross, fee and net are {amount, currency}, the amount a decimal string in the currency's own decimals (USDC has 6, USD has 2). settled is what the bank leg paid.
  • chain is {txHash, chain, check} when a record carries a transaction hash; check is SET's own reading of it. It is null otherwise.
  • trust is provider for a record SET's ledger built from the provider's report, and asserted for an uploaded row, which is never proof on its own.
  • hasReference and hasCounterparty say only that one is on file. The text is not returned here; only the period's package shows it.
  • Records from SET's own ledger appear after SET's scheduled pass, which runs every 10 minutes. Uploaded rows appear when the file is uploaded.
  • The example was made with a sandbox key (sandbox: true); its two payments were dated last month so the month could be closed.
  • 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 kind_invalid
  • 400 source_invalid
  • 400 period_invalid
  • 400 customer_invalid

All codes: Errors.