Sweep spending wallet
curl -X POST "https://api.52-28-238-205.sslip.io/v1/spending-wallets/{id}/sweep" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"challenge_id":"cha_01jd2x3k4m5n6p7q8r9s0t1v2w","credential":{}}'Sends the wallet's full balance back to the owner's return address and issues a sweep receipt. Console session or API key with wallet:connect; a console session needs a passkey step-up within the last 5 minutes, and an empty wallet can't be swept (409).
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
idstringrequiredSpending wallet id (swl_...).
Body
application/json. Fields are listed under Request body below.
owner. The caller must hold this permission, or the call is refused with 403. From the console it also needs a passkey step-up within the last 5 minutes.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
id*IdSpending wallet id (swl_...).
application/json- body
challenge_id?|Id of the passkey challenge returned by the matching options call.
credential?|The passkey assertion (WebAuthn) produced for the challenge.
Success.
application/json- response
wallet*receipt_id*Receipt IdReceipt id (rcpt_...).
tx_ref?string|null[key: string]?anyPOSTRefresh spending wallet
Reads the wallet's on-chain balance and marks it funded or empty. Console session or API key with payment:read.
GETList payment intents
Returns payment intents, newest first, with status-tab counts for the current filters. Console session or API key with payment:read; a merchant account sees payments it received.