SET API · SET Close
Add a bank or provider file source
POST/v1/close/sources
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-Keystring- Any unique string, so a retry runs once. See Idempotency.
Body
kind"bank_csv" | "provider_csv"requiredbank_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, includingset_ledger, answers 400source_kind_invalid.labelstringrequired- Your name for the source: 1 to 60 letters, digits, spaces and
. , & ( ) ' _ / -(otherwise 400source_label_invalid).
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
writescope. - 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_off400 source_kind_invalid400 source_label_invalid409 close_sources_full