Sweep to yield
curl -X POST "https://api.52-28-238-205.sslip.io/v1/treasury/sweep" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"amount_base_units":"50000","amount":"50000"}'Opens a simulated yield position from idle funds and posts it to the simulated ledger. Requires reconcile; the amount must be between 1 and the idle balance.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Body
application/json · required. Fields are listed under Request body below.
finance. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
application/json- body
amount_base_units?|Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).
amount?string|nullSuccess.
application/json- response
position*projection*simulated?SimulatedTrue when the figure is simulated and no funds move.
true[key: string]?anyGETGet treasury
Returns the simulated Treasury: funds in connected wallets, idle and swept balances, positions and a yield projection at a fixed 4.20% APY. Simulated: no funds move. Requires ledger:read.
GETList merchant rules
Lists the organization's block and always-allow rules for single merchants, with counts per kind. Console session or API key with payment:read.