Account closure
Closing an account is irreversible — connected wallets are soft-deleted, PII is anonymized, and the session cookie is cleared. Closure is gated on three preconditions that you can query first.
Endpoints
- GET
/api/account/close-requirementsreturns{ activeInvoices, creditsNonNegative, connectedWallets, canClose }.canCloserequiresactiveInvoices === 0,creditsNonNegative(no debt),connectedWallets === 0. - POST
/api/account/lock-requestsends a confirmation email with a one-hour magic link. Clicking the link suspends the account into read-only mode (see Soft-suspend). - POST
/api/account/closeTOTP-gated, permanent. Body:{ reason: string }(1–500 chars). Returns{ status: 'closed' }.
Updated . For integration help, email [email protected]