SET Direct Deposit API · Account export
An export's objects, as NDJSON
GET/api/partner/exports/{id}/objects
A Direct Deposit export's objects as NDJSON: one JSON object per line, object naming the kind (sender, payment or payout_intent), then the row as SET holds it. Within a kind, oldest first.
Path parameters
idstringrequired- The export's id,
exp_and 32 hex characters. An id with characters other than letters, digits,_or-answers 403cross_origin, not 404.
Query parameters
cursorstring- The
SET-Next-Cursorvalue from the previous page, unchanged (400cursor_invalidotherwise). Leave it out for the first page. limitinteger- Lines per page, 1 to 1,000; 500 by default. Outside that range: 400
limit_invalid.
Notes
- Direct Deposit is switched on per deployment; while it is off this call answers 503
direct_deposit_disabled. - Call it with your partner key (
set_partner_…), or with a SET API key that has thedirect_depositscope. A read is enough. The export must be yours (404not_found). - The body is NDJSON, content type
application/x-ndjson; charset=utf-8, not JSON. Field names are snake_case. - Response headers:
SET-Export-Linesis the number of lines in this page;SET-Next-CursorandLink rel="next"are present while there may be more. - Follow the cursor until
SET-Next-Cursoris absent; that is the end of the export. Do not count lines to decide you are done: a page can hold fewer lines thanlimitbefore the end. - A
paymentline carries the payout's state, amount, SET's fee (developer_fee), the deposit transaction hash, the Travel Rule state and, once paid,rail_reference.rail_referenceis a JSON-encoded string inside the line, not an object. - A
paymentline carries no payee data: no payee id, name or Cash-Out Address. Itscurrencyis the payout's bank-side currency (usd), although the payer sends USDC. - A
payout_intentline names its chain. - 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
404 not_found400 cursor_invalid400 limit_invalid