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 Direct Deposit API

SET Direct Deposit API · Account export

An export's objects, as NDJSON

GET/api/partner/exports/{id}/objects

Key scope: partner key · Success: 200

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

id stringrequired
The export's id, exp_ and 32 hex characters. An id with characters other than letters, digits, _ or - answers 403 cross_origin, not 404.

Query parameters

cursor string
The SET-Next-Cursor value from the previous page, unchanged (400 cursor_invalid otherwise). Leave it out for the first page.
limit integer
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 the direct_deposit scope. A read is enough. The export must be yours (404 not_found).
  • The body is NDJSON, content type application/x-ndjson; charset=utf-8, not JSON. Field names are snake_case.
  • Response headers: SET-Export-Lines is the number of lines in this page; SET-Next-Cursor and Link rel="next" are present while there may be more.
  • Follow the cursor until SET-Next-Cursor is absent; that is the end of the export. Do not count lines to decide you are done: a page can hold fewer lines than limit before the end.
  • A payment line 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_reference is a JSON-encoded string inside the line, not an object.
  • A payment line carries no payee data: no payee id, name or Cash-Out Address. Its currency is the payout's bank-side currency (usd), although the payer sends USDC.
  • A payout_intent line 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_found
  • 400 cursor_invalid
  • 400 limit_invalid

All codes: Errors.