SET Crypto API Suite · With a Direct Deposit key
Payouts by day, state and chain
GET/api/partner/analytics/payouts
Your Direct Deposit payouts counted and summed in USDC: one row per period, destination (to), state and chain. to: bank is a payout to a payee's Cash-Out Address; to: wallet is a Payable Email payment into the wallet SET created for a payee.
Query parameters
interval"day" | "week" | "month"- The period of each row;
dayby default. Anything else answers 400interval_invalid. sincestringYYYY-MM-DD, a UTC date: the first day counted. By default 30 days beforeuntil.untilstringYYYY-MM-DD, a UTC date, exclusive. By default tomorrow (UTC). At most 366 days aftersince(400window_too_long); a malformed or inverted window answers 400window_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 thereadanddirect_depositscopes; both answer the same body. Payable Email does not need to be on. chainis always null onto: bankrows; onto: walletrows it is the payment's chain.currencyis alwaysusdc. Amounts are decimal strings.stateis each payout's state now: forbank,funds_received,payment_submitted,payment_processedorreturned; forwallet,in_walletorclaimed.- This example was made with a sandbox key, on simulated payouts.
- 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
400 window_invalid400 window_too_long400 interval_invalid503 direct_deposit_disabled401 partner_key_invalid401 partner_key_required403 scope_missing