Archive an account
Archives a subledger account. The account must have a zero balance. The
default account, which is the first account created for each clientEntityId,
cannot be archived. Archiving it returns 400 with code 2041, and archiving
an account with a balance returns 400 with code 2040.
While archived, mutating operations on the account are blocked: transfers
into or out of the account, new deposit-address generation, fiat
withdrawals, payment-intent creation, and fetching wire instructions are
all rejected. Read endpoints (e.g. GET /v1/accounts/{accountId},
GET /v1/accounts/deposits) continue to work.
An archived account is excluded from the default GET /v1/accounts
listing; pass status=archived (or include archived in a multi-value
status filter) to retrieve it.
Archiving is idempotent: archiving an already-archived account succeeds.
An incoming deposit to a pre-existing deposit address or wire instruction
on the archived account will auto-unarchive it (status returns to
active).