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

Add a bank or provider file source

POST/v1/close/sources

Key scope: write · Success: 201

Adds a file source to SET Close: a bank file (bank_csv) or another processor's file (provider_csv). Rows you upload to it become that side's records.

Headers

Idempotency-Key string
Any unique string, so a retry runs once. See Idempotency.

Body

kind "bank_csv" | "provider_csv"required
bank_csv: the file's rows become rail records (the bank's side). provider_csv: they become provider records (another processor's side). Any other value, including set_ledger, answers 400 source_kind_invalid.
label stringrequired
Your name for the source: 1 to 60 letters, digits, spaces and . , & ( ) ' _ / - (otherwise 400 source_label_invalid).

Notes

  • SET Close is switched on per deployment; when off, every /v1/close call answers 403 close_off. Check GET /v1/capabilities (features.*).
  • Needs a key with the write scope.
  • SET's own ledger is a source already; you cannot add it.
  • A business may have 20 sources; one more answers 409 close_sources_full.
  • There is no call that renames or deletes a source.
  • The example was made with a sandbox key.
  • 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 source_kind_invalid
  • 400 source_label_invalid
  • 409 close_sources_full

All codes: Errors.